AN1241 Motorola Semiconductor Products, AN1241 Datasheet - Page 11

no-image

AN1241

Manufacturer Part Number
AN1241
Description
Interfacing the Mc68hc705j1a to 9356/9366 Eeproms
Manufacturer
Motorola Semiconductor Products
Datasheet
*****************************************************************************
*
*
*
*
*****************************************************************************
*
CS
SER_CLK
SER_OUT
SER_IN
***
OPCODE
ADDR
DATA_H
DATA_L
TEST1
TEST2
TEST3
TEST4
*****************************************************************************
*
*
*
*
* This section sets up the port for bit banging.
*
* To prevent floating inputs and associated high current draw,
* the HC705J1A has pulldown devices on all I/O pins. This
* initialization should enable these pulldowns on unused I/O
* pins. RESET_ enables the pulldowns, so no code is required.
*
*****************************************************************************
*
J9356_START
AN1241/D
Equates and RAM Storage
RAM storage variables
Program Initialization
equ
equ
equ
equ
org
rmb
rmb
rmb
rmb
rmb
rmb
rmb
rmb
org
lda
sta
sta
lda
sta
Freescale Semiconductor, Inc.
For More Information On This Product,
0
1
2
3
RAM
1
1
1
1
1
1
1
1
EPROM
#$80
PORTA
COPR
#$87
DDRA
Go to: www.freescale.com
***
;bit # for chip select
;bit # for serial clock
;bit # for serial data out
;bit # for serial data in
;start of static RAM at $C0
;command byte
;EEPROM address byte
;MSByte of data
;LSByte of data
;test byte #1
;test byte #2
;test byte #3
;test byte #4
;init portA
;
;kick the wdog
;init i/o of port A
11
*
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for AN1241