General-purpose timers (TIM)
22.2.11.5 TIM_CounterModeConfig
void TIM_CounterModeConfig ( TIM_TypeDef * TIMx, uint16_t
TIM_CounterMode)
Specifies the TIMx Counter Mode to be used.
ï‚· TIMx : where x can be 1, 2, 3, 4 or 8 to select the TIM
peripheral.
ï‚· TIM_CounterMode : specifies the Counter Mode to be used
This parameter can be one of the following values:
ï€ TIM_CounterMode_Up : TIM Up Counting Mode
ï€ TIM_CounterMode_Down : TIM Down Counting Mode
ï€ TIM_CounterMode_CenterAligned1 : TIM Center
Aligned Mode1
ï€ TIM_CounterMode_CenterAligned2 : TIM Center
Aligned Mode2
ï€ TIM_CounterMode_CenterAligned3 : TIM Center
Aligned Mode3
22.2.11.6 TIM_SetCounter
void TIM_SetCounter ( TIM_TypeDef * TIMx, uint32_t Counter)
Sets the TIMx Counter Register value.
ï‚· TIMx : where x can be 1, 2, 3, 4, 6 ,7 ,8, 15, 16 or 17 to
select the TIM peripheral.
ï‚· Counter : specifies the Counter register new value.
22.2.11.7 TIM_SetAutoreload
void TIM_SetAutoreload ( TIM_TypeDef * TIMx, uint32_t