PRELIMINARY

Assembly Source for Algorithms

**************************************************************

**

Variable declaration file

**

*

 

**

*

TMS320F2XX Flash Utilities.

**

*

Revision: 2.0, 9/10/97

**

*

Revision: 2.1, 1/31/98

**

*

 

**

*

Filename: svar20.asm

**

*

 

**

*Note:

**

*DLOOP is a delay loop variable used in flash algorithms. ** *This is a function of CLKOUT1. If the F206 device runs at ** *any CLKOUT1 speed other than 20 MHz, DLOOP value should be **

*redefined per the equation explained below. Use of

**

*current DLOOP for flash programming at speeds other than

**

*20 MHz is not recommended.

**

**************************************************************

.mmregs

 

 

BASE .set 0300h

 

;Base address for variables

 

 

 

;can be changed to relocate

 

 

 

;variable space in RAM.

BASE_0

.set

BASE+0

;Scratch pad registers.

BASE_1

.set

BASE+1

;

BASE_2

.set

BASE+2

;

BASE_3

.set

BASE+3

;

BASE_4

.set

BASE+4

;

BASE_5

.set

BASE+5

;

BASE_6

.set

BASE+6

;

SPAD1

.set

BASE+7

;

SPAD2

.set

BASE+8

;

FL_ADRS

.set

BASE+10

;Flash load address.

FL_DATA

.set

BASE+11

;Flash load data.

ERROR

.set

BASE+15

;Error flag register.

*Variables for ERASE and CLEAR

RPG_CNT

.set

BASE+12

;Program pulse count.

FL_ST

.set

BASE+13

;Flash start addr/Seg Cntrl Reg.

FL_END

.set

BASE+14

;Flash end address.

*

 

 

 

PRELIMINARY

Assembly Source Listings and Program Examples

A-3

Page 55
Image 55
Texas Instruments TMS320F20x/F24x DSP BASE0, BASE+0, BASE1, BASE+1 BASE2, BASE+2 BASE3, BASE+3 BASE4, BASE+4 BASE5, Fldata