
M0A21/M0A23 Series
May 06, 2022
Page
340
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
Figure 6.10-3 PWM Clock Source Control
Figure 6.10-4 and Figure 6.10-5 illustrate the architecture of PWM independent mode and
complementary mode. No matter independent mode or complementary mode, paired channels’
(PWM_CH0 and PWM_CH1, PWM_CH2 and PWM_CH3, PWM_CH4 and PWM_CH5) counters both
come from the same clock source and prescaler. When counter count to 0, PERIOD
(PWM_PERIODn[15:0]) or equal to comparator, events will be generated. These events are passed to
corresponding generators to generate PWM pulse, interrupt signal and trigger signal for ADC to start
conversion. Output control is used to changing PWM pulse output state; brake function in output control
also generates interrupt events. In complementary mode, even channel use odd channel comparator to
generate events.
Prescaler0
12bits
Interrupt
Generator
Trigger
Generator
NVIC_MUX
ADC
PWM0_CH0
Prescaler2
12bits
Prescaler4
12bits
Pulse
Generator0
Output
Control0
Pulse
Generator1
Output
Control1
PWM0_CH1
PWM0_CH2
Pulse
Generator2
Output
Control2
Pulse
Generator3
Output
Control3
PWM0_CH3
PWM0_CH4
Pulse
Generator4
Output
Control4
Pulse
Generator5
Output
Control5
PWM0_CH5
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_CLK0
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_BRAKE0
PWM0_BRAKE1
i
i
i
i
i
Trigger events
Interrupt events
t
i
i
PWM0_CLK2
PWM0_CLK4
16
16
16
Comparator1
Comparator0
Counter0_1
a
a
a
16
16
16
Comparator3
Comparator2
Counter2_3
a
a
a
16
16
16
Comparator5
Comparator4
Counter4_5
a
a
a
a
i
t
denotes interrupt events
denotes trigger events
denotes interrupt, trigger and pulse generate events
Note:
Figure 6.10-4 PWM Independent Mode Architecture Diagram