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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3890|回復: 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所測得的脈沖個數即為脈沖信號周期。

回復

使用道具 舉報

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

本版積分規則

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

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 日韩欧美二区 | h在线免费观看 | 国产激情91久久精品导航 | 日本午夜精品 | 国产美女一区二区 | 国产午夜精品一区二区三区 | 午夜精品久久久 | 久久一区二区三区电影 | 午夜小视频免费观看 | 久久久久久久久久久久91 | 久久国内精品 | 91精品国产乱码久久蜜臀 | 日韩欧美一区二区三区免费观看 | 精品国产一二三区 | 成人一区二区三区在线观看 | 国产日韩欧美另类 | 国产视频中文字幕 | 欧美一区二区视频 | 成年人视频在线免费观看 | 国产成人精品一区二区三区四区 | 婷婷久久久久 | 亚洲视频中文字幕 | 夜操 | 亚洲自拍偷拍av | 国产精品夜夜夜一区二区三区尤 | 99亚洲精品 | 特级做a爰片毛片免费看108 | www.青娱乐| 久久精品二区 | 亚洲精品视频在线看 | 亚洲一区 中文字幕 | 手机在线不卡av | 麻豆国产一区二区三区四区 | 一区二区在线免费观看 | 日韩福利 | 91视频久久 | 国产精品2 | 国产精品一级 | 精品国产乱码久久久久久果冻传媒 | 欧美久久视频 | 精品日本久久久久久久久久 |