STM32F038x6
3.11
Timers and watchdogs
The STM32F038x6 devices include up to five general-purpose timers and an advanced
control timer.
Table 5
compares the features of the different timers.
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 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:
•
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, 14, 16, 17)
There are five synchronizable general-purpose timers embedded in the STM32F038x6
devices (see
PWM outputs, or as simple time base.
Table 5. Timer feature comparison
Counter
type
Up, down,
integer from
16-bit
up/down
1 to 65536
Up, down,
integer from
32-bit
up/down
1 to 65536
Up, down,
integer from
16-bit
up/down
1 to 65536
integer from
16-bit
Up
1 to 65536
integer from
16-bit
Up
1 to 65536
Table 5
for differences). Each general-purpose timer can be used to generate
DocID026079 Rev 3
DMA
Prescaler
request
factor
generation
Yes
Yes
Yes
No
Yes
Functional overview
Capture/compare
Complementary
channels
4
4
4
1
1
outputs
3
-
-
-
1
17/102
22
Need help?
Do you have a question about the STM32F038C6 and is the answer not in the manual?