Freescale Semiconductor, Inc.
*****************************************************************************
*
*
*
*
*
*
*
*
*
J1A_9356 Main Program Loop
* It then runs through the test routine to check for
* proper serial transmission. The LED is lit if the test passes.
*
*****************************************************************************
***
***
***
Enable erase/write mode of EEPROM
jsr J9356_EWEN
;call ewen routine
;call eral routine
Erase all EEPROM memory map
jsr J9356_ERAL
Write $AA55 to $00
lda
sta
lda
sta
lda
sta
jsr
#$00
ADDR
#$AA
DATA_H
#$55
;load address
;load data byte high
;load data byte low
;call write routine
DATA_L
J9356_WRITE
***
***
***
Write $1234 to $20
lda
sta
lda
sta
lda
sta
jsr
#$20
ADDR
#$12
DATA_H
#$34
;load address
;load data byte high
;load data byte low
;call write routine
DATA_L
J9356_WRITE
Read $00
lda
sta
jsr
lda
sta
lda
sta
#$00
ADDR
;load address
J9356_READ
DATA_H
TEST1
DATA_L
TEST2
;call read routine
;store away data_h to test1
;store away data_l to test2
Read $20
lda
sta
jsr
lda
sta
lda
sta
#$20
ADDR
;load address
J9356_READ
DATA_H
TEST3
DATA_L
TEST4
;call read routine
;store away data_h to test3
;store away data_l to test4
AN1241/D
For More Information On This Product,
Go to: www.freescale.com
12