STM32F302xx/STM32F303xx
Functional overview
3.16
Timers and watchdogs
The STM32F302xx/STM32F303xx includes up to two advanced control timers, up to 6
general-purpose timers, two basic timers, two watchdog timers and a SysTick timer. The
table below compares the features of the advanced control, general purpose and basic
timers.
Table 3.
Timer feature comparison
DMA
request
generation Channels
Capture/
compare
Counter
resolution
Counter
type
Prescaler
factor
Complementary
outputs
Timer type
Timer
TIM1,
TIM8
(on
Any integer
between 1
and 65536
Up, Down,
Up/Down
Advanced
16-bit
Yes
4
Yes
STM32F303xB
/STM32F303x
C devices only)
Any integer
between 1
and 65536
General-
purpose
Up, Down,
Up/Down
TIM2
TIM3, TIM4
TIM15
32-bit
16-bit
16-bit
16-bit
Yes
Yes
Yes
Yes
4
4
2
1
No
No
1
Any integer
between 1
and 65536
General-
purpose
Up, Down,
Up/Down
Any integer
between 1
and 65536
General-
purpose
Up
Up
Any integer
between 1
and 65536
General-
purpose
TIM16, TIM17
1
TIM6,
TIM7
(on
Any integer
between 1
and 65536
Basic
16-bit
Up
Yes
0
No
STM32F303xB
/STM32F303x
C devices only)
3.16.1
Advanced timers (TIM1, TIM8)
The advanced-control timers (TIM1 on all devices and TIM8 on
STM32F303xB/STM32F303xC devices) can each be seen as a three-phase PWM
multiplexed on 6 channels. They have complementary PWM outputs with programmable
inserted dead-times. They can also be seen as complete general-purpose timers. The 4
independent channels can be used for:
●
●
●
Input capture
Output compare
PWM generation (edge or center-aligned modes) with full modulation capability (0-
100%)
●
One-pulse mode output
Doc ID 023353 Rev 5
23/133