![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 381](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782381.webp)
GD32A50x User Manual
381
Output compare mode:
Bits
Fields
Descriptions
31
CH3MS[2]
Channel 3 I/O mode selection
Refer to CH3MS[1:0]description.
30
CH2MS[2]
Channel 2 I/O mode selection
Refer to CH2MS[1:0] description.
29
CH3COMADDSEN
Channel 3 additional compare output shadow enable
Refer to CH2COMADDSEN description.
28
CH2COMADDSEN
Channel 2 additional compare output shadow enable
When this bit is set, the shadow register of TIMERx_CH2COMV_ADD register
which updates at each update event will be enabled.
0: Channel 2 additional compare shadow disabled
1: Channel 2 additional compare shadow enabled
The PWM mode can be used without validating the shadow register only in single
pulse mode (SPM bit in TIMERx_CTL0 register is set).
This bit cannot be modified when PROT[1:0] bit-field in TIMERx_CCHP register is
11 and CH2MS bit-field is 000.
27: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 CH2COMSEN description
10
Reserved
Must be kept at reset value.
9:8
CH3MS[1:0]
Channel 3 I/O mode selection
This bit-field specifies the direction of the channel and the input signal selection.
The CH3MS[2:0] bit-field is writable only when the channel is not active (When
MCH3MSEL[1:0] = 2b’00, the CH3EN bit in TIMERx_CHCTL2 register is reset;
when MCH3MSEL[1:0] = 2b’01 or 2b’11, the CH3EN and MCH3EN bits in
TIMERx_CHCTL2 register are reset).
00: Channel 3 is programmed as output.
01: Channel 3 is programmed as input, IS3 is connected to CI3FE3.
10: Channel 3 is programmed as input, IS3 is connected to CI2FE3.
11: Channel 3 is programmed as input, IS3 is connected to ITS, this mode is working
only if an internal trigger input is selected (through TRGS bits in TIMERx_SMCFG
register).
100: Channel 3 is programmed as input, IS3 is connected to MCI3FE3.
101~111: Reserved.