AN2156 Freescale Semiconductor / Motorola, AN2156 Datasheet - Page 34

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
34
1. Clear EERAS1 and EERAS0 and set EELAT and AUTO in the
2. Write the desired data byte to the desired EEPROM address.
3. Set the EEPGM bit.
4. Poll the EEPGM bit until it is cleared by the internal timer.
5. Clear EELAT bits.
6. Repeat steps 1 to 5 to program additional bytes in the EEPROM
Freescale Semiconductor, Inc.
STEP 3
STEP 4
STEP 5
STEP 6
STEP 7
STEP 1
STEP 2
PROGRAM OPERATION COMPLETE
For More Information On This Product,
Figure 14. EEPROM Programming Algorithm Flowcharts
CLEAR EERAS1 AND EERAS0
EExCR.
array.
TO EEPROM ADDRESS
STANDARD PROGRAM
WRITE DATA BYTE
CLEAR EEPGM BIT
WAIT TIME t
CLEAR EELAT BIT
WAIT TIME t
SET EEPGM BIT
SET EELAT
Go to: www.freescale.com
EEPGM
EEFPV
STEP 4
STEP 3
STEP 5
STEP 1
STEP 2
PROGRAM OPERATION COMPLETE
CLEAR EERAS1 AND EERAS0
EEPGM BIT CLEARED?
TO EEPROM ADDRESS
SET EELAT AND AUTO
WRITE DATA BYTE
CLEAR EELAT BIT
AUTO PROGRAM
SET EEPGM BIT
YES
NO
MOTOROLA
AN2156

Related parts for AN2156