GD32W51x User Manual
500
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
CH3VAL[15:0]
Capture or compare value of channel 3
When channel3 is configured in input mode, this bit-filed indicates the counter value
corresponding to the last capture event. And this bit-filed is read-only.
When channel 3 is configured in output mode, this bit-filed contains value to be
compared to the counter. When the corresponding shadow register is enabled, the
shadow register updates every update event.
Complementary channel protection register (TIMERx_CCHP)
Address offset: 0x44
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
POEN
OAEN
BRKP
BRKEN
ROS
IOS
PROT[1:0]
DTCFG[7:0]
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15
POEN
Primary output enable
This bit s set by softw are or automatically by hardw are depending on the OAEN bit.
It is cleared asynchronously by hardw are as soon as the break input is active. When
one of channels is configured in output mode, setting this bit enables the channel
outputs (CHx_O and CHx_ON) if the corresponding enable bits (CHxEN, CHx NEN
in TIMERx_CHCTL2 register) have been set.
0: Channel outputs are disabled or forced to idle state.
1: Channel outputs are enabled.
14
OAEN
Output automatic enable
This bit specifies w hether the POEN bit can be set automatically by hardw are.
0: POEN can be not set by hardw are.
1: POEN can be set by hardw are automatically at the next update event, if the break
input is not active.
This bit can be modified only w hen PROT [1:0] bit-filed in TIMERx_CCHP register
is 00.
13
BRKP
Break polarity