
NUC126
Aug. 08, 2018
Page
643
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
CNT
CNT wraparound
PERIOD DATA0
PERIOD DATA1
CMPDAT DATA1
PERIOD DATA0
PERIOD DATA1
CMPDAT DATA1
PERIOD DATA2
PERIOD DATA2
point 1
point 2
point 3
Write
Load
Note:
CMPDAT DATA0
CMPU
CMPDAT DATA1
PERIOD DATA1
PERIOD DATA2
PERIOD DATA0
0x1FFFF
CMPDAT
PERIOD
PBUF
CMPBUF
0x10000
Figure 6.17-19 Immediately Loading Mode with Up Count Type
6.17.6.10 PWM Pulse Generator
PWM pulse generator uses counter and comparator events to generate PWM output pulse. The
events are zero point and period point in up count type and down count type, center point in up-down
count type and counter equal to comparator point in three count types.
Each event point can generate PWM output waveform in differente count type as shown in Figure
6.17-20.
CNT
PWM period
Zero
CMPDAT
Center
PWM OUT
CNT
Figure 6.17-20 PWM Pulse Generation in Up-Down Count Type
The PWM generation events may sometimes generated at the same time, as the reason, events
priority between different counter types should be take care are list in below tables. Table 6.17-1 is for
event priority in up count type. Table 6.17-2 is for event priority in down count type and Table 6.17-3 is
for event priority in up-down count type.