久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

標題: STM32學習之一 - 計頻器設計原理 [打印本頁]

作者: lizi    時間: 2014-8-29 17:22
標題: STM32學習之一 - 計頻器設計原理
檢測外部脈沖信號頻率方法有三種:
(1)  TIM3 is configured in Input Capture Mode: the external signal is connected to
TIM3 Channel2 used as input pin.
To measure the frequency we use the TIM3 CC2 interrupt request,
so In the TIM3_IRQHandler routine, the frequency of the external signal is computed.
The "TIM3Freq" variable contains the external signal frequency:
TIM3Freq = TIM3 counter clock / Capture in Hz,
where the Capture is the difference between two consecutive TIM3 captures.
For Low-density, Medium-density, High-density and Connectivity line devices,
the minimum frequency value to measure is 1100 Hz.
For Low-Density Value line, Medium-Density and High-Density Value line devices,
the minimum frequency value to measure is 366 Hz.
(2)  TIM3 is configured in PWM Input Mode: the external signal is connected to
TIM3 Channel2 used as input pin.
To measure the frequency and the duty cycle we use the TIM3 CC2 interrupt request,
so In the TIM3_IRQHandler routine, the frequency and the duty cycle of the external
signal are computed.
The "Frequency" variable contains the external signal frequency:
Frequency = TIM3 counter clock / TIM3_CCR2 in Hz,
The "DutyCycle" variable contains the external signal duty cycle:
DutyCycle = (TIM3_CCR1*100)/(TIM3_CCR2) in %.
For Low-density, Medium-density, High-density and Connectivity line devices,
the minimum frequency value to measure is 1100 Hz.
For Low-Density Value line and Medium-Density Value line devices, the minimum
frequency value to measure is 366 Hz.
3)對于High-density devices(大容量型)如果檢測脈沖的頻率小于1100Hz,我們可以采用外部中斷邊沿的觸發(fā)方式來計算脈沖的個數(shù),通過定時器準確定時1s所測得的脈沖個數(shù)即為脈沖信號周期。






歡迎光臨 (http://m.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: 四虎影视av | www.欧美日韩 | 国产一区不卡 | 精品免费 | 四虎4hu永久免费网站影院 | 日韩欧美黄色 | 中文在线观看视频 | www.爱爱| 国产精品看片 | 99福利视频| 9.1成人免费看片 | 成人免费小视频 | 日韩三级中文字幕 | 希岛爱理在线 | 欧美日韩一区二区三区四区 | 欧美一级视频 | 成年人一级片 | 国产成人一区二区 | 欧美在线激情 | 特黄一级片 | 亚洲国产三级 | 亚洲网站在线 | 国产综合视频 | 日本不卡一区 | 天天操天天操 | 国产精品手机在线 | 欧美精品久| 国产精品欧美激情 | 伊人999| 欧美视频一二三区 | 黄色av毛片| 欧美日韩精品一区二区 | 亚洲高清免费视频 | 亚洲午夜视频在线观看 | 国产乱淫av | 日韩三级久久 | 久久国产成人 | 亚洲欧美综合 | 天天射天天操天天干 | 色哟哟一区二区三区 | 97超碰在线免费观看 |