General-purpose timers (TIM)
ï€ TIM_OPMode_Single :
ï€ TIM_OPMode_Repetitive :
22.2.11.15 TIM_SetClockDivision
void TIM_SetClockDivision ( TIM_TypeDef * TIMx, uint16_t
TIM_CKD)
Sets the TIMx Clock Division value.
ï‚· TIMx : where x can be 1, 2, 3, 4, 8, 15, 16 or 17, to select the
TIM peripheral.
ï‚· TIM_CKD : specifies the clock division value. This parameter
can be one of the following value:
ï€ TIM_CKD_DIV1 : TDTS = Tck_tim
ï€ TIM_CKD_DIV2 : TDTS = 2*Tck_tim
ï€ TIM_CKD_DIV4 : TDTS = 4*Tck_tim
22.2.11.16 TIM_Cmd
void TIM_Cmd ( TIM_TypeDef * TIMx, FunctionalState
NewState)
Enables or disables the specified TIM peripheral.
ï‚· TIMx : where x can be 1, 2, 3, 4, 6, 7, 8, 15, 16 or 17 to
select the TIMx peripheral.
ï‚· NewState : new state of the TIMx peripheral. This parameter
can be: ENABLE or DISABLE.