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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

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

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

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

使用道具 舉報

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

本版積分規則

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

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 一级片av | 96国产精品久久久久aⅴ四区 | 亚洲人成人一区二区在线观看 | 久久在线视频 | 婷婷开心激情综合五月天 | 国产视频导航 | 九九热在线视频免费观看 | 成人黄色电影在线播放 | 99精品国产一区二区青青牛奶 | 久久精品一级 | 中文字幕一区二区三区在线观看 | 亚洲天堂av在线 | 亚洲人在线观看视频 | 丝袜美腿一区二区三区动态图 | 区一区二区三在线观看 | 九九热免费视频在线观看 | 少妇一区在线观看 | 欧美激情综合 | 国产精品色 | 亚洲国产精品99久久久久久久久 | 狠狠涩| 成人午夜精品 | 国产一区二区三区 | 综合久久综合久久 | www九色| 免费观看av | 国产欧美久久精品 | 自拍偷拍第一页 | 欧美片网站免费 | 午夜电影在线播放 | 亚洲福利视频网 | 欧美精品一二三区 | 欧美国产视频 | 久久com| 国产亚洲区 | 美女露尿口视频 | 久久久精品日本 | 91av视频在线观看 | 精品久久国产 | 久久综合九色综合欧美狠狠 | 精品国产一区久久 |