
NUC126
Aug. 08, 2018
Page
416
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
Table 6.13-1 PWM System Clock Source Control Registers Setting Table
PWMx system clock
TMR0_INT
0
1
2
3
4
ECLKSRC4 (PWM_CLKSRC[18:16])
PWMx_CLK4
TRGPWM(TIMER0_TRGCTL[1])
TMR1_INT
TRGPWM(TIMER1_TRGCTL[1])
TMR2_INT
TRGPWM(TIMER2_TRGCTL[1])
TMR3_INT
TRGPWM(TIMER3_TRGCTL[1])
ECLKSRC0 (PWM_CLKSRC[2:0])
ECLKSRC2 (PWM_CLKSRC[10:8])
PWMx_CLK2
PWMx_CLK0
Note:
x denotes 0 or 1
Figure 6.13-3 PWM Clock Source Control
Figure 6.13-4 and Figure 6.13-5 illustrate the architecture of PWM independent mode and
complementary mode. No matter independent mode or complementary mode, paired channels’
(PWMx_CH0 and PWMx_CH1, PWMx_CH2 and PWMx_CH3, PWMx_CH4 and PWMx_CH5)
counters both come from the same clock source and prescaler. When counter count to 0, PERIOD
(PWM_PERIODn[15:0],n=0,1..5) 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 change PWM pulse output state; brake function in
output control also generates interrupt events. In complementary mode, synchronize function is
available and even channel use odd channel comparator to generate events, free trigger comparator
events only use to generate trigger ADC signals.
PWM System Clock/HCLK
Frequency Ratio
HCLKSEL
(CLK_CLKSEL0[2:0])
HCLKDIV
(CLK_CLKDIV0[3:0])
PWM0SEL
(CLK_CLKSEL2[0]
1/1
Don’t care
Don’t care
1
2/1
2
1
0