Datasheet
Functional overview STM32F313xx
18/58 Doc ID 023636 Rev 1
3.16.1 Advanced timers (TIM1, TIM8)
The advanced-control timers (TIM1 on all devices and TIM8 on STM32F313xx devices) can
each be seen as a three-phase PWM multiplexed on 6 channels. They have complementary
PWM outputs with programmable inserted dead-times. They can also be seen as complete
general-purpose timers. The 4 independent channels can be used for:
● Input capture
● Output compare
● PWM generation (edge or center-aligned modes) with full modulation capability (0-
100%)
● One-pulse mode output
In debug mode, the advanced-control timer counter can be frozen and the PWM outputs
disabled to turn off any power switches driven by these outputs.
Many features are shared with those of the general-purpose TIM timers (described in
Section 3.16.2 using the same architecture, so the advanced-control timers can work
together with the TIM timers via the Timer Link feature for synchronization or event chaining.
Table 5. Timer feature comparison
Timer type Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA
request
generation
Capture/
compare
Channels
Complementary
outputs
Advanced
TIM1,
TIM8
(on
STM32F313xx
devices only)
16-bit
Up, Down,
Up/Down
Any integer
between 1
and 65536
Ye s 4 Ye s
General-
purpose
TIM2 32-bit
Up, Down,
Up/Down
Any integer
between 1
and 65536
Ye s 4 N o
General-
purpose
TIM3, TIM4 16-bit
Up, Down,
Up/Down
Any integer
between 1
and 65536
Ye s 4 N o
General-
purpose
TIM15 16-bit Up
Any integer
between 1
and 65536
Ye s 2 1
General-
purpose
TIM16, TIM17 16-bit Up
Any integer
between 1
and 65536
Ye s 1 1
Basic
TIM6,
TIM7
(on
STM32F313xx
devices only)
16-bit Up
Any integer
between 1
and 65536
Ye s 0 N o