AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 63

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MASS_Erase:
Step9:
AN2156
MOTOROLA
;
;-----------------------------------------------------------------;
; Delay Time tNVH Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S3
;
; Delay Evaluation: Point E3
;
;-----------------------------------------------------------------;
; Delay Time tMERASE Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S4
;
; Delay Evaluation: Point E4
;
;-----------------------------------------------------------------;
; Delay Time tNVHL Evaluation
;
;-----------------------------------------------------------------;
; Delay Evaluation: Point S5
;
; Delay Evaluation: Point E5
;
;-----------------------------------------------------------------;
; Delay Time tRCV Evaluation
;
;-----------------------------------------------------------------;
bset
lda
jsr
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
dbnza *
bset
bra
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
sta
jsr
bset
lda
jsr
Measure low level period on Port D bit 3 pin using a scope
bclr
lda
dbnza *
bset
lda
jsr
Measure low level period on Port D bit 3 pin using a scope
3,PTD
#erase.
WriteFLCR
3,PTD
#$4
3,PTD
Step9
3,PTD
#!4
times
ms_delay
3,PTD
#erase.
WriteFLCR
3,PTD
#$52
3,PTD
#hven.
WriteFLCR
Freescale Semiconductor, Inc.
For More Information On This Product,
;Set Port D bit 3
;Step 7 - Clear the ERASE bit
;Clear Port D bit 3
;Step 8 - Wait for time tNVH
; 2 + (3 x 4) cycles = 14 cycles (5.7us)
;Set Port D bit 3
;MASS Erase
;Clear Port D bit 3
;Step 6 - Wait for time tMERASE (4.0ms)
;Set Port D bit 3
;Step 7 - Clear the ERASE bit
;Clear Port D bit 3
;Step 8 - Wait for time tNVHL
; 2 + (3 x 82) cycles = 248 cycles
; (101us)
;Set Port D bit 3
;Step 9 - Clear the HVEN bit
(Time between points S3 and E3)
(Time between points S6 and E6)
(Time between points S5 and E5)
Go to: www.freescale.com
(Time between points S4 and E4)
FLASH Assembly Source Code
;
;
;
;
;
;
;
;
Application Note
63

Related parts for AN2156