General Timers
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
219
RSVD
PSC
R/W
Bit
Name
Access
Reset Description
31:8
RSVD
N/A
-
Reserved
7:0
PSC
R/W
0
Prescaler value
The counter clock frequency is equal to f
CK_PSC
/(PSC + 1).
PSC contains the value to be loaded in the actual prescaler register at each update
event, including when the counter is cleared through the UG bit of the TIMx_EGR
register.
10.4.3.8
TIMx Auto-reload Register (TIMx_ARR)
Name:
TIM5 auto-reload register
Address offset:
0x1C
Reset value:
0x0000FFFF
Read/write access:
read/write
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
ARR
R/W
Bit
Name
Access
Reset
Description
31:16
RSVD
N/A
-
Reserved
15: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.3.9
TIMx Capture/Compare Register 0 (TIMx_CCR0)
Name:
TIM5 capture/compare register 0
Address offset:
0x20
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
CC0P
OC0PE
CC0E
RSVD
R/W
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:28
RSVD
N/A
-
Reserved
27
CC0M
R/W
0
CC0 working mode
0: PWM mode
1: Input capture mode
26
CC0P
R/W
0
CC0 channel configured as output
0: OC0 active is high.
1: OC0 active is low.
CC0 channel configured as input
0: Positive edge of TRGI is active for capture.
1: Negative edge of TRGI is active for capture.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03