AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 38

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
Start:
************************************************************************************
*****
************************************************************************************
$INCLUDE
************************************************************************************
*****
************************************************************************************
************************************************************************************
************************************************************************************
*
*
*
************************************************************************************
* File Name: Program.mrt
*
* Current Revision: 1.0
* Current Release Level: RP
* Current Revision Release Date: 9/6/99
*
* Current Release Written By: Kim Sparks
*
*
* Assembled Under: CASM08 (P&E Micro Inc.)
*
* Project Folder Name: FLASH_2TS
*
38
Program / Margin Read FLASH 2TS Memory on the MC68HC908AS60
org
mov
lda
sta
sta
ldhx
sthx
lda
jsr
jsr
bra
org
fdb
flash-1
#$71,config-1
#$00
flcr1
flcr2
#$4001
FLASH_addr
#eraseallrows.
WriteFLCR
EraseRoutine
*
"prog_er.srt"
reset
Start
Freescale Semiconductor, Inc.
For More Information On This Product,
Subroutine Body Includes Section
Motorola Systems Engineering - Austin, TX
Go to: www.freescale.com
Reset Vectors
Copyright (c) Motorola 1999
;Turn off the COP, but leave the LVI on
;Set up the frequency divide control
; bits in flcr1 & flcr2 for an
; appropriate charge pump clock
;Any address within the block that will
; be erased
;Set address of erase block
;Set BLK1 and BLK0 in appropriate
; FLASH control register to specify the
; size of block to erase
;Erase the block of FLASH including the
; specified address
;WriteFLCR and Delay subroutines
Ver.: 3.06 SLD
MOTOROLA
AN1827
*****
*****
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for AN1827