![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 346](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782346.webp)
GD32A50x User Manual
346
CHxVAL
0
CARL
CHxCOMVAL_ADD match
OxCPRE
PWM MODE 1
Interrupt signal
CHxIF
OxCPRE
PWM MODE 0
CHxCOMADDIF
next counter
period
next counter
period
If more than one channels are configured in composite PWM mode, it is possible to fix an
offset for the channel x match edge of each pair with respect to other channels. This behavior
is useful in the generation of lighting PWM control signals where it is desirable that edges are
not coincident with each other pair to help eliminate noise generation. The CHxVAL register
value is the shift of the PWM pulse with respect to the beginning of counter period.
Figure 18-25. Four Channels outputs in Composite PWM mode
0
CARL
O0CPRE
CH0VAL
CH1VAL
CH0COMVAL_ADD
CH2COMVAL_ADD
CH2VAL
CH1COMVAL_ADD
CH3COMVAL_ADD
CH3VAL
O1CPRE
O2CPRE
O3CPRE
PWM Mode 1
Output match pulse select
Basing on that CHx_O(x=0..3) outputs are configured by
CHxCOMCTL[2:0](x=0..3) bits when
the match events occur
, the output signal is configured by CHxOMPSEL[1:0](x=0..3) bit to be
normal or a pulse.
When the match events occur, the
CHxOMPSEL[1:0](x=0..3) bits are used to select the output
of OxCPRE which drives CHx_O: