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

標題: InputCapture_PWM-Library (STM32F4) [打印本頁]

作者: JAVADSALAR    時間: 2017-12-19 19:14
標題: InputCapture_PWM-Library (STM32F4)
Input Capture Library (STM32F4)
To measure the frequency and duty cycle of a PWM signal, I created these libraries.
(there is also an extra LIB if only the frq should be measured)

There is one library each for the timers "TIM2, TIM3, TIM4, TIM5".

The timers are operated in PWM InputCapture mode, with MasterSlave and Autoreset. The interrupt function is triggered by the signal at each hi-edge and determines the period duration and the pulse length of the signal.

Only one signal can be measured per timer in this mode. And there are only channels 1 or 2 available.

The channel and port pin to be used must be entered in the C file.

In the H-file, the clock frequency is set by the timer. This affects the resolution and the minimum frequency that can be measured.

Note: the function for reading the frequency only transfers the timer value of the period. The conversion into a frequency must be made extra if necessary. If there is no signal (or the measurement is not finished yet), the return value = 0. This means that a missing signal can be detected.

Image :

pwm_in-300x118.jpg (5.04 KB, 下載次數: 84)

pwm_in-300x118.jpg

Demo_51_PWM_IN.zip

227.07 KB, 下載次數: 10, 下載積分: 黑幣 -5






歡迎光臨 (http://m.zg4o1577.cn/bbs/) Powered by Discuz! X3.1
主站蜘蛛池模板: 国产一区二区三区在线看 | 亚洲高清免费视频 | 国产成人一区二区 | 精东影业一区二区三区 | 中文字幕第三页 | 久久福利视频导航 | 日韩黄视频| 国产专区在线播放 | 永久免费精品视频 | 女人一级一片30分 | 成人黄色免费网站 | 一区二区黄色 | 依人久久 | 国产一区在线免费观看 | 欧美性精品 | 三级福利视频 | 色婷婷中文字幕 | 国产三级成人 | 黄色大片av | 日韩不卡一区二区 | 欧美成人精品欧美一级私黄 | 亚洲精品成人在线 | 亚洲影视一区 | 97国产精品人人爽人人做 | 一区二区三区视频 | 亚洲一区免费 | 国产视频一 | 国产一级免费 | www久久久久| 成人黄色免费视频 | 久久久精品国产sm调教网站 | 欧美视频三区 | 成人羞羞网站 | 欧美9999 | 激情综合五月婷婷 | 亚欧洲精品在线视频免费观看 | 在线不卡av| 日本久久网站 | 久久精品日韩 | 中文字幕在线观看网站 | 九月色婷婷 |