GD32F10x User Manual
413
4’b1101
5
f
DTS
/32
4’b1110
6
4’b1111
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 when CH0EN bit in TIMERx_CHCTL2 register is clear.
00: Prescaler disable, input capture occurs on every channel input edge
01: The input capture occurs on every 2 channel input edges
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
CH0P
CH0EN
rw
rw
Bits
Fields
Descriptions
31:2
Reserved
Must be kept at reset value
1
CH0P
Channel 0 capture/compare 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 input mode, setting this bit enables CH0_O signal
in active state. When channel 0 is configured in output mode, setting this bit enables
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...