ePWM
C2000 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
If needed, an ePWM module can be synchronized with adjacent ePWM modules.
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 =
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 =