正点原子例程输入捕获只有测脉宽,而测频率只是带过,并无程序,两个原理差不多,
今天需要一个引脚测精度高一点的频率,便写下来了,留个记录
下载后直接就能用了,精确度十分高,有用计保仪验证过
免费图文:根据代码截图改一下也能用,下载更省事
https://blog.csdn.net/weixin_48919116/article/details/129562270?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C%22rId%22%3A%22129562270%22%2C%22source%22%3A%22weixin_48919116%22%7D
MCU:STM32F103C8T6
输入捕获引脚:TIM_CH1 PB6
2023-04-24 14:47:25
3.95MB
stm32
1