AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 42

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* Full Functional Description Of Subroutine:
*
*
*
*
*
************************************************************************************
*****
************************************************************************************
*
*
************************************************************************************
tERASE: equ
tKILL:
tHVD:
tSTEP:
tHVTV:
42
and Prog8Bytes. These demonstrate 2TS flash erasing and programming
algorithms, respectively. The routines also call other subroutines
WriteFLCR and Delay.
Each delay time related to FLASH 2TS program and erase operations is
calculated with bus speed 2.4576 MHz.
Calling Sequence:
Entry Label:
Entry Conditions:
Number of Exit Points:
Exit Label:
Prog_er.srt consists of two primary subroutines called EraseRoutine
Exit Conditions:
equ
equ
equ
equ
$F6
$0A
$03
$31
$03
Freescale Semiconductor, Inc.
For More Information On This Product,
FLASH Delay Equates
Go to: www.freescale.com
WriteFLCR
Delay
JSR EraseRoutine, JSR Prog8Byte
JSR WriteFLCR, JSR Delay
EraseRoutine, Prog8Bytes, WriteFLCR
Delay
EraseRoutine
Prog8Bytes
WriteFLCR
Delay
4
EraseRoutine
Prog8Bytes
WriteFLCR
Delay
EraseRoutine
Prog8Bytes
WriteFLCR
Delay
;FLASH 2TS block/bulk erase time
; (~102 ms)
;FLASH 2TS high-voltage kill time
; (~209
;FLASH 2TS return to read time
; (~66
;FLASH 2TS page program step size
; (~1 ms)
;FLASH 2TS HVEN low to MARGIN high
Erase990
None
None
2 bytes address defined at
2 bytes address defined at
8 programming bytes located
2 bytes address defined at
FLCR (FLASH Control
Delay variable passed in
Prog990
FLCR990
Delay990
None
pass/fail result in
accumulator
None
None
Register) bit definition
FLASH_addr
FLASH_addr
passed in accumulator
accumulator
FLASH_addr
at variables data
s)
s)
MOTOROLA
AN1827
*****
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*

Related parts for AN1827