ePWM
7 - 12 TMS320F2837xD Microcontroller Workshop - Control Peripherals
ePWM Compare Event Waveforms
TBCTR
TBCTR
TBCTR
TBPRD
TBPRD
TBPRD
Count Up Mode
Count Down Mode
Count Up and Down Mode
Asymmetrical
Waveform
Asymmetrical
Waveform
Symmetrical
Waveform
CMPA
CMPA
CMPA
CMPB
CMPB
CMPB
. . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
= compare events are fed to the Action Qualifier Sub-Module
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
CMPC and CMPD available for use as event triggers
The above ePWM Compare Event Waveform diagram shows the compare matches which are fed
into the action qualifier. Notice that with the count up and countdown mode, there are matches
on the up-count and down-count.
ePWM Compare Sub-Module Registers
(lab file: EPwm.c)
Name Description Structure
CMPCTL Compare Control EPwmxRegs.CMPCTL.all =
CMPCTL2 Compare Control EPwmxRegs.CMPCTL2.all =
CMPA Compare A EPwmxRegs.CMPA =
CMPB Compare B EPwmxRegs.CMPB =
CMPC Compare C EPwmxRegs.CMPC =
CMPD Compare D EPwmxRegs.CMPD =