General-purpose timers (TIM)
ï€ Set/Get Prescaler
ï€ Set/Get Autoreload
ï€ Counter modes configuration
ï€ Set Clock division
ï€ Select the One Pulse mode
ï€ Update Request Configuration
ï€ Update Disable Configuration
ï€ Auto-Preload Configuration
ï€ Enable/Disable the counter
2. TIM Output Compare management: this group includes all needed functions to
configure the Capture/Compare unit used in Output compare mode:
ï€ Configure each channel, independently, in Output Compare mode
ï€ Select the output compare modes
ï€ Select the Polarities of each channel
ï€ Set/Get the Capture/Compare register values
ï€ Select the Output Compare Fast mode
ï€ Select the Output Compare Forced mode
ï€ Output Compare-Preload Configuration
ï€ Clear Output Compare Reference
ï€ Select the OCREF Clear signal
ï€ Enable/Disable the Capture/Compare Channels
3. TIM Input Capture management: this group includes all needed functions to configure
the Capture/Compare unit used in Input Capture mode:
ï€ Configure each channel in input capture mode
ï€ Configure Channel1/2 in PWM Input mode
ï€ Set the Input Capture Prescaler
ï€ Get the Capture/Compare values
4. Advanced-control timers (TIM1 and TIM8) specific features
ï€ Configures the Break input, dead time, Lock level, the OSSI, the OSSR State
and the AOE(automatic output enable)
ï€ Enable/Disable the TIM peripheral Main Outputs
ï€ Select the Commutation event
ï€ Set/Reset the Capture Compare Preload Control bit
5. TIM interrupts, DMA and flags management
ï€ Enable/Disable interrupt sources
ï€ Get flags status
ï€ Clear flags/ Pending bits
ï€ Enable/Disable DMA requests
ï€ Configure DMA burst mode
ï€ Select CaptureCompare DMA request
6. TIM clocks management: this group includes all needed functions to configure the
clock controller unit:
ï€ Select internal/External clock
ï€ Select the external clock mode: ETR(Mode1/Mode2), TIx or ITRx
7. TIM synchronization management: this group includes all needed functions to
configure the Synchronization unit:
ï€ Select Input Trigger
ï€ Select Output Trigger
ï€ Select Master Slave Mode
ï€ ETR Configuration when used as external trigger
8. TIM specific interface management, this group includes all needed functions to use
the specific TIM interface:
ï€ Encoder Interface Configuration