GD32VF103 User Manual
270
0100: f
SAMP
=f
DTS
/2, N=6
0101: f
SAMP
=f
DTS
/2, N=8
0110: f
SAMP
=f
DTS
/4, N=6
0111: f
SAMP
=f
DTS
/4, N=8
1000: f
SAMP
=f
DTS
/8, N=6
1001: f
SAMP
=f
DTS
/8, N=8
1010: f
SAMP
=f
DTS
/16, N=5
1011: f
SAMP
=f
DTS
/16, N=6
1100: f
SAMP
=f
DTS
/16, N=8
1101: f
SAMP
=f
DTS
/32, N=5
1110: f
SAMP
=f
DTS
/32, N=6
1111: f
SAMP
=f
DTS
/32, N=8
3:2
CH2CAPPSC[1:0]
Channel 2 input capture prescaler
This bit-field specifies the factor of the prescaler on channel 2 input. The prescaler
is reset when CH2EN bit in TIMERx_CHCTL2 register is clear.
00: Prescaler disable, capture is done on each channel input edge
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
CH2NP
CH2NEN
CH2P
CH2EN
CH1NP
CH1NEN
CH1P
CH1EN
CH0NP
CH0NEN
CH0P
CH0EN
rw
rw
rw
rw
rw
rw
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
CH2NP
Channel 2 complementary output polarity
Refer to CH0NP description