English
Language : 

MC68HC05X16 Datasheet, PDF (48/232 Pages) Freescale Semiconductor, Inc – High-density complementary metal oxide semiconductor HCMOS) microcontroller unit
Freescale Semiconductor, Inc.
Table 3-1 EEPROM control bits description
E1ERA E1LAT E1PGM
Description
0
0
0 Read condition
3
0
1
0 Ready to load address/data for program/erase
0
1
1 Byte programming in progress
1
1
0 Ready for byte erase (load address)
1
1
1 Byte erase in progress
3.5.2 EEPROM read operation
To be able to read from EEPROM, the E1LAT bit has to be at logic zero, as shown in Table 3-1.
While this bit is at logic zero, the E1PGM bit and the E1ERA bit are permanently reset to zero and
the 256 bytes of EEPROM may be read as if it were a normal ROM area. The internal charge pump
generator is automatically switched off since the E1PGM bit is reset.
If a read operation is executed while the E1LAT bit is set (erase or programming sequence), data
resulting from the operation will be $FF.
Note:
When not performing any programming or erase operation, it is recommended that
EEPROM should remain in the read mode (E1LAT = 0)
3.5.3 EEPROM erase operation
To erase the contents of a byte of the EEPROM, the following steps should be taken:
1 Set the E1LAT bit.
2 Set the E1ERA bit (1& 2 may be done simultaneously with the same
instruction).
3 Write address/data to the EEPROM address to be erased.
4 Set the E1PGM bit.
5 Wait for a time tERA1.
6 Reset the E1LAT bit (to logic zero).
While an erase operation is being performed, any access of the EEPROM array will not be
successful.
The erased state of the EEPROM is $FF and the programmed state is $00.
Note: Data written to the address to be erased is not used, therefore its value is not significant.
MEMORY AND REGISTERS
MC68HC05X16
For More Information On This Product,
Rev. 1
Go to: www.freescale.com