AN1827 Freescale Semiconductor / Motorola, AN1827 Datasheet - Page 32

no-image

AN1827

Manufacturer Part Number
AN1827
Description
Programming and Erasing FLASH Memory on the MC68HC908AS60
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
32
Freescale Semiconductor, Inc.
For More Information On This Product,
STEP 1
STEP 2
STEP 3
STEP 4
STEP 5
STEP 6
Figure 12. Subroutine EraseRoutine Flowchart
Go to: www.freescale.com
PROTECT REGISTERS
TO CLEAR HVEN BIT
READ FLASH BLOCK
TO SET ERASE BIT
SET I BIT TO MASK
ANY DATA VALUE
TO SET HVEN BIT
FLASH_addr WITH
CALL WriteFLCR
CALL WriteFLCR
CALL WriteFLCR
CALL Delay TO
INTERRUPTS
WAIT t
WRITE TO
Prog_er_srt.c)
EraseRoutine
(Prog_er.srt /
Erase
STEP 7
STEP 8
STEP 9
ENABLE INTERRUPTS
CALL WriteFLCR TO
CLEAR ERASE BIT
CALL Delay TO
CALL Delay TO
CLEAR I BIT TO
WAIT t
RETURN
WAIT t
HVD
Kill
MOTOROLA
AN1827

Related parts for AN1827