English
Language : 

MC68HC08AS32 Datasheet, PDF (67/394 Pages) Motorola, Inc – M68HC08 Family of 8-bit microcontroller units (MCUs)
Electrically Erasable Programmable ROM (EEPROM)
Functional Description
erase. Any attempts to read other EEPROM data will read the
latched data. If EELAT is set, other writes to the EECR will be
allowed after a valid EEPROM write.
b. To ensure the proper erasing sequence, the EEPGM bit
cannot be set if the EELAT bit is cleared and a non-EEPROM
write has occurred. Once EEPGM is set, the type of erase
mode cannot be modified. If EEPGM is set, the on-board
charge pump generates the erase voltage and applies it to the
user EEPROM array. When the EEPGM bit is cleared, the
erase voltage is removed from the array and the internal
charge pump is turned off.
c. Any attempt to clear both EEPGM and EELAT bits with a
single instruction will clear only EEPGM to allow time for
removal of high voltage from the EEPROM array.
In general, all bits should be erased before being programmed.
However, if program/erase cycling is of concern, the following procedure
can be used to minimize bit cycling in each EEPROM byte. If any bit in
a byte must be changed from a 0 to a 1, the byte needs to be erased
before programming. Table 6-1 summarizes the conditions for erasing
before programming.
Table 6-1. EEPROM Program/Erase Cycling Reduction
EEPROM Data To Be
Programmed
0
0
1
1
EEPROM Data Before
Programming
0
1
0
1
Erase Before
Programming?
No
No
Yes
No
MC68HC08AS32 — Rev. 3.0
MOTOROLA
Electrically Erasable Programmable ROM (EEPROM)
Advance Information
67