General-purpose timers (TIM)
ï‚· TIM_Break2Config()
ï‚· TIM_Break1Cmd()
ï‚· TIM_Break2Cmd()
ï‚· TIM_BDTRStructInit()
ï‚· TIM_CtrlPWMOutputs()
ï‚· TIM_SelectCOM()
ï‚· TIM_CCPreloadControl()
22.2.6 Interrupts, DMA and flags management functions
ï‚· TIM_ITConfig()
ï‚· TIM_GenerateEvent()
ï‚· TIM_GetFlagStatus()
ï‚· TIM_ClearFlag()
ï‚· TIM_GetITStatus()
ï‚· TIM_ClearITPendingBit()
ï‚· TIM_DMAConfig()
ï‚· TIM_DMACmd()
ï‚· TIM_SelectCCDMA()
22.2.7 Clocks management functions
ï‚· TIM_InternalClockConfig()
ï‚· TIM_ITRxExternalClockConfig()
ï‚· TIM_TIxExternalClockConfig()
ï‚· TIM_ETRClockMode1Config()
ï‚· TIM_ETRClockMode2Config()
22.2.8 Synchronization management functions
TIM Driver: how to use it in synchronization Mode
Case of two/several Timers
1. Configure the Master Timers using the following functions:
ï€ void TIM_SelectOutputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_TRGOSource);
ï€ void TIM_SelectMasterSlaveMode(TIM_TypeDef* TIMx, uint16_t
TIM_MasterSlaveMode);
2. Configure the Slave Timers using the following functions:
ï€ void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_InputTriggerSource);
ï€ void TIM_SelectSlaveMode(TIM_TypeDef* TIMx, uint16_t TIM_SlaveMode);
Case of Timers and external trigger(ETR pin)
1. Configure the External trigger using this function:
ï€ void TIM_ETRConfig(TIM_TypeDef* TIMx, uint16_t TIM_ExtTRGPrescaler,
uint16_t TIM_ExtTRGPolarity, uint16_t ExtTRGFilter);
2. Configure the Slave Timers using the following functions:
ï€ void TIM_SelectInputTrigger(TIM_TypeDef* TIMx, uint16_t
TIM_InputTriggerSource);