
NUC126
Aug. 08, 2018
Page
415
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
6.13.3
Block Diagram
A
P
B
PWM0
PWM0_BRAKE0
PWM0_BRAKE1
PWM0_SYNC_IN
SYNC_IN
SYNC_IN
SYNC_OUT
PWM1_BRAKE0
PWM1_BRAKE1
TIMER0
ADC
CLOCK
CONTROLLER
5
PWM1
TIMER1
TIMER2
TIMER3
SYNC_IN
PDMA
PWM0_CH0
PWM0_CH5
4
4
NVIC_MUX
3
3
6
6
PWM1_CH5
PWM1_CH0
Note:
Only capture
mode output to PDMA
Clock Fail
ACMP
Brown-Out Detect
ADC result monitor
CPU Lockup
Brake Source
6
PWM0_SYNC_OUT
0
1
0
1
0
1
0
1
BK0SRC(PWM_BNF[16])
BK0SRC(PWM_BNF[16])
BK1SRC(PWM_BNF[24])
BK1SRC(PWM_BNF[24])
Figure 6.13-1 PWM Generator Overview Block Diagram
The PWM system clock frequency can be set equal or double to HCLK frequency as Figure 6.13-2, the
detail register setting, please refer to Table 6.13-1.
The clock source of PWM counter(PWMx_CLK0, x=0,1) can be selected from PWM0/PWM1 system
clock or TIMERm interrupt events(TMRn_INT, n=0,1..3) as Figure 6.13-3 by setting ECLKSRC0
(PWM_CLKSRC[2:0]) for PWMx_CLK0, ECLKSRC2 (PWM_CLKSRC[10:8]) for PWMx_CLK2 and
ECLKSRC4 (PWM_CLKSRC[18:16]) for PWMx_CLK4. If the clock source of PWM counter is selected
from TIMERm interrupt events, the TRGPWM(TIMERn_TRGCTL[1], n=0,1..3) bit must be set as 1.
HCLKSEL
(CLK_CLKSEL0[2:0])
1/(1)
HCLK
0
1
0
1
PWM0
system clock
PWM1
system clock
PCLK0
PCLK1
PWM1SEL (CLK_CLKSEL1[29])
PWM0SEL (CLK_CLKSEL1[28])
PWM0CKEN (CLK_APBCLK0[20])
PWM1CKEN (CLK_APBCLK0[21])
HCLKDIV (CLK_CLKDIV0[3:0])
0
1
2
3
7
HXT
LXT
PLL
LIRC
HIRC
Figure 6.13-2 PWM System Clock Source Control