
NUC126
Aug. 08, 2018
Page
645
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.17.6.11 PWM Output Mode
The PWM supports two output modes: independent mode which may be applied to DC motor system,
complementary mode with dead-time insertion which may be used in the application of AC induction
motor and permanent magnet synchronous motor.
6.17.6.12 Independent mode
When OUTMODE (TIMERx_PWMCTL[16]) bit is set to 0, PWM output operates in independent mode.
In this mode, both PWMx_CH0 and PWMx_CH1 can output the same waveform as shown in Figure
6.17-22.
PWMx_CH1
PWMx_CH0
Figure 6.17-22 PWM Independent Mode Output Waveform
6.17.6.13 Complementary mode
When OUTMODE (TIMERx_PWMCTL[16]) bit is set to 1, PWM output operates in complementary
mode. In this mode, both PWMx_CH0 and PWMx_CH1 can output waveform and PWMx_CH1 must
always be the complement of PWMx_CH0 as shown in Figure 6.17-23.
PWMx_CH1
PWMx_CH0
Figure 6.17-23 PWM Complementary Mode Output Waveform
6.17.6.14 PWM Output Control
After PWM pulse generator, there are four steps to control output waveform in independent output
mode and five control steps in complementary output mode. User can set POEN0
(TIMERx_PWMPOEN[0]) and POEN1 (TIMERx_PWMPOEN[1]) 1 to enable PWMx_CH0 and
PWMx_CH1 output waveform.
In Independent mode, there are mask control, brake control, polarity control and output enable control
to control output waveform as shown in Figure 6.17-24.
Mask Data
MSKDAT0
(TIMERx_PWMMSK[0])
PINV0
(TIMERx_PWMPOLCTL[0])
POEN0
(TIMErx_PWMPOEN[0])
Brake
BRKAEVEN
(TIMERx_PWMBRKCTL[17:16])
TIMERx_PWMBRKCTL[15:0]
Pulse
Generator
MSKEN0
(TIMERx_PWMMSKEN[0])
Independent Mode Four Steps
mask control
brake control
output enable control
polarity control
Tx
(PWMx_CH0)
Figure 6.17-24 PWMx_CH0 Output Control in Independent Mode
In complementary mode, there are dead-time insertion control and four control steps the same as
independent mode to control PWMx_CH0 and PWMx_CH1 outputs as shown in Figure 6.17-25.