Functional overview
STM32F051x
3.14
Timers and watchdogs
The STM32F051x family devices include up to six general-purpose timers, one basic timer
and an advanced control timer.
Table 7 compares the features of the advanced-control, general-purpose and basic timers.
Table 7. Timer feature comparison
Timer
type
Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA request Capture/compare Complementary
generation
channels
outputs
Advanced
control
TIM1
16-bit
Up, down,
up/down
Any integer
between 1
and 65536
Yes
4
Yes
TIM2
32-bit
Up, down,
up/down
Any integer
between 1
and 65536
Yes
4
No
TIM3
16-bit
Up, down,
up/down
Any integer
between 1
and 65536
Yes
4
No
General
purpose
TIM14
16-bit
Any integer
Up
between 1
and 65536
No
1
No
Any integer
TIM15 16-bit
Up
between 1
Yes
2
Yes
and 65536
TIM16,
TIM17
16-bit
Any integer
Up
between 1
Yes
and 65536
1
Yes
Any integer
Basic TIM6
16-bit
Up
between 1
Yes
0
No
and 65536
3.14.1
Advanced-control timer (TIM1)
The advanced-control timer (TIM1) can be seen as a three-phase PWM multiplexed on 6
channels. It has complementary PWM outputs with programmable inserted dead times. It
can also be seen as a complete general-purpose timer. The 4 independent channels can be
used for:
● Input capture
● Output compare
● PWM generation (edge or center-aligned modes)
● One-pulse mode output
If configured as a standard 16-bit timer, it has the same features as the TIMx timer. If
configured as the 16-bit PWM generator, it has full modulation capability (0-100%).
The counter can be frozen in debug mode.
Many features are shared with those of the standard timers which have the same
architecture. The advanced control timer can therefore work together with the other timers
via the Timer Link feature for synchronization or event chaining.
20/105
Doc ID 022265 Rev 3