AN2183 Freescale Semiconductor / Motorola, AN2183 Datasheet - Page 35

no-image

AN2183

Manufacturer Part Number
AN2183
Description
Using FLASH as EEPROM on the MC68HC908GP32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Check_Dump1:
Check_Dump2:
Check_Dump3:
;
;
Check_Dump4:
Check_Dump5:
;
;
;
Check_What:
;*
===================================================================================
;*
ascii_CR:
ascii_LF:
;
msg_hello:
msg_erased:
msg_what:
msg_CRLF:
AN2183
MOTOROLA
Handle unknown commands.
Messages
ldhx
bra
ldhx
lda
psha
txa
sub
psha
pshh
pula
sbc
psha
ldhx
jsr
pulh
pulx
aix
pshx
pshh
lda
psha
lda
jsr
lda
aix
jsr
dbnz
pula
dbnz
ais
jmp
ldhx
jsr
jmp
#EE_StartAddr1
Check_Dump3
#EE_StartAddr2
#8
#16
#0
#msg_CRLF
PrintString
#16
#16
#’ ’
PutChar
,x
#1
PutHexByte
1,sp,Check_Dump5
3,sp,Check_Dump4
#3
main
#msg_what
PrintString
main
equ
equ
db
db
db
db
$0D
$0A
ascii_CR,ascii_LF,’FlashEE>’,0
’ FlashEE erased’,0
’ - what?’,0
ascii_CR,ascii_LF,0
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
; point to start of 1st FlashEE
; continue
; point to start of 2nd FlashEE
; initialize
;
; perform
;
;
;
;
;
;
; point to <CR><LF> message
; output it
; restore
;
; add offset
; save result
;
; initialize
;
; output
;
; read FlashEE data
; move location pointer
; output it
; loop back until all bytes done
; deallocate stack usage
; loop back until all lines done
; deallocate stack usage
; loop back to top
; point to unknown command message
; output it
; loop back to top
; ASCII carriage return
; ASCII line feed
line counter
16-bit subtraction
location pointer
back on stack
byte counter
a space
in order to adjust
FlashEE pointer
backwards one dump
print row
and put pointer on the stack
Application Note
eetest.asm
35

Related parts for AN2183