Download DSP56371 24-Bit Digital Signal Processor User Manual

Transcript
shi_loop
jclr
#MA,omr,RESERVED
; If MD:MC:MB:MA=01x0, go to SHI clock freeze
jclr
#MB,omr,shi_loop
; If MD:MC:MB:MA=0101, select SPI mode
bset
#HI2C,r1
; otherwise select I2C mode.
movep
r1,x:M_HCSR
; enable SHI
jclr
movep
#HRNE,x:M_HCSR,*
x:M_HRX,a0
; wait for no. of words
jclr
movep
move
#HRNE,x:M_HCSR,*
x:M_HRX,r0
r0,r1
; wait for starting address
do
jclr
movep
nop
a0,_LOOP2
#HRNE,x:M_HCSR,*
x:M_HRX,p:(r0)+
bra
<FINISH
; wait for HRX not empty
; store in Program RAM
; req. because of restriction
_LOOP2
;========================================================================
OMR1XXX
jset
jset
jclr
jmp
#MC,omr,RESERVED
#MB,omr,OMR101X
#MA,omr,RESERVED
SerialEEPROM
;
;
;
;
IF
IF
If
If
MD:MC:MB:MA=11xx,
MD:MC:MB:MA=101x,
MD:MC:MB:MA=1000,
MD:MC:MB:MA=1001,
go
go
go
go
to
to
to
to
RESERVED
OMR101X
RESERVED
Serial EEPROM
OMR101X
jclr #MA,omr,BURN
jmp RESERVED
; If MD:MC:MB:MA=1010, go to BURN
; If MD:MC:MB:MA=1011, go to RESERVED
;========================================================================
; This is the exit handler that returns execution to normal
; expanded mode and jumps to the RESET vector.
FINISH
andi #$0,ccr
jmp (r1)
; Clear CCR as if RESET to 0.
; Then go to starting Prog addr.
;========================================================================
; The following modes are reserved, some of which are used for internal testing
DSP56371 24-Bit Digital Signal Processor User Manual, Rev. 2.1
A-4
Freescale Semiconductor