Download Freescale Semiconductor DSP56366 User's Manual
Transcript
DSP56366 Bootstrap Program ; MD:MC:MB:MA=0001 EPROMLD move #BOOT,r2 movep #AARV,X:M_AAR1 do #6,_LOOP9 movem p:(r2)+,a2 asr #8,a,a _LOOP9 move a1,r0 move a1,r1 do a0,_LOOP10 do #3,_LOOP11 movem p:(r2)+,a2 asr #8,a,a _LOOP11 movem a1,p:(r0)+ nop _LOOP10 bra ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; r2 = address of external EPROM aar1 configured for SRAM types of access read number of words and starting address Get the 8 LSB from ext. P mem. Shift 8 bit data into A1 starting address for load save it in r1 a0 holds the number of words read program words Each instruction has 3 bytes Get the 8 LSB from ext. P mem. Shift 8 bit data into A1 Go get another byte. Store 24-bit result in P mem. pipeline delay and go get another 24-bit word. Boot from EPROM done <FINISH OMR1XXX jclr #MC,omr,BURN_RESER ; ; jclr #MB,omr,OMR1IS0 ; jclr #MA,omr,I8051HOSTLD ; ; IF IF IF If If MD:MC:MB:MA=101x, MD:MC:MB:MA=1001, MD:MC:MB:MA=110x, MD:MC:MB:MA=1110, MD:MC:MB:MA=1111, go go go go go to RESERVED to BURN to look for ISA/HC11 load from 8051 Host load from MC68302 Host ;======================================================================== ; This is the routine which loads a program through the HDI08 host port ; The program is downloaded from the host MCU with the following rules: ; 1) 3 bytes - Define the program length. ; 2) 3 bytes - Define the address to which to start loading the program to. ; 3) 3n bytes (while n is the program length defined by the 3 first bytes) ; The program words will be stored in contiguous PRAM memory locations starting ; at the specified starting address. ; After reading the program words, program execution starts from the same ; address where loading started. ; The host MCU may terminate the loading process by setting the HF1=0 and HF0=1. ; When the downloading is terminated, the program will start execution of the ; loaded program from the specified starting address. ; The HDI08 boot ROM program enables the following busses to download programs ; through the HDI08 port: ; ; C - ISA - Dual strobes non-multiplexed bus with negative strobe ; pulses dual positive request ; D - HC11 - Single strobe non-multiplexed bus with positive strobe ; pulse single negative request. DSP56366 24-Bit Digital Signal Processor User Manual, Rev. 4 A-6 Freescale Semiconductor