AT89C51ID2-SMSIM ATMEL [ATMEL Corporation], AT89C51ID2-SMSIM Datasheet - Page 114

no-image

AT89C51ID2-SMSIM

Manufacturer Part Number
AT89C51ID2-SMSIM
Description
8-bit Flash Microcontroller
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Read Data
114
AT89C51ID2
The following procedure is used to read the data stored in the EEPROM memory:
Figure 45. Recommended EEPROM Data Read Sequence
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.
EEPROM Data Mapping
Exec: MOVX A, @DPTR
EEPROM Data Mapping
EECON = 00h (EEE = 0
EEPROM Data Read
EECON = 02h (EEE=1)
Save & Disable IT
DPTR= Address
Sequence
ACC= Data
Last Byte
Cleared?
Data Read
to Read?
Restore IT
EEBusy
EA= 0
4289A–8051–09/03

Related parts for AT89C51ID2-SMSIM