Motorola DSP56309 User Manual page 327

24-bit digital signal processor
Table of Contents

Advertisement

Bootstrap Programs
HI08CONT
bset
#HEN,x:M_HPCR
jclr
#HRDF,x:M_HSR,*
movep
x:M_HRX,a0
jclr
#HRDF,x:M_HSR,*
movep
x:M_HRX,r0
move
r0,r1
do
a0,HI08LOOP
HI08LL
jset
#HRDF,x:M_HSR,HI08NW
jclr
#HF0,x:M_HSR,HI08LL
enddo
bra
<HI08LOOP
HI08NW
movep
x:M_HRX,p:(r0)+
nop
HI08LOOP
bra
<FINISH
;========================================================================
EPRSCILD
jclr #1,omr,EPROMLD
;
jset #0,omr,SCILD
;========================================================================
; This is the routine that loads from the SCI.
; MD:MC:MB:MA=1010 - 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
A-8
; HCSEN = 1 Host chip select input enabled
; HA9EN = 1 Enable address 9 input
; HA8EN = 1 Enable address 8 input
; HGEN = 0 Host GPIO pins are disabled
; Enable the HI08 to operate as host
; interface (set HEN=1)
; wait for the program length to be
; written
; wait for the program starting address
; to be written
; set a loop with the downloaded length
; If new word was loaded then jump to
; read that word
; If HF0=0 then continue with the
; downloading
; Must terminate the do loop
; Move the new word into its destination
; location in the program RAM
; pipeline delay
; If MD:MC:MB:MA=1001, go load from EPROM
; If MD:MC:MB:MA=1011, reserved, default to SCI
; 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
DSP56309UM/D
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents