www.ti.com
Mode: Up-Down Count
TBPRD = 4
CAU = SET, CAD = CLEAR
0% - 100% Duty
0
TBCTR
TBCTR Direction
Case 1:
CMPA = 4, 0% Duty
Case 2:
CMPA = 3, 25% Duty
Case 3:
CMPA = 2, 50% Duty
Case 3:
CMPA = 1, 75% Duty
Case 4:
CMPA = 0, 100% Duty
The PWM waveforms in
configurations. The C-code samples in
ePWM module for each case. Some conventions used in the figures and examples are as follows:
•
TBPRD, CMPA, and CMPB refer to the value written in their respective registers. The active register,
not the shadow register, is used by the hardware.
•
CMPx, refers to either CMPA or CMPB.
•
EPWMxA and EPWMxB refer to the output signals from ePWMx
•
Up-Down means Count-up-and-down mode, Up means up-count mode and Dwn means down-count
mode
•
Sym = Symmetric, Asym = Asymmetric
SPRUHE8E – October 2012 – Revised November 2019
Submit Documentation Feedback
Figure 7-23. Up-Down-Count Mode Symmetrical Waveform
4
3
3
2
2
1
DOWN
UP
Figure 7-24
through
Example 7-1
Copyright © 2012–2019, Texas Instruments Incorporated
4
3
2
1
1
0
UP
Figure 7-29
show some common action-qualifier
through
Example 7-6
C28 Enhanced Pulse Width Modulator (ePWM) Module
ePWM Submodules
3
2
1
0
DOWN
EPWMxA/EPWMxB
EPWMxA/EPWMxB
EPWMxA/EPWMxB
EPWMxA/EPWMxB
EPWMxA/EPWMxB
shows how to configure an
705