DocID025832 Rev 5
21/117
STM32F042x4 STM32F042x6
Functional overview
27
3.12
Timers and watchdogs
The STM32F042x4/x6 devices include up to five general-purpose timers and an advanced
control timer.
compares the features of the different timers.
3.12.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
Table 6. No. of capacitive sensing channels available on STM32F042x devices
Analog I/O group
Number of capacitive sensing channels
STM32F042Cx
LQPF48
UQFPN48
STM32F042Tx
WLCSP36
STM32F042Kx
LQFP32
UQFPN32
STM32F042Gx
UQFPN28
STM32F042Fx
TSSOP20
G1
3
3
3
3
3
G2
3
3
3
3
3
G3
2
2
1
2
1
0
G4
3
3
3
1
1
G5
3
3
3
3
0
Number of capacitive
sensing channels
14
14
13
14
11
7
Table 7. Timer feature comparison
Timer
type
Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA
request
generation
Capture/compare
channels
Complementary
outputs
Advanced
control
TIM1
16-bit
Up, down,
up/down
integer from
1 to 65536
Yes
4
3
General
purpose
TIM2 32-bit
Up, down,
up/down
integer from
1 to 65536
Yes
4
-
TIM3
16-bit
Up, down,
up/down
integer from
1 to 65536
Yes
4
-
TIM14
16-bit
Up
integer from
1 to 65536
No
1
-
TIM16
TIM17
16-bit
Up
integer from
1 to 65536
Yes
1
1