OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1927|回复: 2

好久没来啦,请教计数器问题

[复制链接]

15

主题

53

帖子

0

精华

初级会员

Rank: 2

积分
141
金钱
141
注册时间
2015-5-14
在线时间
6 小时
发表于 2018-5-31 10:29:18 | 显示全部楼层 |阅读模式
10金钱
void TIM_TIxExternalClockConfig (TIM_TypeDef * TIMx,
uint16_t TIM_TIxExternalCLKSource,
uint16_t TIM_ICPolarity,
uint16_t ICFilter
)

Configures the TIMx Trigger as External Clock.
Parameters:
TIMx,:where x can be 1, 2, 3, 4, 5, 9, 12 or 15 to select the TIM peripheral.
TIM_TIxExternalCLKSource,:Trigger source. This parameter can be one of the following values:
  • TIM_TIxExternalCLK1Source_TI1ED: TI1 Edge Detector
  • TIM_TIxExternalCLK1Source_TI1: Filtered Timer Input 1
  • TIM_TIxExternalCLK1Source_TI2: Filtered Timer Input 2
TIM_ICPolarity,:specifies the TIx Polarity. This parameter can be one of the following values:
  • TIM_ICPolarity_Rising
  • TIM_ICPolarity_Falling
ICFilter: specifies the filter value. This parameter must be a value between 0x0 and 0xF.
用通用定时器做外部脉冲计数,用到上面这个外部时钟配置函数,其中的TIM_TIxExternalCLKSource的变量,怎么没有TI3、TI4呢?

最佳答案

查看完整内容[请看2#楼]

说明能做时钟输入的,只有TI1,TI2
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165524
金钱
165524
注册时间
2010-12-1
在线时间
2116 小时
发表于 2018-5-31 10:29:19 | 显示全部楼层
说明能做时钟输入的,只有TI1,TI2
回复

使用道具 举报

15

主题

53

帖子

0

精华

初级会员

Rank: 2

积分
141
金钱
141
注册时间
2015-5-14
在线时间
6 小时
 楼主| 发表于 2018-6-1 09:28:02 | 显示全部楼层
正点原子 发表于 2018-6-1 01:54
说明能做时钟输入的,只有TI1,TI2

原来如此,谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-5 12:19

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表