Motorola DSP56301 user manual LOOP8

Models: DSP56301

1 372
Download 372 pages 304 b
Page 307
Image 307

bra <FINISH

;

;========================================================================

;This is the routine for 56301-to-56301 boot.

;MD:MC:MB:MA=x011 - HI32 in UB mode, double strobe, HTA pin active low

UB3HOSTLD

movep #$268000,x:M_DCTR ; HM=$2 (UB)

;HIRD=0 (HIRQ_ pin - drive high disabled, open drain)

;HIRH=1 (HIRQ_ pin - handshake enabled)

;HRSP=1 (HRST pin - active low)

;HDRP=0 (HDRQ pin - active high)

;HTAP=1 (HTA pin - active low)

;HDSM=0 (Double-strobe pin mode enabled)

bra <UB3_CONT

; continue

;========================================================================

;This is the routine that loads from the SCI.

;MD:MC:MB:MA=x010 - external SCI clock

SCILD

movep #$0302,X:M_SCR movep #$C000,X:M_SCCR movep #7,X:M_PCRE

do #6,_LOOP6

jclr #2,X:M_SSR,* movep X:M_SRXL,A2 jclr #1,X:M_SSR,* movep A2,X:M_STXL asr #8,a,a

_LOOP6

move a1,r0 move a1,r1

do a0,_LOOP7 do #3,_LOOP8 jclr #2,X:M_SSR,* movep X:M_SRXL,A2 jclr #1,X:M_SSR,* movep a2,X:M_STXL asr #8,a,a

_LOOP8

movem a1,p:(r0)+ nop

_LOOP7

bra <FINISH

;Configure SCI Control Reg

;Configure SCI Clock Control Reg

;Configure SCLK, TXD and RXD

;get 3 bytes for number of

;program words and 3 bytes

;for the starting address

;Wait for RDRF to go high

;Put 8 bits in A2

;Wait for TDRE to go high

;echo the received byte

;starting address for load

;save starting address

;Receive program words

;Wait for RDRF to go high

;Put 8 bits in A2

;Wait for TDRE to go high

;echo the received byte

;Store 24-bit result in P mem.

;movem cannot be at LA.

;Boot from SCI done

;========================================================================

;This is the routine that loads from external EPROM.

;MD:MC:MB:MA=x001

EPROMLD

move #BOOT,r2

;

r2 =

address of

external

EPROM

movep #AARV,X:M_AAR1

;

aar1

configured

for SRAM

types of access

DSP56301 User’s Manual

A-11

Page 307
Image 307
Motorola DSP56301 user manual LOOP8