Datasheet

Table Of Contents
113
AT89C51ID2
4289C–8051–11/05
Read Data The following procedure is used to read the data stored in the EEPROM memory:
Check EEBUSY flag
If the user application interrupts routines use XRAM memory space: Save and
disable interrupts.
Load DPTR with the address to read
Set bit EEE of EECON register
Execute a MOVX A, @DPTR
Clear bit EEE of EECON register
Restore interrupts.
Figure 44. Recommended EEPROM Data Read Sequence
EEPROM Data Read
Sequence
Data Read
DPTR= Address
ACC= Data
Exec: MOVX A, @DPTR
Last Byte
to Read?
EEPROM Data Mapping
EECON = 02h (EEE=1)
EEPROM Data Mapping
EECON = 00h (EEE = 0
Save & Disable IT
EA= 0
Restore IT
EEBusy
Cleared?