
GD32F10x User Manual
390
10: The input capture occurs on every 4 channel input edges
11: The input capture occurs on 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
CH1P
CH1EN
Reserved
CH0P
CH0EN
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: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 high level is active level
1: Channel 0 low level is active level
When channel 0 is configured in input mode, this bit specifies the IS0signal polarity.
0: Rising edge: the rising edge of IS0 is captured. When used as extern trigger, IS0
is non-inverted.
1: Falling edge: the falling edge of IS0 is captured. When used as extern trigger, IS0
is inverted.
0
CH0EN
Channel 0 capture/compare function 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 channel0.
0: Channel 0 disabled
Summary of Contents for GD32F10 Series
Page 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Page 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Page 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Page 427: ...GD32F10x User Manual 427 value ...
Page 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...