Texas Instruments TMS320F20x/F24x DSP manual Preliminary, A-36

Models: TMS320F20x/F24x DSP

1 108
Download 108 pages 2.5 Kb
Page 88
Image 88
A-36

Sample Assembly Code to Erase and Reprogram the TMS320F206

PRELIMINARY

PAGE 1: /* DM ± Data memory */

 

 

BLK_B2: origin = 0x60,length = 0x20

/*BLOCK B2

*/

DSARAM: origin = 0xc00, length = 0xC00

/*Use 3K of SARAM for data DON=1

*/

EX1_DM: origin = 0x4000, length = 0x4000

/*External data RAM

*/

B1: origin = 0x300, length = 0x1ff

/*B1 Ram (Used for algo vars )

*/

}

 

 

/*************************Section Allocation************************************/

SECTIONS

{

 

 

 

 

 

 

 

.text :

{}

>

PSARAM PAGE 0 /*

asmexamp.asm

*/

/*All these sections are for flash programming.*/

fl_prg

:

{}

>

PSARAM PAGE 0

/**Programming Algorithm*****/

fl_clr

:

{}

>

PSARAM PAGE 0

/******Clear Algorithm*******/

fl_ers

:

{}

>

PSARAM PAGE 0

/******Erase Algorithm*******/

fl_wrt

:

{}

>

PSARAM PAGE 0

/****Flash±write Algorithm***/

DLY

:

{}

>

PSARAM PAGE 0

/******Delay Subroutine******/

REG

:

{}

>

PSARAM PAGE 0

/*******Regs Subroutine******/

ARY

:

{}

>

PSARAM PAGE 0

/******Array Subroutine******/

PRG_data

:

{}

>

B1

PAGE 1

/*Reserved in asmexamp.asm **/

 

 

 

 

 

 

/*for flash algo variables.**/

PRG_parm

:

{}

>

B1

PAGE 1

/*Reserved in asmexamp.asm **/

 

 

 

 

 

 

/*for param passing to algos*/

/*End of sections for flash programming.

*/

}

A-36

PRELIMINARY

Page 88
Image 88
Texas Instruments TMS320F20x/F24x DSP manual Preliminary, Sample Assembly Code to Erase and Reprogram the TMS320F206, A-36