STM32F21xxx
Description
2.2.20
Timers and watchdogs
The STM32F21x devices include two advanced-control timers, eight general-purpose
timers, two basic timers and two watchdog timers.
All timer counters can be frozen in debug mode.
Table 3 compares the features of the advanced-control, general-purpose and basic timers.
Table 3. Timer feature comparison
Timer type
Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA
request
generation
Capture/
compare
channels
Complementary
output
Max
interface
clock
Max
timer
clock
Advanced- TIM1,
control TIM8
16-bit
Up, Any integer
Down, between 1
Up/down and 65536
Yes
4
TIM2,
TIM5
General
32-bit
Up, Any integer
Down, between 1
Up/down and 65536
Yes
4
purpose
TIM3,
TIM4
16-bit
Up, Any integer
Down, between 1
Up/down and 65536
Yes
4
Basic
TIM6,
TIM7
16-bit
Any integer
Up between 1 Yes
and 65536
0
Any integer
TIM9 16-bit
Up between 1
No
2
and 65536
TIM10,
TIM11
General
16-bit
Any integer
Up between 1
No
and 65536
1
purpose
Any integer
TIM12 16-bit
Up between 1
No
2
and 65536
TIM13,
TIM14
16-bit
Any integer
Up between 1
No
and 65536
1
Yes
60 MHz
120
MHz
No
30 MHz
60
MHz
No
30 MHz
60
MHz
No
30 MHz
60
MHz
No
60 MHz
120
MHz
No
60 MHz
120
MHz
No
30 MHz
60
MHz
No
30 MHz
60
MHz
Advanced-control timers (TIM1, TIM8)
The advanced-control timers (TIM1, TIM8) can be seen as three-phase PWM generators
multiplexed on 6 channels. They have complementary PWM outputs with programmable
inserted dead times. They can also be considered as complete general-purpose timers.
Their 4 independent channels can be used for:
● Input capture
● Output compare
● PWM generation (edge- or center-aligned modes)
● One-pulse mode output
Doc ID 17050 Rev 8
25/173