AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 37

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
* Motorola product could create a situation where personal injury or death
* may occur. Should Buyer purchase or use Motorola products for any such
* intended or unauthorized application, Buyer shall indemnify and hold
* Motorola and its officers, employees, subsidiaries, affiliates, and
* distributors harmless against all claims, costs, damages, and expenses,
* 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 and the
* Motorola symbol are registered trademarks of Motorola, Inc. Motorola,
* Inc. is an Equal Opportunity/Affirmative Action Employer.
************************************************************************************
************************************************************************************
*****
************************************************************************************
NOLIST
$INCLUDE
************************************************************************************
*****
************************************************************************************
eraseallrows.
erasehalfrows.
erase8rows.
erase1row.
************************************************************************************
*****
************************************************************************************
$INCLUDE
LIST
************************************************************************************
*****
************************************************************************************
* This routine initializes the 908AS60 before calling the erasing routine,
* EraseRoutine. If a user plans to incorporate EraseRoutine into his/her
* program, make sure the FLASH control registers and the FLASH_addr are
* initialized before calling EraseRoutine.
*
* After the initialization, EraseRoutine is called to erase a data block
* of 64 bytes, 512 bytes, 16 Kbytes or 32 bytes depending on the value in
* the control registers. FLASH_addr is any address within the block that
* will be erased. This program does not verify that the operation was
* successful.
************************************************************************************
AN1827
MOTOROLA
org
"H908as60.frk"
equ
equ
equ
equ
ram1
"Prog_er.var"
Freescale Semiconductor, Inc.
For More Information On This Product,
RAM Variable Declarations
Program Specific Equates
%00000000
%00010000
%00100000
%00110000
Go to: www.freescale.com
Include Files
Erase Main Routine
;Equates for all registers and bits in
; the MC68HC908AS60
;Full array: 32 Kbytes (A15)
;One-half array: 16 Kbytes
; (A15 & A14)
;Eight rows: 512 bytes (A15-A9)
;Single row: 64 bytes (A15-A6)
;RAM variable definitions
Assembly Source Code
Application Note
*****
*****
*****
*****
37
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for AN1827