GD32F20x User Manual
451
Same as Output compare mode
Channel control register 2 (TIMERx_CHCTL2)
Address offset: 0x20
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
Reserved
CH1P
CH1EN
CH0NP Reserved
CH0P
CH0EN
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:6
Reserved
Must be kept at reset value
5
CH1P
Channel 1 capture/compare function polarity
Refer to CH0P description
4
CH1EN
Channel 1 capture/compare function enable
Refer to CH1EN description
3
CH0NP
Channel 0 complementary output polarity
When channel 0 is configured in output mode, this bit should be keep reset value.
When channel 0 is configured in input mode, In conjunction with CH0P, this bit is
used to define the polarity of CI0.
This bit cannot be modified when PROT [1:0] bit-filed in TIMERx_CCHP register is
11 or 10.
2
Reserved
Must be kept at reset value
1
CH0P
Channel 0 capture/compare function 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, this bit specifies the CI0 signal
polarity.
[CH0NP, CH0P] will select the active trigger or capture polarity for CI0FE0 or
CI1FE0.
[CH0NP==0, CH0P==0]: CIxFE0
’s rising edge is the active signal for capture or
trigger operation in slave mode. And CIxFE0 will not be inverted.
[CH0NP==0, CH0P==1]: CIxFE0
’s falling edge is the active signal for capture or
trigger operation in slave mode. And CIxFE0 will be inverted.
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...