General-purpose timers (TIM2/TIM3/TIM4)
RM0365
617/1080
DocID025202 Rev 7
21.4.19 TIMx register map
TIMx registers are mapped as described in the table below:
Table 121. TIM2/TIM3/TIM4 register map and reset values
Offset
Register
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0x00
TIMx_CR1
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
UIFREMA
P
Re
s
CKD
[1:0]
AR
P
E CMS
[1:0]
DIR
OPM
URS
UDIS
CEN
Reset value
0
0
0
0
0
0
0
0
0
0
0x04
TIMx_CR2
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
TI
1S MMS[2:0]
CCDS
Re
s
Re
s
Re
s
Reset value
0
0
0
0
0
0x08
TIMx_SMCR
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
SM
S
[3]
ETP
ECE
ETPS
[1:0]
ETF[3:0]
MSM
TS[2:0]
OCCS
SMS[2:0]
Reset value
0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0C
TIMx_DIER
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
TDE
COMDE
CC4DE
CC3DE
CC2DE
CC1DE
UDE
Re
s
TI
E
Re
s
CC4
IE
CC3
IE
CC2
IE
CC1
IE
UIE
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0x10
TIMx_SR
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
Re
s
CC4OF
CC3OF
CC2OF
CC1OF
Re
s
Re
s
TIF
Re
s
CC4IF
CC3IF
CC2IF
CC1IF
UIF
Reset value
0
0
0
0
0
0
0
0
0
0
0x14
TIMx_EGR
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
TG
Res
CC4
G
CC3
G
CC2
G
CC1
G
UG
Reset value
0
0
0
0
0
0
0x18
TIMx_CCMR1
Output
Compare mode
Res
Res
Res
Res
Res
Res
Res
OC2M[
3
]
Res
Res
Res
Res
Res
Res
Res
OC1M[
3
]
OC2
C
E
OC2M
[2:0]
OC
2P
E
OC2F
E
CC2S
[1:0]
OC1
C
E
OC1M
[2:0]
OC
1P
E
OC1F
E
CC1S
[1:0]
Reset value
0
0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TIMx_CCMR1
Input Capture
mode
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
IC2F[3:0]
IC2
PSC
[1:0]
CC2S
[1:0]
IC1F[3:0]
IC1
PSC
[1:0]
CC1S
[1:0]
Reset value
0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x1C
TIMx_CCMR2
Output
Compare mode
Res
Res
Res
Res
Res
Res
Res
OC4M[
3
]
Res
Res
Res
Res
Res
Res
Res
OC3M[
3
]
O24
C
E
OC4M
[2:0]
OC
4P
E
OC4F
E
CC4S
[1:0]
OC3
C
E
OC3M
[2:0]
OC
3P
E
OC3F
E
CC3S
[1:0]
Reset value
0
0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TIMx_CCMR2
Input Capture
mode
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
IC4F[3:0]
IC4
PSC
[1:0]
CC4S
[1:0]
IC3F[3:0]
IC3
PSC
[1:0]
CC3S
[1:0]
Reset value
0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x20
TIMx_CCER
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
Res
CC4NP
Res
CC4P
CC4E
CC3NP
Res
CC3P
CC3E
CC2NP
Res
CC2P
CC2E
CC1NP
Res
CC1P
CC1E
Reset value
0
0
0
0
0
0
0
0
0
0
0
0