
Mini57
Apr. 06, 2017
Page 243 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
Note:
EPWM output level during brake condition will also depend on NEGPOLARn (EPWM_NPCTL) to control PWMn polarity.
If NEGPOLARn = 0, PWMn output = PWMn normally.
If NEGPOLARn = 1, PWMn output = invert PWMn output.
Note. n : 0~5
BK0A0EN
(EPWM_BRKCTL[2])
ACMP0_PBRK
BRAKE
/PC.2
BK0PEN
(EPWM_BRLCTL[5])
BK0ADCEN
(EWPM_BRKCTL[4])
ADC_PBRK
Noise Filter
ACMP1_PBRK
BRK1IF
(
EWPM_INTSTS[17]
)
Low level
detection
LVDBKEN
(EPWM_BRKCTL[14])
BRK0EN
(EPWM_BRKCTL[0])
BRK1IEN
(EPWM_INTEN[17])
BRAKE1_INT
BRK0IEN
(EPWM_INTEN[16])
BRAKE0_INT
Auto-Resume
Resume
Control
SWBRK
(EPWM_BRKCTL[9])
*NED
*NED : Negative Edge Detection
Resume Delay
Counter
(12bits down counter)
PWM_CLK
BK0A1EN
(EPWM_BRKCTL[3])
BK1A0EN
(EPWM_BRKCTL[10])
ACMP0_PBRK
BK1PEN
(EPWM_BRLCTL[13])
BK1ADCEN
(EWPM_BRKCTL[12])
ADC_PBRK
ACMP1_PBRK
BK1A1EN
(EPWM_BRKCTL[11])
BRK1EN
(EPWM_BRKCTL[1])
LVDTYPE
(EPWM_BRKCTL[15])
NFPEN
(EPWM_BRKCTL[31])
1
0
BKODn (n:0~5)
(EPWM_BRKCTL[29:24])
EPWM Output 0~5
EPWM_CHn Output
BRK0IF
(
EPWM_INTSTS[16]
)
*NED
EPWM_RESDLY
Period
(EPWM Period Timing)
Figure 6.8-22 EPWM Brake Architecture
The BRK0 block will keep EPWM output to brake define value (set by EPWM_BRKCTL[29:24])
and need initial EPWM function again to release EPWM brake signal.
The BRK1 block has resume function, when BRK1 brake active, it will resume by itself with 12-
bits delay counter.
Since both brake conditions being asserted will automatically cause BRKnIF (n:0,1) flag to be set,
the user program can poll these brake flag bits or enable EPWM’s brake interrupt
(EPWM_INTEN) to determine which condition will cause a brake to occur.
6.8.5.13 EPWM Phase Change Function
The phase change function can be used to trigger PWM by TIMER module with ACMP by
selectable TRGSEL (EPWM_PHCHG[22:20]) registers. To use Timer (or ACMP) trigger EPWM,
by configuring both EPWM_PHCHG and EPWM_PHCHGNXT register. Each time when time-out
event coming, EPWM_PHCHG’s value will be updated by EPWM_PHCHGNXT’s value
automatically, EPWM_PHCHG’s bit field is identical with EPWM_PHCHGNXT’s, each time when
EPWM_PHCHG updated, the related function will also change.
Besides trigger EPWM, phase change register also with mask control bits to change the phase of
EPWM output. By setting 1 to corresponding channel’s MSKENn (EPWM_PHCHG[13:8]) to
enable channel’s mask function, then corresponding channel will output level of MSKDATn
(EPWM_PHCHG[5:0]).
1.1.1.1.1 EPWM Mask Output Function
In Phase Change function, each of the EPWM output can be manually overridden by using the
appropriate bits in the EPWM Mask Enable function (MSKENn, n:0~5) and EPWM Mask Data
register (MSKDATn, n:0~5) to drive EPWM pins to specified logic states independent of duty