Texas Instruments 28xxx, TMS320x28xx Time-Base TB Submodule, Purpose of the Time-Base Submodule

Models: 28xxx TMS320x28xx

1 119
Download 119 pages 2.85 Kb
Page 23
Image 23
2.2Time-Base (TB) Submodule

www.ti.com

Time-Base (TB) Submodule

2.2Time-Base (TB) Submodule

Each ePWM module has its own time-base submodule that determines all of the event timing for the ePWM module. Built-in synchronization logic allows the time-base of multiple ePWM modules to work together as a single system. Figure 2-1illustrates the time-base module's place within the ePWM.

Figure 2-1. Time-Base Submodule Block Diagram

EPWMxSYNCI

EPWMxSYNCO

Time-Base

(TB)

Counter

Compare

(CC)

CTR = PRD Figure 2-1. Time-Base Submodule Block Diagram2.2.1 Purpose of the Time-Base Submodule

CTR = 0 Manual backgroundManual background

CTR_Dir

CTR = CMPA

CTR = CMPB Manual backgroundManual background

Action

Qualifier

(AQ)

EPWMxA Manual background

EPWMxB Manual background

 

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

2.2.1 Purpose of the Time-Base Submodule

You can configure the time-base submodule for the following:

Specify the ePWM time-base counter (TBCTR) frequency or period to control how often events occur.

Manage time-base synchronization with other ePWM modules.

Maintain a phase relationship with other ePWM modules.

Set the time-base counter to count-up, count-down, or count-up-and-down mode.

Generate the following events:

CTR = PRD: Time-base counter equal to the specified period (TBCTR = TBPRD) .

CTR = Zero: Time-base counter equal to zero (TBCTR = 0x0000).

Configure the rate of the time-base clock; a prescaled version of the CPU system clock (SYSCLKOUT). This allows the time-base counter to increment/decrement at a slower rate.

SPRU791D–November 2004–Revised October 2007

ePWM Submodules

23

Submit Documentation Feedback

Page 23
Image 23
Texas Instruments 28xxx Time-Base TB Submodule, Purpose of the Time-Base Submodule, 1. Time-Base Submodule Block Diagram