GD32A50x User Manual
386
11 or 10.
2
MCH0EN
Multi mode channel 0 capture/compare enable
When multi mode channel 0 is configured in output mode, setting this bit enables
MCH0_O signal in active state. When multi mode channel 0 is configured in input
mode, setting this bit enables the capture event in multi mode channel 0.
0: Multi mode channel 0 disabled
1: Multi mode channel 0 enabled
1
CH0P
Channel 0 capture/compare polarity
When channel 0 is configured in output mode, this bit specifies the output signal
polarity.
0: Channel 0 active high
1: Channel 0 active low
When channel 0 is configured in input mode, these bits specifie the channel 0 input
signal’s polarity. [MCH0P, CH0P] will select the active trigger or capture polarity for
channel 0 input signals.
00: channel 0 input signal’s rising edge is the active signal for capture or trigger
operation in slave mode. And channel 0 input signal will not be inverted.
01: channel 0 input signal’s falling edge is the active signal for capture or trigger
operation in slave mode. And channel 0 input signal will be inverted.
10: Reserved.
11: Noninverted/both channel 0 input signal’s edges.
This bit cannot be modified when PROT[1:0] bit-field in TIMERx_CCHP register is
11 or 10.
0
CH0EN
Channel 0 capture/compare enable
When channel 0 is configured in output mode, setting this bit enables CH0_O signal
in active state. When channel 0 is configured in input mode, setting this bit enables
the capture event in channel 0.
0: Channel 0 disabled
1: Channel 0 enabled
Counter register (TIMERx_CNT)
Address offset: 0x24
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
CNT[15:0]
rw