Sample Assembly Code to Erase and Reprogram the TMS320F240

PRELIMINARY

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

 

fl_prg

: {} > EXTRAM

PAGE 0 /**Programming Algorithm*****/

fl_clr

: {} > EXTRAM

PAGE 0 /******Clear Algorithm*******/

fl_ers

: {} > EXTRAM

PAGE 0 /******Erase Algorithm*******/

fl_wrt

: {} > EXTRAM

PAGE 0 /****Flash±write Algorithm***/

DLY

: {} > EXTRAM

PAGE 0 /******Delay Subroutine******/

REG

: {} > EXTRAM

PAGE 0 /*******Regs Subroutine******/

ARY

: {} > EXTRAM

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-46

PRELIMINARY

Page 98
Image 98
Texas Instruments TMS320F20x/F24x DSP manual Extram 0 /******Delay Subroutine