Datasheet
DocID022265 Rev 6 21/121
STM32F051x4 STM32F051x6 STM32F051x8 Functional overview
26
3.14 Timers and watchdogs
The STM32F051xx devices include up to six general-purpose timers, one basic timer and
an advanced control timer.
Table 7 compares the features of the different timers.
3.14.1 Advanced-control timer (TIM1)
The advanced-control timer (TIM1) can be seen as a three-phase PWM multiplexed on six
channels. It has complementary PWM outputs with programmable inserted dead times. It
can also be seen as a complete general-purpose timer. The four independent channels can
be used for:
• inp
ut 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.
Table 7. Timer feature comparison
Timer
type
Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA
request
generation
Capture/compare
channels
Complementary
outputs
Advanced
control
TIM1 16-bit
Up, down,
up/down
integer from
1 to 65536
Yes 4 3
General
purpose
TIM2 32-bit
Up, down,
up/down
integer from
1 to 65536
Yes 4 -
TIM3 16-bit
Up, down,
up/down
integer from
1 to 65536
Yes 4 -
TIM14 16-bit Up
integer from
1 to 65536
No 1 -
TIM15 16-bit Up
integer from
1 to 65536
Yes 2 1
TIM16
TIM17
16-bit Up
integer from
1 to 65536
Yes 1 1
Basic TIM6 16-bit Up
integer from
1 to 65536
Yes - -
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.