![GigaDevice Semiconductor GD32E23 Series User Manual Download Page 396](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32e23-series/gd32e23-series_user-manual_2225794396.webp)
GD32E23x User Manual
396
relative bit definition.
Another special function of the OxCPRE signal is a forced output which can be achieved by
setting the CHxCOMCTL field to 0x04/0x05. Here the output can be forced to an
inactive/active level irrespective of the comparison condition between the counter and the
TIMERx_CHxCV values.
Channel output complementary PWM
Function of complementary is for a pair of CHx_O and CHx_ON. Those two output signals
cannot be active at the same time. The TIMERx has only 1 channel have this function. The
complementary signals CHx_O and CHx_ON are controlled by a group of parameters: the
CHxEN and CHxNEN bits in the TIMERx_CHCTL2 register and the POEN, ROS, IOS, ISOx
and ISOxN bits in the TIMERx_CCHP and TIMERx_CTL1 registers. The outputs polarity is
determined by CHxP and CHxNP bits in the TIMERx_CHCTL2 register.
Table 14-7. Complementary outputs controlled by parameters
Complementary Parameters
Output Status
POEN
ROS
IOS
CHxEN
CHxNEN
CHx_O
CHx_ON
0
0/1
0
0
0
CHx_O / CHx_ON = LOW
CHx_O / CHx_ON output disable.
1
CHx_O = CHxP CHx_ON = CHxNP
CHx_O/CHx_ON output disable.
If clock is enable:
CHx_O = ISOx CHx_ON = ISOxN
1
0
1
1
0
0
CHx_O = CHxP CHx_ON = CHxNP
CHx_O/CHx_ON output disable.
1
CHx_O = CHxP CHx_ON = CHxNP
CHx_O/CHx_ON output enable.
If clock is enable:
CHx_O = ISOx CHx_ON = ISOxN
1
0
1
1
0
0/1
0
0
CHx_O/CHx_ON = LOW
CHx_O/CHx_ON output disable.
1
CHx_O = LOW
CHx_O output disable.
CHx_ON=OxCPRE
⊕
CHxNP
CHx_ON output enable
1
0
CHx_O=OxCPRE
⊕
CHxP
CHx_O output enable
CHx_ON = LOW
CHx_ON output disable.
1
CHx_O=OxCPRE
⊕
CHxP
CHx_ON=(!OxCPRE)
⊕