初级会员

- 积分
- 141
- 金钱
- 141
- 注册时间
- 2015-5-14
- 在线时间
- 6 小时
|
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呢?
|
|