AN1241 Motorola Semiconductor Products, AN1241 Datasheet - Page 12

no-image

AN1241

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

Related parts for AN1241