mc68hc908ey16a Freescale Semiconductor, Inc, mc68hc908ey16a Datasheet - Page 260

no-image

mc68hc908ey16a

Manufacturer Part Number
mc68hc908ey16a
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Development Support
fErase:
CPUSPD:
Example 19-8
fErase:
CPUSPD:
If the FLASH locations that you want to erase are protected due to the value in the FLASH block protect
register (FLBPR), the erase operation will not be successful. However when a high voltage (V
to the IRQ pin, the block protection is bypassed.
When the FLASH security check fails in the normal monitor mode, the FLASH can be re-accessed by
erasing the entire FLASH array. To override the FLASH security mechanism and erase the FLASH array
using this routine, registers H and X must contain the address of the FLASH block protect register
(FLBPR).
260
equ
equ
mov
ldhx #FLBPR
jsr
equ
equ
mov
ldhx #$E121
jsr
shows how to erase a page from $E100 through $E13F.
$1006
$0049
#$08,CPUSPD
fErase
$1006
$0049
#$0E,CPUSPD
fErase
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
Example 19-7. Erasing an Entire Array
;EY16A/8A fErase jump address
;Define CPUSPD addrss
;fop = 2.0MHz in this example
;Load FLBPR address to H:X
;Call fErase routine
;EY16A/8A fErase jump address
;Define CPUSPD addrss
;fop = 4.9152MHz in this example
;Load any address within the
; page to H:X
;Call fErase routine
Example 19-8. Erasing a Page
Freescale Semiconductor
tst
) is applied

Related parts for mc68hc908ey16a