AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 54

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
54
Freescale Semiconductor, Inc.
STEP 1
STEP 2
STEP 3
STEP 4
STEP 5
STEP 6
For More Information On This Product,
WRITE TO FLASH_addr
WITH ANY DATA VALUE
DISABLE INTERRUPTS
PROTECT REGISTERS
READ FLASH BLOCK
WAIT FOR TIME t
CALL WriteFLCR TO
WAIT FOR TIME t
CALL WriteFLCR TO
SET PGM BIT
(SSTflash.srt)
SET HVEN BIT
ProgRow
Go to: www.freescale.com
Figure 18. Subroutine ProgRow Flowchart
PGS
NVS
STEP 8
STEP 7
STEP 9
STEP 10
STEP 11
STEP 12
STEP 13
COPY ONE DATA BYTE
ENABLE INTERRUPTS
WAIT FOR TIME t
WAIT FOR TIME t
WAIT FOR TIME t
ALL BYTES IN ROW
CALL WriteFLCR TO
CALL WriteFLCR TO
DECREMENT size
TO FLASH_addr
PROGRAMMED?
CLEAR HVEN BIT
CLEAR PGM BIT
YES
(size == 0?)
RETURN
PROG
NVH
RCV
MOTOROLA
NO
AN2156

Related parts for AN2156