Motorola DSP56305 User Manual page 564

24-bit digital signal processor
Table of Contents

Advertisement

Bootstrap Code
jclr #2,X:M_DSR,*
movep X:M_DRXR,a0
jclr #2,X:M_DSR,*
movep X:M_DRXR,x0
jclr #2,X:M_DSR,*
movep X:M_DRXR,y0
insert x1,x0,a
insert y1,y0,a
move a1,r0
move a0,a1
; Download P memory through UB
lsr a
r0,r1
do a1,_LOOP4
_LBLE
jset #2,X:M_DSR,_LBLF
jclr #3,X:M_DSR,_LBLE
bra <TERMINATE
_LBLF
movep X:M_DRXR,a0
_LBLG
jset #2,X:M_DSR,_LBLH
jclr #3,X:M_DSR,_LBLG
bra <TERMINATE
_LBLH
movep X:M_DRXR,x0
_LBLI
jset #2,X:M_DSR,_LBLJ
jclr #3,X:M_DSR,_LBLI
bra <TERMINATE
_LBLJ
movep X:M_DRXR,y0
insert x1,x0,a
insert y1,y0,a
movem a0,p:(r0)+
movem a1,p:(r0)+
nop
_LOOP4
bra <FINISH
;========================================================================
; This is the routine that loads from the Host Interface in PCI mode.
; MD:MC:MB:MA=1100 - Host PCI
PCIHOSTLD
bset #20,X:M_DCTR
UB3_CONT
jclr #2,X:M_DSR,*
A-10
; HTAP=0 (HTA pin - active high)
; HDSM=0 (Double-strob pin mode enabled)
; HF4 =1 (turn on flag 4 for handshake)
; Wait for SRRQ to go high (i.e. data ready)
; Store number of words
; Wait for SRRQ to go high (i.e. data ready)
; Store starting address
; Wait for SRRQ to go high (i.e. data ready)
; Store starting address
; concatenate next 16-bit word
; concatenate next 16-bit word
; start to p-mem
; number of words to transfer
; divide loop count by 2 and save r0
; Load instruction words
; Wait for SRRQ to go high (i.e. data ready)
; If HF0=1, stop loading new data.
; Terminate loop (enddo) and finish
; Store 16-bit data in accumulator
; Wait for SRRQ to go high (i.e. data ready)
; If HF0=1, stop loading new data.
; Terminate loop (enddo) and finish
; Store 16-bit data in register
; Wait for SRRQ to go high (i.e. data ready)
; If HF0=1, stop loading new data.
; Terminate loop (enddo) and finish
; Store 16-bit data in register
; concatenate next 16-bit word
; concatenate next 16-bit word
; Store 24-bit data in P mem.
; Store 24-bit data in P mem.
; movem cannot be at LA.
; and go get another 24-bit word.
; finish bootstrap
; Configure HI32 as PCI
; Wait for SRRQ to go high (i.e. data ready)
DSP56305 User's Manual
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents