
M0A21/M0A23 Series
May 06, 2022
Page
339
of 746
Rev 1.02
M0
A21
/M
0
A
2
3
SE
RIES
TEC
H
NICAL
RE
FEREN
C
E
M
ANUAL
For the detailed register setting, please refer to Table 6.10-1. Each PWM generator has three clock
source inputs, each clock source can be selected from PWM Clock or four TIMER trigger PWM outputs
as
by
ECLKSRC0
(PWM_CLKSRC[2:0])
for
PWM_CLK0,
ECLKSRC2
(PWM_CLKSRC[10:8]) for PWM_CLK2 and ECLKSRC4 (PWM_CLKSRC[18:16]) for PWM_CLK4.
HCLKSEL
(CLK_CLKSEL0[2:0])
1/(1)
HCLK
PWM0 Clock
PCLK0
PWM0CKEN
(CLK_APBCLK1[16])
HCLKDIV
(CLK_CLKDIV0[3:0])
0
1
2
3
7
HXT
LXT
Rserved
LIRC
HIRC
1/(1)
APB0DIV
(CLK_PCLKDIV[3:0])
Figure 6.10-2 PWM System Clock Source Control
Table 6.10-1 PWM Clock Source Control Registers Setting Table
PWM0 clock
TIMER0
TIMER1
TIMER2
TIMER3
0
1
2
3
4
ECLKSRC0 (PWM0_CLKSRC[2:0])
PWM0_CLK0
PWM0 clock
TIMER0
TIMER1
TIMER2
TIMER3
0
1
2
3
4
ECLKSRC2 (PWM0_CLKSRC[10:8])
PWM0_CLK2
PWM0 clock
TIMER0
TIMER1
TIMER2
TIMER3
0
1
2
3
4
ECLKSRC4 (PWM0_CLKSRC[18:16])
PWM0_CLK4
Frequency Ratio
PCLK:PWM Clock
HCLK
PCLK
PWM
Clock
HCLKSEL
CLK_CLKSEL0[2:0]
HCLKDIV
CLK_CLKDIV0[3:0]
APB0DIV
(CLK_PCLKDIV
[2:0]),
1:1
HCLK
PCLK
PCLK
Don’t care
Don’t care
Don’t care