ePWM
TMS320F2837xD Microcontroller Workshop - Control Peripherals 7 - 9
ePWM Phase Synchronization
SyncIn
SyncOut
CTR=zero
CTR=CMPB *
X
En
o
o
o
o
o
o
o
φ=120°
Phase
.
EPWM2A
EPWM2B
SyncIn
SyncOut
CTR=zero
CTR=CMPB *
X
En
o
o
o
o
o
o
o
φ=240°
Phase
.
EPWM3A
EPWM3B
SyncIn
SyncOut
CTR=zero
CTR=CMPB *
X
En
o
o
o
o
o
o
o
φ=0°
Phase
.
EPWM1A
EPWM1B
φ=120°
φ=120°
φ=240°
Ext. SyncIn
To eCAP1
SyncIn
* Extended selection for CMPC and CMPD available
Synchronization allows multiple ePWM modules to work together as a single system. The
synchronization is based on a synch-in signal, time-base counter equals zero, or time-base
counter equals compare B register. Additionally, the waveform can be phase-shifted.
ePWM Time-Base Sub-Module Registers
(lab file: EPwm.c)
Name Description Structure
TBCTL Time-Base Control EPwmxRegs.TBCTL.all =
TBCTL2 Time-Base Control EPwmxRegs.TBCTL2.all =
TBSTS Time-Base Status EPwmxRegs.TBSTS.all =
TBPHS Time-Base Phase EPwmxRegs.TBPHS =
TBCTR Time-Base Counter EPwmxRegs.TBCTR =
TBPRD Time-Base Period EPwmxRegs.TBPRD =