AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 45

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN1827
MOTOROLA
lda
lda
lda
sta
lda
sta
lda
sta
lda
sta
lda
sta
lda
sta
lda
sta
lda
sta
lda
jsr
lda
jsr
lda
jsr
lda
jsr
lda
jsr
lda
jsr
lda
jsr
lda
jsr
lda
cmp
bne
lda
cmp
bne
flbpr1
flbpr2
data
,x
data+1
1,x
data+2
2,x
data+3
3,x
data+4
4,x
data+5
5,x
data+6
6,x
data+7
7,x
#hven.
WriteFLCR
#tSTEP
Delay
#hven.
WriteFLCR
#tHVTV
Delay
#margin.
WriteFLCR
#tVTP
Delay
#pgm.
WriteFLCR
#tHVD
Delay
,x
data
Repeat
1,x
data+1
Repeat
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
;Step 3 - Read from the block protect
; registers
;Step 4 - Copy the 8 bytes of data
; from the RAM buffer to the
; appropriate FLASH locations
;Step 5 - Set the HVEN bit
;Step 6 - Wait for time tSTEP
;Step 7 - Clear the HVEN bit
;Step 8 - Wait for time tHVTV
;Step 9 - Set the MARGIN bit
;Step 10 - Wait for time tVTP
;Step 11 - Clear the PGM bit
;Step 12 - Wait for time tHVD
;Step 13 and 14 - Check to see if the
; correct data was programmed in the
; FLASH page. If not, jump to Repeat to
; do another attempt. If so, jump to
; Complete.
Assembly Source Code
Application Note
45

Related parts for AN1827