Texas Instruments TMS320x28xx, 28xxx manual 20. Up-Down-Count Mode Symmetrical Waveform

Models: 28xxx TMS320x28xx

1 119
Download 119 pages 2.85 Kb
Page 42
Image 42
Figure 2-20. Up-Down-Count Mode Symmetrical Waveform

www.ti.com

Action-Qualifier (AQ) Submodule

When using this configuration in practice, if you load CMPA/CMPB on zero, then use CMPA/CMPB values greater than or equal to 1. If you load CMPA/CMPB on period, then use CMPA/CMPB values less than or equal to TBPRD-1. This means there will always be a pulse of at least one TBCLK cycle in a PWM period which, when very short, tend to be ignored by the system.

Figure 2-20. Up-Down-Count Mode Symmetrical Waveform

Mode:￿Up-Down￿Count3 TBPRD￿=￿4

CAU￿=￿SET,￿CAD￿=￿CLEAR 2 0%￿-￿100%￿Duty

4

3

2

3

2

4

3

2

TBCNTR

TBCNTR￿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

1

0

UP

DOWN

1 1

0

UP

1

0

DOWN

EPWMxA/EPWMxB

EPWMxA/EPWMxB

EPWMxA/EPWMxB

EPWMxA/EPWMxB

EPWMxA/EPWMxB

The PWM waveforms in Figure 2-21through Figure 2-26show some common action-qualifier configurations. The C-code samples in Example 2-2through Example 2-7shows how to configure an 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

42

ePWM Submodules

SPRU791D–November 2004–Revised October 2007

Submit Documentation Feedback

Page 42
Image 42
Texas Instruments TMS320x28xx, 28xxx manual 20. Up-Down-Count Mode Symmetrical Waveform