
M0A21/M0A23 Series
May 06, 2022
Page
352
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
Table 6.10-3 PWM Pulse Generation Event Priority for Down-Counter
Table 6.10-4 PWM Pulse Generation Event Priority for Up-Down-Counter
6.10.5.13 PWM Output Mode
The PWM supports two output modes: Independent mode which may be applied to DC motor system,
Complementary mode with dead-time insertion which may be used in the application of AC induction
motor and permanent magnet synchronous motor.
6.10.5.14 Independent Mode
By default, the PWM is operating in independent mode, independent mode is enabled when channel n
corresponding PWMMODEn (PWM_CTL1[26:24]) bit is set to 0. In this mode six PWM channels:
PWM_CH0, PWM_CH1, PWM_CH2, PWM_CH3, PWM_CH4 and PWM_CH5 are running off its own
period and duty as shown in Figure 6.10-18.
PWM_CH2
PWM_CH0
Setting:
OUTMODE0 (PWM_CTL1[24]) = 0x0
PWM_CH1
PWM_CH3
PWM_CH4
PWM_CH5
Setting:
OUTMODE2 (PWM_CTL1[25]) = 0x0
Setting:
OUTMODE4 (PWM_CTL1[26]) = 0x0
Figure 6.10-18 PWM Independent Mode Waveform
6.10.5.15 Complementary mode
Complementary mode is enabled when the paired channel corresponding PWMMODEn
(PWM_CTL1[26:24]) bit set to 1. In this mode there are 3 PWM generators utilized for complementary
mode, with total of 3 PWM output paired pins in this module. In Complimentary modes, the internal odd
Priority
Down Event
1 (Highest)
Zero event (CNT = 0)
2
Compare down event of odd channel (CNT = CMPDm )
3
Compare down event of even channel (CNT = CMPDn )
4 (Lowest)
Period event (CNT = PERIOD)
Priority
Up Event
Down Event
1 (Highest)
Compare up event of odd channel (CNT = CMPUm
Compare down event of odd channel (CNT = CMPDm)
2
Compare up event of even channel (CNT =
CMPUn)
Compare down event of even channel (CNT = CMPDn)
3 (Lowest)
Zero event (CNT = 0)
Period (center) event (CNT = PERIOD)