
Mini57
Apr. 06, 2017
Page 226 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
fault brake source:
BRK0: ACMP0, ACMP1, EADC and External pin (BRAKE).
BRK1: ACMP0, ACMP1, EADC and External pin (BRAKE).
The PWM signals before polarity control stage are defined in the view of positive
logic. The PWM ports is active high or active low are controlled by polarity control
register.
Supports independently falling CMPDAT matching, central matching (in Center-
aligned mode), rising CMPDAT matching (in Center-aligned mode), period matching
to trigger EADC conversion
Supports ACMP output event trigger PWM to force PWM output at most one period
low, this feature is usually for step motor control
Supports interrupt accumulation function
6.8.3
Block Diagram
Figure 6.8-1 shows the PWM clock source.
HCLK
EPWMCKEN
(CLK_APBCLK[20])
EPWM Clock
Source
Figure 6.8-1 EPWM Clock Source
The overall functioning of the EPWM module is shown in Figure 6.8-2.
PWM_CLK
CLKDIV
(EPWM_CLKDIV[3:0])
Period
Control
PERIOD
(EPWM_PERIOD[15:0])
HCLK
PWM Clock Divider
(1,1/2,1/4,1/8,1/16,1/
32,1/64,1/128,1/256)
EPWM_CH01
Function
EPWM_CH23
Function
EPWM_CH45
Function
BRAKE
Function
BRAKE
/PC.2
ACMP0_PBRK
ACMP1_PBRK
ADC_PBRK
to ADC
(see ADCnTRGSOR)
EPWM
Output
Waveform
EPWM
Phase
Change &
MASK
Control
EPWM
Interrupt
Function
EPWM_INT
BRK1IF signal
PIF/CIF signal
CMPUIF4/5 & CMPDIF4/5 signal
CMPUIF2/3 & CMPDIF2/3 signal
CMPUIF0/1 & CMPDIF0/1 signal
GPIO Output
Control
Function
(SYS_GPA_MF
P & PA_MODE)
EPWM_CH0
EPWM_CH1
EPWM_CH2
EPWM_CH3
EPWM_CH4
EPWM_CH5
EPWM_CH1 Output
EPWM_CH3 Output
EPWM_CH5 Output
EPWM_CH01 signal
EPWM_CH23 signal
EPWM_CH45 signal
SWBRK
BRK0IF signal
EPWM
Counter Data
CNTDIR
(EPWM_DAT[31])
CNT
(EPWM_DAT[15:0])
EPWM_CTL
EPWM_CMPDTA0/1
EPWM_CMPDTA2/3
EPWM_CMPDTA4/5
EPWM_RESDLY
EPWM_BRKCTL
EPWM_INTEN
EPWM_IFA
EPWM_INTSTS
EPWM_PHCHG
EPWM_PHCHGNXT
EPWM_PHCHGALT
EPWM_NEGPOL
SYS_GPA_MFP
PA_MODE
EPWM
Dead-Zone
Control
EPWM_DTCTL
EPWM_CH0 Output
EPWM_CH2 Output
EPWM_CH4 Output
EPWMCKEN
(CLK_APBCLK[20])
EPWMRST
SYS_IPRST1[20]
(Reset EPWM Block)
CAP0_PCHG
CAP1_PCHG
CAP2_PCHG
BRAKE1_INT
BRAKE0_INT
EPWM
Interrupt
Function
BRK0/1IEN
EPWM_INTEN[17:16]
EPWM_INTSTS