AN1241 Motorola Semiconductor Products, AN1241 Datasheet - Page 10

no-image

AN1241

Manufacturer Part Number
AN1241
Description
Interfacing the Mc68hc705j1a to 9356/9366 Eeproms
Manufacturer
Motorola Semiconductor Products
Datasheet
*****************************************************************************
*****************************************************************************
*
*
*
*****************************************************************************
*
* File Name: J1A_9356.RTN
*
* Full Functional Description Of Routine Design:
*
*
*
*
*
*
*
*
*
*
*****************************************************************************
*
*
*
*****************************************************************************
#nolist
#INCLUDE 'H705J1A.FRK'
#list
*****************************************************************************
*
*
*
*****************************************************************************
10
Program flow:
Reset:
Part Specific Framework Includes Section
MOR Bytes Definitions for Main Routine
Main Routine J1A_9356 - 705J1A to 9356 EEPROM
Initializes ports for bit banging.
Calls EWEN sub to enable write to EEPROM.
Calls ERAL to erase all EEPROM
Writes $AA55 to EEPROM $00
Writes $1234 to EEPROM $20
Reads EEPROM $00 and $20
Check for correct data, light LED if correct
Execute endless loop
org
db
Freescale Semiconductor, Inc.
For More Information On This Product,
MOR
$21
Go to: www.freescale.com
APPENDIX C
;Include the equates for the HC705J1A
;so that all labels can be used.
;COP enabled, osc resistor enabled
;If used on a mask rom part,
; be sure to specify this option.
Copyright (c) Motorola 1995
AN1241/D
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for AN1241