Texas Instruments TMS320x28xx, 28xxx manual Overview, Submit Documentation Feedback

Models: 28xxx TMS320x28xx

1 119
Download 119 pages 2.85 Kb
Page 22
Image 22
Example 2-1. Constant Definitions Used in the Code Examples (continued)

www.ti.com

Overview

Example 2-1. Constant Definitions Used in the Code Examples (continued)

#define DB_ACTV_LO 0x3

//PCCTL (chopper control)

//= = = = = = = = = = = = = = = = = = = = = = = = = =

//CHPEN bit

#define

CHP_ENABLE

0x0

#define CHP_DISABLE 0x1

 

// CHPFREQ bits

 

 

#define

CHP_DIV1

0x0

#define

CHP_DIV2

0x1

#define

CHP_DIV3

0x2

#define

CHP_DIV4

0x3

#define

CHP_DIV5

0x4

#define

CHP_DIV6

0x5

#define

CHP_DIV7

0x6

#define

CHP_DIV8

0x7

// CHPDUTY bits

 

 

#define

CHP1_8TH

0x0

#define

CHP2_8TH

0x1

#define

CHP3_8TH

0x2

#define

CHP4_8TH

0x3

#define

CHP5_8TH

0x4

#define

CHP6_8TH

0x5

#define

CHP7_8TH

0x6

//TZSEL (Trip-zone Select)

//= = = = = = = = = = = = = = = = = = = = = = = = = =

//CBCn and OSHTn bits

#define

TZ_ENABLE

0x0

#define

TZ_DISABLE

0x1

//TZCTL (Trip-zone Control)

//= = = = = = = = = = = = = = = = = = = = = = = = = =

//TZA and TZB bits

#define

TZ_HIZ

0x0

#define

TZ_FORCE_HI

0x1

#define

TZ_FORCE_LO

0x2

#define

TZ_DISABLE

0x3

//ETSEL (Event-trigger Select)

//= = = = = = = = = = = = = = = = = = = = = = = = = =

//INTSEL, SOCASEL, SOCBSEL bits

#define

ET_CTR_ZERO

0x1

#define

ET_CTR_PRD

0x2

#define

ET_CTRU_CMPA

0x4

#define

ET_CTRD_CMPA

0x5

#define

ET_CTRU_CMPB

0x6

#define

ET_CTRD_CMPB

0x7

//ETPS (Event-trigger Prescale)

//= = = = = = = = = = = = = = = = = = = = = = = = = =

//INTPRD, SOCAPRD, SOCBPRD bits

#define

ET_DISABLE

0x0

#define

ET_1ST

0x1

#define

ET_2ND

0x2

#define

ET_3RD

0x3

22

ePWM Submodules

SPRU791D–November 2004–Revised October 2007

Submit Documentation Feedback

Page 22
Image 22
Texas Instruments TMS320x28xx, 28xxx manual Example 2-1. Constant Definitions Used in the Code Examples continued, Overview