
AN1241/D
10
APPENDIX C
*****************************************************************************
*****************************************************************************
* *
* Main Routine J1A_9356 - 705J1A to 9356 EEPROM *
* *
*****************************************************************************
* *
* File Name: J1A_9356.RTN Copyright (c) Motorola 1995 *
* *
* Full Functional Description Of Routine Design: *
* Program flow: *
* Reset: 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 *
* *
*****************************************************************************
* *
* Part Specific Framework Includes Section *
* *
*****************************************************************************
#nolist
#INCLUDE 'H705J1A.FRK' ;Include the equates for the HC705J1A
;so that all labels can be used.
#list
*****************************************************************************
* *
* MOR Bytes Definitions for Main Routine *
* *
*****************************************************************************
org MOR
db $21 ;COP enabled, osc resistor enabled
;If used on a mask rom part,
; be sure to specify this option.
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.