GD32W51x User Manual
572
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
CH0CAPPSC[1:0]
Channel 0 input capture prescaler
This bit-field specifies the factor of the prescaler on channel 0 input. The prescaler
is reset w hen CH0EN 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 4channel input edges
11: Capture is done every 8 channel input edges
1:0
CH0MS[1:0]
Channel 0 mode selection
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
CH0NP CH0NEN
CH0P
CH0EN
rw
rw
rw
rw
Bits
Fields
Descriptions
31:4
Reserved
Must be kept at reset value
3
CH0NP
Channel 0 complementary output polarity
When channel 0 is configured in output mode, this bit specifies the complementar y
output signal polarity.
0: Channel 0 active high
1: Channel 0 active low
When channel 0 is configured in input mode, In conjunction w ith CH0P, this bit is
used to define the polarity of CI0.
This bit cannot be modified w hen PROT [1:0] bit-filed in TIMERx_CCHP register is
11 or 10.
2
CH0NEN
Channel 0 complementary output enable
When channel 0 is configured in output mode, setting this bit enables the
complementary output in channel0.
0: Channel 0 complementary output disabled