DocID018909 Rev 11
639/1731
RM0090
General-purpose timers (TIM2 to TIM5)
640
18.4.21 TIMx register map
TIMx registers are mapped as described in the table below:
Table 99. TIM2 to TIM5 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
Reserved
CKD
[1:0]
ARPE
CMS
[1:0]
DIR
OP
M
URS
UDIS
CEN
Reset value
0
0
0
0
0
0
0
0
0
0
0x04
TIMx_CR2
Reserved
TI
1
S
MMS[2:0]
C
CDS
Reserved
Reset value
0
0
0
0
0
0x08
TIMx_SMCR
Reserved
ETP
ECE
ETPS
[1:0]
ETF[3:0]
MSM
TS[2:0]
Reserved
SMS[2:0]
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0C
TIMx_DIER
Reserved
TDE
COM
D
E
CC4DE
CC3DE
CC2DE
CC1DE
UDE
Reserved
TIE
Reserved
CC4IE
CC3IE
CC2IE
CC1IE
UI
E
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0x10
TIMx_SR
Reserved
CC4OF
CC3OF
CC2OF
CC1OF
Reserved
TI
F
Reserved
CC4IF
CC3IF
CC2IF
CC1IF
UIF
Reset value
0
0
0
0
0
0
0
0
0
0
0x14
TIMx_EGR
Reserved
TG
Re
se
rved
CC4G
CC3G
CC2G
CC1G
UG
Reset value
0
0
0
0
0
0
0x18
TIMx_CCMR1
Output Compare
mode
Reserved
OC2CE
OC2M
[2:0]
OC2PE
OC2
F
E
CC2S
[1:0]
OC1CE
OC1M
[2:0]
OC1PE
OC1
F
E
CC1S
[1:0]
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TIMx_CCMR1
Input Capture
mode
Reserved
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
Reserved
O
24CE
OC4M
[2:0]
OC4P
E
OC4
F
E
CC4S
[1:0]
OC3CE
OC3M
[2:0]
OC3P
E
OC3
F
E
CC3S
[1:0]
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
TIMx_CCMR2
Input Capture
mode
Reserved
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
Reserved
CC4NP
Reser
ve
d
CC4P
CC4E
CC3NP
Reser
ve
d
CC3P
CC3E
CC2NP
Reser
ve
d
CC2P
CC2E
CC1NP
Reser
ve
d
CC1P
CC1E
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0x24
TIMx_CNT
CNT[31:16]
(TIM2 and TIM5 only, reserved on the other timers)
CNT[15:0]
Reset value
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x28
TIMx_PSC
Reserved
PSC[15:0]
Reset value
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0