DSP56309EVM Freescale Semiconductor, DSP56309EVM Datasheet - Page 11

KIT EVALUATION FOR XC56309

DSP56309EVM

Manufacturer Part Number
DSP56309EVM
Description
KIT EVALUATION FOR XC56309
Manufacturer
Freescale Semiconductor
Type
DSPr
Datasheets

Specifications of DSP56309EVM

Contents
Module Board, Installation Guide, Power Supply, Cable, Software and more
Description/function
Audio DSPs
Product
Audio Modules
For Use With/related Products
DSP56309
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
load
_byte_loop
_word_loop
_sector_loop
CODE_SIZE
CODE_START
NUM_SEC
BOOT_END
;----------------------------------------------------------------------------
;
;
;
;
;
;
;
;
WR_FLASH ; disable_protect - Software data Protection routine
disable_protect
move_code
Freescale Semiconductor
move
move
move
move
dor
dor
dor
move
asr
movem
nop
move
move
move
jmp
WR_FLASH
This routine writes one 128-byte FLASH sector
enter with:
corrupts:
move
move
move
move
move
move
dor
move
nop
nop
move
lsr
move
lsr
move
nop
move
move
p:NUM_SEC,r3
p:CODE_START,r0
p:CODE_SIZE,r2
#$040080,r1
r3,_sector_loop
#42,_word_loop
#3,_byte_loop
x:(r1)+,a2
#8,a,a
a1,p:(r0)+
(r1)+
(r1)+
p:CODE_START,r1
(r1)
ds
ds
ds
equ
#>$8D,x0
x0,x:$45555
#>$72,x0
x0,x:$42AAA
#>$05,x0
x0,x:$45555
#42,move_code
p:(r0)+,a
a1,x:(r2)+
#8,a
a1,x:(r2)+
#8,a
a1,x:(r2)+
a1,x:(r2)+
a1,x:(r2)+
Using Symphony™ Studio with the DSP563xxEVM, Rev. 0
1
1
1
*
r2 pointing to starting FLASH Byte Address
r0 pointing to first DSP word to save
r0 - points to next P:memory location to save
r2 - points to next FLASH byte address to write a,b,x0
; number of sectors to read
; starting address of user code
; R2 contains the length of code in WORDS
; user code goes into FLASH at $040080
; get all sectors
; 42 words per FLASH sector
; each word requires 3 bytes
; Load byte from FLASH
; Shift 8 times to move byte into
; correct position.
; Stores 24-bit word into P mem
; dummy NOP to avoid do loop restrict.
; Jump to the users code
; user code size
; starting location of user code
; number of sectors to save
; $8D at DSP ==> $AA at FLASH
; Atmel address $5555
; $7d at DSP ==> $55 at FLASH
; Atmel address $2AAA
; $05 at DSP ==> $A0 at FLASH
; Atmel address $5555
;--- writes are now enabled
; move 128 bytes
; get byte from SRAM
; move low byte to FLASH
; move mid byte to FLASH
; move high byte to FLASH
; dummy write
; dummy write
Flash Memory Programming Code Description
11

Related parts for DSP56309EVM