![GigaDevice Semiconductor GD32E23 Series Скачать руководство пользователя страница 318](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794318.webp)
GD32E23x User Manual
318
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value
15
CH3COMCEN
Channel 3 output compare clear enable
Refer to CH0COMCEN description
14:12
CH3COMCTL[2:0]
Channel 3 compare output control
Refer to CH0COMCTL description
11
CH3COMSEN
Channel 3 output compare shadow enable
Refer to CH0COMSEN description
10
CH3COMFEN
Channel 3 output compare fast enable
Refer to CH0COMFEN description
9:8
CH3MS[1:0]
Channel 3 mode selection
This bit-field specifies the direction of the channel and the input signal selection.
This bit-field is writable only when the channel is not active. (CH3EN bit in
TIMERx_CHCTL2 register is reset).
00: Channel 3 is programmed as output mode
01: Channel 3 is programmed as input mode, IS3 is connected to CI3FE3
10: Channel 3 is programmed as input mode, IS3 is connected to CI2FE3
11: Channel 3 is programmed as input mode, IS3 is connected to ITS.
Note:
When CH3MS[1:0]=11, it is necessary to ensure that an internal trigger input
is selected through TRGS bits in TIMERx_SMCFG register.
7
CH2COMCEN
Channel 2 output compare clear enable.
When this bit is set, if the ETIFP signal is detected as high level, the O2CPRE signal
will be cleared.
0: Channel 2 output compare clear disable
1: Channel 2 output compare clear enable
6:4
CH2COMCTL[2:0]
Channel 2 compare output control
This bit-field specifies the compare output mode of the the output prepare signal
O0CPRE.
In addition, the high level of O0CPRE is the active level, and CH0_O and
CH0_ON channels polarity depends on CH0P and CH0NP bits.
000: Timing mode. The O2CPRE signal keeps stable, independent of the
comparison between the output compare register TIMERx_CH2CV and the counter
TIMERx_CNT.
001: Set the channel output. O2CPRE signal is forced high when the counter is
equals to the output compare register TIMERx_CH2CV.
010: Clear the channel output. O2CPRE signal is forced low when the counter is
equals to the output compare register TIMERx_CH2CV.
011: Toggle on match. O2CPRE toggles when the counter is equals to the output
compare register TIMERx_CH2CV.
100: Force low. O2CPRE is forced to low level.
101: Force high. O2CPRE is forced to high level.