PRELIMINARY

Assembly Source for Algorithms

TBLW

SPAD1

;EXECUTE COMMAND

*

LAR

AR6,#D10

;SET DELAY

*

CALL

DELAY,*,AR6

;WAIT

*

CALL

ARRAY

;ACCESS FLASH ARRAY

*

RET

 

;RETURN TO CALLING SEQUENCE*

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

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

 

* PRG_BYTE: Programs hi or lo byte depending on

*

*

byte mask (BASE_2).

*

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

 

PRG_BYTE:

 

 

 

CALL

SET_RD_VER0

;Read word at VER0 level.

LACL

BASE_2

;Get lo/hi byte mask.

AND

FL_DATA

;Xor with read±back value.

BCND

PB_DONE,EQ

;If zero, then done.

 

XOR

#0FFFFh

;else, mask off good bits.

SACL

FL_DATA

;New data.

 

CALL

EXE_PGM

;PGM Pulse.

 

SPLK

#0,BASE_0

;Set row done flag = 0(False).

PB_DONE RET

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

.end

PRELIMINARY

Assembly Source Listings and Program Examples

A-9

Page 61
Image 61
Texas Instruments TMS320F20x/F24x DSP Tblw SPAD1 Execute Command LAR, Prgbyte Call SETRDVER0, Lacl BASE2, Bcnd PBDONE,EQ