![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 409](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794409.webp)
GD32E23x User Manual
409
4’b1011
6
4’b1100
8
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
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 complementary
output signal polarity.
0: Channel 0 complementary output high level is active level
1: Channel 0 complementary output low level is active level
When channel 0 is configured in input mode, together with CH0P, this bit is used to
define the polarity of CI0.
This bit cannot be modified when 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.