English
Language : 

MC68HC08AZ32A Datasheet, PDF (64/456 Pages) Motorola, Inc – HCMOS Microcontroller Unit
EEPROM
Freescale Semiconductor, Inc.
5.5.5.1 Program/Erase Using AUTO Bit
An additional feature available for EEPROM program and erase
operations is the AUTO mode. When enabled, AUTO mode will activate
an internal timer that will automatically terminate the program/erase
cycle and clear the EEPGM bit. Please see EEPROM Programming on
page 64, EEPROM Erasing on page 65 and EEPROM Control
Register on page 67 for more information.
5.5.5.2 EEPROM Programming
The unprogrammed or erase state of an EEPROM bit is a logic 1.
Programming changes the state to a logic 0. Only EEPROM bytes in the
non-protected blocks and the EENVR register can be programmed.
Use the following procedure to program a byte of EEPROM:
1. Clear EERAS1 and EERAS0 and set EELAT in the EECR.(A)
NOTE:
If using the AUTO mode, also set the AUTO bit during Step 1.
2. Write the desired data to the desired EEPROM address.(B)
3. Set the EEPGM bit.(C) Go to Step 7 if AUTO is set.
4. Wait for time, tEEPGM, to program the byte.
5. Clear EEPGM bit.
6. Wait for time, tEEFPV, for the programming voltage to fall. Go to
Step 8.
7. Poll the EEPGM bit until it is cleared by the internal timer.(D)
8. Clear EELAT bits.(E)
NOTE:
A. EERAS1 and EERAS0 must be cleared for programming. Setting the
EELAT bit configures the address and data buses to latch data for
programming the array. Only data with a valid EEPROM address will be
latched. If EELAT is set, other writes to the EECR will be allowed after a
valid EEPROM write.
B. If more than one valid EEPROM write occurs, the last address and
data will be latched overriding the previous address and data. Once data
Technical Data
64
MC68HC08AZ32A — Rev 1.0
EEPROM
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA