General Timers
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
213
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
CC0M
RSVD
CC0P
RSVD
CC0E
RSVD
R/W
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CCR0
R/W
Bit
Name
Access Reset Description
31:29
RSVD
N/A
-
Reserved
28
CC0M
R/W
0
CC0 pulse mode
0: Pulse mode 0
1: Pulse mode 1
27
RSVD
N/A
-
Reserved
26
CC0P
R/W
0
CC0 channel configured as input
0: Positive edge of TRGI is active for capture.
1: Negative edge of TRGI is active for capture.
25
RSVD
N/A
-
Reserved
24
CC0E
R/W
0
CC0 enable
0: CC0 is disabled
1: CC0 is enabled
23:16
RSVD
N/A
-
Reserved
15:0
CCR0
R/W
0
Capture/compare 0 value
If channel CC0 is configured as pulse mode 0: CCR0 is the pulse width of input capture
event (TRGI).
If channel CC0 is configured as pulse mode 1: CCR0 is the pulse number of input
capture event (TRGI) when the counter counts from 0 to ARR.
10.4.3
TIM5 Registers
The details of TIM5 registers are listed in Table 10-7.
Table 10-7 TIM5 memory map
Name
Address Offset
Access
Description
TIMx_EN
0x00
R/W
TIM5 enable register
TIMx_CR
0x04
R/W
TIM5 control register
TIMx_DIER
0x08
R/W
TIM5 interrupt enable register
TIMx_SR
0x0C
R/W
TIM5 status register
TIMx_EGR
0x10
W
TIM5 event generation register
TIMx_CNT
0x14
R/W
TIM5 counter register
TIMx_PSC
0x18
R/W
TIM5 prescaler register
TIMx_ARR
0x1C
R/W
TIM5 auto-reload register
TIMx_CCR0
0x20
R/W
TIM5 capture/compare register 0
TIMx_CCR1
0x24
R/W
TIM5 capture/compare register 1
TIMx_CCR2
0x28
R/W
TIM5 capture/compare register 2
TIMx_CCR3
0x2C
R/W
TIM5 capture/compare register 3
TIMx_CCR4
0x30
R/W
TIM5 capture/compare register 4
TIMx_CCR5
0x34
R/W
TIM5 capture/compare register 5
TIMx_CCR6
0x38
R/W
TIM5 capture/compare register 6
TIMx_CCR7
0x3C
R/W
TIM5 capture/compare register 7
TIMx_CCR8
0x40
R/W
TIM5 capture/compare register 8
TIMx_CCR9
0x44
R/W
TIM5 capture/compare register 9
TIMx_CCR10
0x48
R/W
TIM5 capture/compare register 10
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03