Description
STM32F100x4, STM32F100x6, STM32F100x8, STM32F100xB
Table 3.
Timer
Timer feature comparison
Counter
Counter Prescaler DMA request Capture/compare Complementary
resolution
type
factor
generation
channels
outputs
Up,
down,
Any integer
between 1
TIM1
16-bit
16-bit
16-bit
16-bit
16-bit
Yes
4
Yes
up/down and 65536
TIM2,
TIM3,
TIM4
Up,
down,
Any integer
between 1
Yes
Yes
Yes
Yes
4
2
1
0
No
Yes
Yes
No
up/down and 65536
Any integer
TIM15
Up
Up
Up
between 1
and 65536
Any integer
between 1
and 65536
TIM16,
TIM17
Any integer
between 1
and 65536
TIM6,
TIM7
2.16.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 TIM timers which have the same
architecture. The advanced control timer can therefore work together with the TIM timers via
the Timer Link feature for synchronization or event chaining.
2.16.2
General-purpose timers (TIM2, TIM3, TIM4, TIM15, TIM16 & TIM17)
There are six synchronizable general-purpose timers embedded in the STM32F100xx
devices (see Table 3 for differences). Each general-purpose timers can be used to generate
PWM outputs, or as simple time base.
TIM2, TIM3, TIM4
STM32F100xx devices feature three synchronizable 4-channels general-purpose timers.
These timers are based on a 16-bit auto-reload up/downcounter and a 16-bit prescaler.
They feature 4 independent channels each for input capture/output compare, PWM or one-
18/84
Doc ID 16455 Rev 2