AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 71

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Standard EEPROM Assembly Source Code
***************************************************************************
***************************************************************************
*
*
*
***************************************************************************
* File Name: EEPROM.mrt
*
* Current Revision: 1.0
* Current Release Level: RP
* Current Revision Release Date: 6/21/2001
*
* Current Release Written By: Adeela Gill and Kazue Kikuchi
*
*
* Assembled Under: CASM08Z (P&E Microcomputer Systems, Inc.)
*
*
* Part Family Software Routine Works With: HC08
*
* Routine Size (Bytes):
* Stack Space Used (Bytes):
* RAM Used (Bytes):
* Global Variables Used:
* Subroutine Called:
*
* Full Functional Description Of Routine Design:
*
*
*
*
*
***************************************************************************
***************************************************************************
*****
***************************************************************************
byteprogram. equ
byteerase.
blockerase.
bulkerase.
***************************************************************************
*****
***************************************************************************
NOLIST
$INCLUDE
$INCLUDE
LIST
***************************************************************************
*****
***************************************************************************
AN2156
MOTOROLA
EEPROM.mrt is the main routine for the EEPROM programming and
erasing operations.
algorithms for the MC68HC908AS60A and MC68HC908AZ60A.
Note: In this code, CGMXCLK is used as the EEPROM reference clock *
org
org
EEPROM Programming and Erasing on the MC68HC908AS60A/AZ60A
equ
equ
equ
source and the frequency is 4.9152MHz
"H908AS60A.frk"
ram1
"EEPROM.var"
ram2
%00000100
%00001100
%00010100
%00011100
Ver.: 3.16
Motorola Applications Engineering - Austin, TX
Program Specific Equates
Freescale Semiconductor, Inc.
Include Files
For More Information On This Product,
It demonstrates programming and erasing
130
4
4
EEPROM_addr, data
EEPROMroutine
;Select byte program and set EELAT bit
;Select byte erase and set EELAT bit
;Select block erase and set EELAT bit
;Select bulk erase and set EELAT bit
;Equates for all registers and
; bits in the MC68HC908AS60A
;RAM variable definitions
Main Routine
Go to: www.freescale.com
Copyright (c) Motorola 2001
Standard EEPROM Assembly Source Code
*****
*****
*****
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Application Note
71

Related parts for AN2156