Texas Instruments TMS320x28xx, 28xxx manual Counter-Compare CC Submodule, Counter-Compare Submodule

Models: 28xxx TMS320x28xx

1 119
Download 119 pages 2.85 Kb
Page 32
Image 32

www.ti.com

Counter-Compare (CC) Submodule

Figure 2-10. Time-Base Up-Down Count Waveforms, TBCTL[PHSDIR = 1] Count Up On Synchronization

Event

TBCNT[15:0]

 

 

0xFFFF

 

 

TBPRD (value)

 

 

TBPHS (value)

 

 

0x0000

 

 

EPWMxSYNCI

 

 

UP

UP

UP

CTR_dir

 

 

DOWN

DOWN

DOWN

CTR = zero

 

 

CTR = PRD

 

 

CNT_max

 

 

2.3Counter-Compare (CC) Submodule

Figure 2-11illustrates the counter-compare submodule within the ePWM.

Figure 2-11. Counter-Compare Submodule

EPWMxSYNCI

EPWMxSYNCO

Time-Base

(TB)

Counter

Compare

(CC)

CTR = PRD

CTR = 0

CTR_Dir

CTR = CMPA

CTR = CMPB

Action

Qualifier

(AQ)

EPWMxA

EPWMxB

 

CTR = PRD

Event

 

CTR = 0

 

Trigger

CTR = CMPA

and

 

CTR = CMPB

Interrupt

 

CTR_Dir

(ET)

 

 

 

Dead

PWM-

Trip

Band

chopper

Zone

(DB)

(PC)

(TZ)

 

CTR = 0

 

PIE

EPWMxTZINT

 

 

 

EPWMxINT

EPWMxSOCA

EPWMxSOCB

EPWMxA

EPWMxB

TZ1 to TZ6

PIE

ADC

GPIO MUX

Figure 2-12shows the basic structure of the counter-compare submodule.

32

ePWM Submodules

SPRU791D–November 2004–Revised October 2007

Submit Documentation Feedback

Page 32
Image 32
Texas Instruments TMS320x28xx, 28xxx manual Counter-Compare CC Submodule, Counter-Compare Submodule