General-purpose timers (TIM)
22.2.13.8 TIM_SetIC1Prescaler
void TIM_SetIC1Prescaler ( TIM_TypeDef * TIMx, uint16_t
TIM_ICPSC)
Sets the TIMx Input Capture 1 prescaler.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17 to select the
TIM peripheral.
ï‚· TIM_ICPSC : specifies the Input Capture1 prescaler new
value. This parameter can be one of the following values:
ï€ TIM_ICPSC_DIV1 : no prescaler
ï€ TIM_ICPSC_DIV2 : capture is done once every 2
events
ï€ TIM_ICPSC_DIV4 : capture is done once every 4
events
ï€ TIM_ICPSC_DIV8 : capture is done once every 8
events
22.2.13.9 TIM_SetIC2Prescaler
void TIM_SetIC2Prescaler ( TIM_TypeDef * TIMx, uint16_t
TIM_ICPSC)
Sets the TIMx Input Capture 2 prescaler.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8 or 15 to select the TIM
peripheral.
ï‚· TIM_ICPSC : specifies the Input Capture2 prescaler new
value. This parameter can be one of the following values:
ï€ TIM_ICPSC_DIV1 : no prescaler
ï€ TIM_ICPSC_DIV2 : capture is done once every 2
events
ï€ TIM_ICPSC_DIV4 : capture is done once every 4
events
ï€ TIM_ICPSC_DIV8 : capture is done once every 8
events