GD32VF103 User Manual
312
01: Capture is done every 2 channel input edges
10: Capture is done every 4 channel input edges
11: Capture is done every 8 channel input edges
1:0
CH2MS[1:0]
Channel 2 mode selection
Same as output compare mode
Channel control register 2 (TIMERx_CHCTL2)
Address offset: 0x20
Reset value: 0x0000
This register can be accessed by half-word(16-bit) or word(32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
CH3P
CH3EN
Reserved
CH2P
CH2EN
Reserved
CH1P
CH1EN
Reserved
CH0P
CH0EN
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
15:14
Reserved
Must be kept at reset value
13
CH3P
Channel 3 capture/compare function polarity
Refer to CH0P description
12
CH3EN
Channel 3 capture/compare function enable
Refer to CH0EN description
11:10
Reserved
Must be kept at reset value
9
CH2P
Channel 2 capture/compare function polarity
Refer to CH0P description
8
CH2EN
Channel 2 capture/compare function enable
Refer to CH0EN description
7: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 CH0EN description
3: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