General Timers
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
209
Reset value:
0x00000000
Read/write access:
read/write
31
30
29
28
27
26
…
5
4
3
2
1
0
ARR
R/W
Bit
Name
Access
Reset Description
31:0
ARR
R/W
0
ARR is the value to be loaded in the actual auto-reload register. It can be preloaded
by setting the ARPE bit in the TIMx_CR register.
10.4.2
TIM4 Registers
The details of TIM4 registers are listed in Table 10-6.
Table 10-6 TIM4 memory map
Name
Address Offset
Access
Description
TIMx_EN
0x00
R/W
TIM4 enable register
TIMx_CR
0x04
R/W
TIM4 control register
TIMx_DIER
0x08
R/W
TIM4 interrupt enable register
TIMx_SR
0x0C
R/W
TIM4 status register
TIMx_EGR
0x10
W
TIM4 event generation register
TIMx_CNT
0x14
R/W
TIM4 counter register
TIMx_PSC
0x18
R/W
TIM4 prescaler register
TIMx_ARR
0x1C
R/W
TIM4 auto-reload register
TIMx_CCR0
0x20
R/W
TIM4 capture/compare register 0
RSVD
0x24 ~ 0x7F
N/A
Reserved
10.4.2.1
TIMx Enable Register (TIMx_EN)
Name:
TIM4 enable register
Address offset:
0x00
Reset value:
0x00000000
Read/write access:
read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
CNT_STS
R
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
RSVD
CNT_RUN
RSVD
CNT_STOP
CNT_START
R
W
W
Bit
Name
Access
Reset
Description
31:17
RSVD
N/A
-
Reserved
16
CNT_STS
R
0
Counter working status
0: Counter is stopped
1: Counter is working
15:9
RSVD
N/A
-
Reserved
8
CNT_RUN
R
0
Counter run status
0: Counter is disabled
1: Counter is enabled
7:2
RSVD
N/A
-
Reserved
1
CNT_STOP
W
0
Counter stop
0: No action.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03