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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3810|回復: 0
打印 上一主題 下一主題
收起左側

STM32學習之一 - 計頻器設計原理

[復制鏈接]
跳轉到指定樓層
樓主
ID:51025 發表于 2014-8-29 17:22 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
檢測外部脈沖信號頻率方法有三種:
(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,我們可以采用外部中斷邊沿的觸發方式來計算脈沖的個數,通過定時器準確定時1s所測得的脈沖個數即為脈沖信號周期。

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 日韩一二区 | 综合天天久久 | 亚洲综合成人网 | 国产色黄 | 中文字幕第十一页 | 在线视频一区二区三区 | 国产电影一区二区 | 中国人pornoxxx麻豆 | 天天干天天爱天天爽 | 一区不卡在线观看 | 亚洲国产精品日本 | 久草色播 | 欧美久久久网站 | 欧美午夜视频 | 亚洲精品一区中文字幕乱码 | 欧美爱爱视频 | 一级大片 | 日韩一| 精品亚洲一区二区 | 国产亚洲精品综合一区 | 伊人精品一区二区三区 | 亚洲欧洲精品成人久久奇米网 | 九色.com| 亚洲欧美国产精品久久 | 国产精品免费一区二区三区四区 | 日韩影音| 久久精品日产第一区二区三区 | 日韩精品在线免费观看视频 | 免费亚洲一区二区 | 久久91| 国产福利视频 | 午夜伊人| 国产欧美精品在线 | 免费久久久久久 | 日韩欧美中文 | 九九九视频在线 | 久久性av| 久久综合伊人 | 夜夜骑av| 精品二区| 亚洲色图第一页 |