Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
220
25
OC0PE
R/W
0
Output Compare 0 preload enable
0: Preload register on CCR0 is disabled. CCR0 can be written at any time, the new
value is taken in account immediately.
1: Preload register on CCR0 is enabled. Read/write operations access the preload
register. CCR0 preload value is loaded in the active register at each update event.
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 output: CCR0 is the value to be loaded in the actual
capture/compare 0 register (preload value). It is loaded permanently if the preload
feature isn’t selected in the OC0PE bit. Else the preload value is copied in the active
capture/compare 0 register when an update event occurs.
The active capture/compare register contains the value to be compared to the
counter TIMx_CNT and signaled on OC0 output.
If channel CC0 is configured as input: CCR0 is the counter value transferred by the
last input capture event (TRGI).
Note
: Value must be 0 ~ 100 (including 0 & 100).
10.4.3.10
TIMx Capture/Compare Register 1 (TIMx_CCR1)
Name:
TIM5 capture/compare register 1
Address offset:
0x24
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
CC1M
CC1P
OC1PE
CC1E
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
CCR1
R/W
Bit
Name
Access Reset
Description
31:28
RSVD
N/A
-
Reserved
27
CC1M
R/W
0
Refer to CC0M description in TIMx_CCR0
26
CC1P
R/W
0
Refer to CC0P description in TIMx_CCR0
25
OC1PE
R/W
0
Refer to OC0PE description in TIMx_CCR0
24
CC1E
R/W
0
Refer to CC0E description in TIMx_CCR0
23:16
RSVD
N/A
-
Reserved
15:0
CCR1
R/W
0
Refer to CCR0 description in TIMx_CCR0
10.4.3.11
TIMx Capture/Compare Register 2 (TIMx_CCR2)
Name:
TIM5 capture/compare register 2
Address offset:
0x28
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
CC2M
CC2P
OC2PE
CC2E
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
CCR2
R/W
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03