AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 57

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
* and reasonable attorney fees arising out of, directly or indirectly, any*
* claim of personal injury or death associated with such unintended or
* unauthorized use, even if such claim alleges that Motorola was negligent*
* regarding the design or manufacture of the part.
* Motorola symbol are registered trademarks of Motorola, Inc. Motorola,
* Inc. is an Equal Opportunity/Affirmative Action Employer.
***************************************************************************
***************************************************************************
*****
***************************************************************************
masserase. equ
pageerase. equ
***************************************************************************
*****
***************************************************************************
NOLIST
$INCLUDE
$INCLUDE
LIST
***************************************************************************
*****
***************************************************************************
Start:
***************************************************************************
*****
***************************************************************************
$INCLUDE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
***************************************************************************
***************************************************************************
*
*
*
***************************************************************************
* File Name: SSTprog.mrt
*
* Current Revision: 1.0
* Current Release Level: RP
AN2156
MOTOROLA
org
org
mov
ldhx
sthx
lda
jsr
bra
SST FLASH Memory Programming on the MC68HC908AS60A/AZ60A
"H908AS60A.frk"
ram1
"SSTflash.var"
ram2
#$71,config-1
#$8045
FLASH_addr
#pageerase.
FlashErase
*
"SSTflash.srt"
%00000100
%00000000
Subroutine Body Includes Section
Freescale Semiconductor, Inc.
Program Specific Equates
Include Files
For More Information On This Product,
;Equates for all registers and bits in
; the MC68HC908AS60A
;RAM variable definitions
;Turn off the COP, but leave the LVI on
;Any address within the page or the array
; will be erased
;Load the address to FLASH_addr
;Select "PAGE" or "MASS" erase with
; Mass bit
;Erase the area of FLASH including the
; specified address
;SST FLASH subroutines
Main Routine
Go to: www.freescale.com
Copyright (c) Motorola 2001
Motorola and the
FLASH Assembly Source Code
*****
*****
*****
*****
*
*
*
*
*
*
*
*
*
*
*
Application Note
57

Related parts for AN2156