TBCTR
EPWMxA
EPWMxB
TBPRD
value
CB
CA
P
P
P
P
CB
CA
P
P
ePWM Submodules
707
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
C28 Enhanced Pulse Width Modulator (ePWM) Module
Example 7-1. Code Sample for
(continued)
EPwm1Regs.CMPB = Duty1B;
// adjust duty for output EPWM1B
Figure 7-25. Up, Single Edge Asymmetric Waveform With Independent Modulation on EPWMxA and
EPWMxB—Active Low
A
PWM period = (TBPRD + 1 ) × T
TBCLK
B
Duty modulation for EPWMxA is set by CMPA, and is active low (that is, the low time duty is proportional to CMPA).
C
Duty modulation for EPWMxB is set by CMPB and is active low (that is, the low time duty is proportional to CMPB).
D
Actions at zero and period, although appearing to occur concurrently, are actually separated by one TBCLK period.
TBCTR wraps from period to 0000.
contains a code sample showing initialization and run time for the waveforms in