AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 69

no-image

AN2156

Manufacturer Part Number
AN2156
Description
Programming and Erasing FLASH and EEPROM Memories on the MC68HC908AS60A/AZ60A
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2156
MOTOROLA
Freescale Semiconductor, Inc.
STEP 1
STEP 2
STEP 3
STEP 4
t
For More Information On This Product,
COPY DATA BYTE FROM RAM
EEPGM
CALL WriteEECR TO SET UP
BUFFER TO EEPROM_addr
CALL ms_delay TO WAIT
DISABLE INTERRUPTS
EERAS0/EERAS1 BITS
AND SET EELAT BIT
TO SET EEPGM BIT
/t
CALL WriteEECR
Figure 22. Subroutine EEPROMroutine Flowchart
EEBYTE
EEPROMroutine
(EEPROM.srt)
Go to: www.freescale.com
/t
EEBLOCK
/t
EEBULK
Standard EEPROM Assembly Source Code Flowcharts
STEP 5
STEP 6
STEP 7
CLEAR ALL BITS IN EExCR
CALL WriteEECR TO CLEAR
ENABLE INTERRUPTS
TO CLEAR EEPGM BIT
WAIT FOR TIME t
CALL WriteEECR
EELAT BIT
RETURN
Application Note
EEFPV
69

Related parts for AN2156