Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual page 36

Application development system v2.0
Table of Contents

Advertisement

Programming On-board Flash Memory
move.l
move.l
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
move.l
move.l
move.l
*******************************************
* BreakPoint Here if program flash in SDS *
*******************************************
add.l
add.l
**************************************************
;*****************************************
; Input Parameters:
;
a0 - (Long) Source Address
;
a1 - (Long) Target Address
;
d0 - (Long) Byte Size
;
a5 - (long) Flash Starting Address Offset1
;
a6 - (long) Flash Starting Address Offset2
;*****************************************
move.l
move.l
clr.l
clr.b
PROGRAM
ENABLE
move.w
clr.l
POLLING
cmp.l
bgt
add.l
move.w
move.w
cmp.w
bne
add.l
add.l
add.l
cmp.b
bne
ECHO
ECHO
NO_W
add.b
C-35
Freescale Semiconductor, Inc.
pSOURCE,A0
pTARGET,A1
pSIZE,D0
pFLASH,A5
pFLASH,A6
#OFFSET1,A5
#OFFSET2,A6
a0,a2
; a2 as source
a1,a3
; a3 as target
d1
; clear d1 as counter
d5
; clear d5 as ECHO counter
(a2),(a3)
; Copy source to target
d4
; clear d4 as polling counter
#TIME,d4
ERROR
; if d4>#TIME, bra ERROR
#1,d4
; d4++
(a2),d2
; Compare (a0),(a1)
(a3),d3
d2,d3
POLLING
; End of POLLING
#2,a2
#2,a3
#2,d1
#0,d5
NO_W
'W'
0
#1,d5
M68EZ328ADS v2.0 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents