Functional overview
3.11
Timers and watchdogs
The STM32F050xx family devices include up to six general-purpose timers, one basic timer
and an advanced control timer.
Table 5
compares the features of the advanced-control, general-purpose and basic timers.
Table 5.
Timer feature comparison
Timer
Counter
Timer
type
resolution
Advanced
TIM1
control
TIM2
TIM3
General
purpose
TIM14
TIM16,
TIM17
3.11.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.
3.11.2
General-purpose timers (TIM2..3, TIM14..17)
There are six synchronizable general-purpose timers embedded in the STM32F050xx
devices (see
PWM outputs, or as simple time base.
18/98
Counter
Prescaler
type
Any integer
Up, down,
16-bit
between 1
up/down
and 65536
Any integer
Up, down,
32-bit
between 1
up/down
and 65536
Any integer
Up, down,
16-bit
between 1
up/down
and 65536
Any integer
16-bit
Up
between 1
and 65536
Any integer
16-bit
Up
between 1
and 65536
Table 5
for differences). Each general-purpose timer can be used to generate
Doc ID 023079 Rev 3
DMA request
factor
generation
Yes
Yes
Yes
No
Yes
STM32F050xx
Capture/compare
Complementary
channels
4
4
4
1
1
outputs
Yes
No
No
No
Yes
Need help?
Do you have a question about the STM32F050G6 and is the answer not in the manual?