AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 78

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
78
Freescale Semiconductor, Inc.
For More Information On This Product,
Figure 26. Subroutine AutoEEPROM Flowchart
Go to: www.freescale.com
STEP 1
STEP 2
STEP 3
STEP 4
STEP 5
SET EELAT BIT, SET AUTO BIT
COPY DATA BYTE FROM RAM
CALL WriteEECR TO SET UP
CALL WriteEECR TO CLEAR
BUFFER TO EEPROM_addr
CLEAR ALL BITS IN EExCR
CALL WriteEECR TO SET
IS EEPGM BIT IN EExCR
EERAS0/EERAS1 BITS,
DISABLE INTERRUPTS
ENABLE INTERRUPTS
(AutoEEPROM.srt)
AUTOroutine
EEPGM BIT
STILL SET?
EELAT BIT
NO
RETURN
YES
MOTOROLA
AN2156

Related parts for AN2156