AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 80

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
EEPROM AUTO Mode Assembly Source Code
***************************************************************************
***************************************************************************
*
*
*
***************************************************************************
* File Name: AutoEEPROM.mrt
*
* Current Revision: 1.1
* 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
*
* Revision History:
*
*
* Routine Size (Bytes):
* Stack Space Used (Bytes):
* RAM Used (Bytes):
* Global Variables Used:
* Subroutine Called:
*
* Full Functional Description Of Routine Design:
*
*
*
*
*
***************************************************************************
***************************************************************************
*****
***************************************************************************
auto_byteprogram. equ
auto_byteerase.
auto_blockerase.
auto_bulkerase.
***************************************************************************
*****
***************************************************************************
NOLIST
$INCLUDE
80
Rev. 1.1
EEPROM AUTO Programming and Erasing on the MC68HC908AS60A/AZ60A
AutoEEPROM.mrt is the main routine for the EEPROM programming and *
erasing operations using the AUTO mode.
programming and erasing for the MC68HC908AS60A and MC68HC908AZ60A.*
Note: In this code, the internal bus clock is used as the EEPROM
reference clock source and the frequency is 2.4576MHz.
"H908AS60A.frk"
EELAT and AUTO bits are set at the same timing
equ
equ
equ
Ver.: 3.16
%00000110
%00001110
%00010110
%00011110
Motorola Applications Engineering - Austin, TX
Program Specific Equates
Freescale Semiconductor, Inc.
Include Files
For More Information On This Product,
113
4
4
EEPROM_addr, data
AutoRoutine
;Equates for all registers and
; bits in the MC68HC908AS60A
Go to: www.freescale.com
;Select byte program, and set EELAT
; and AUTO bits
;Select byte erase, and set EELAT
; and AUTO bits
;Select block erase, and set EELAT
; and AUTO bits
;Select bulk erase, and set EELAT
; and AUTO bits
Copyright (c) Motorola 2001
It demonstrates AUTO
*****
*****
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
MOTOROLA
AN2156

Related parts for AN2156