
Mini57
Apr. 06, 2017
Page 241 of 475
Rev.1.00
MINI5
7
S
E
RI
E
S
TECH
NIC
A
L R
E
F
E
RE
N
CE
MA
N
UA
L
PWM_CH0
PWM_CH1
PWM_CH0
PWM_CH1
off
on
on
off
off
off
on
off
(NEGPOLAR0=0)
(NEGPOLAR1=0)
Dead-time insertion; It is only effective in complementary mode
NEGPOLARn: Negative Polarity control bits; It controls the PWM output initial state and polarity
PWM_CH0
PWM_CH1
(NEGPOLAR0=0)
(NEGPOLAR1=1)
Initial State
PWM Starts
off
on
on
off
off
off
on
off
Original waveform without Dead-time
and ploarity control
Figure 6.8-20 EPWM Initial State and Polarity Control with Rising Edge Dead-time Insertion
6.8.5.11 Interrupt Architecture
There are sixteen interrupt sources for EPWM unit, which are PIF (EPWM_INTSTS[0]) PWM
counter counts to period interrupt flag; CIF (EPWM_INTSTS[18]) PWM counter counts to central
point of center-aligned type interrupt flag; CMPDIFn (EPWM_INTSTS[29:24]) PWM counter
down-counts to CMPn (EPWM_CMPDATn[15:0]) interrupt flag; CMPUIFn (EPWM_INTSTS[13:8])
PWM counter up-counts to CMPUn (EPWM_CMPDATn[31:16]) interrupt flag, if operating in
asymmetric type it up count to CMPUn (PWM_CMPDATn[31:16]); BRK0IF (PWM_INTSTS[16])
Brake0 interrupt flag, BRK1IF (PWM_INTSTS[17]) Brake1 interrupt flag.
The bits BRK0IEN (EPWM_INTEN[16]) and BRK1IEN (EPWM_INTEN[17]) control the brake
interrupt enable; the bit PIEN (EPWM_INTEN[0]) control the PIF interrupt enable; the bit CIEN
(EPWM_INTEN[18]) control the CIF interrupt enable; the bits CMPUIENn (EPWM_INTEN[13:8])
control the CMPUIFn interrupt enable; and the bits CMPDIENn (EPWM_INTEN[29:24]) control
the CMPDIFn interrupt enable. Note that all the interrupt flags are set by hardware and must be
cleared by software.