Topic : Accessing eeprom of AT89S8253

Forum : 8051

Original Post
Post Information Post
July 22, 2009 - 5:30pm
Guest

Hello all,

What is the proper data type for a pointer to point to, when accessing the EEPROM memory of the AT89S8253 device?
Any help I will appreciate!

Thanks,
Marove

Replies
Post Information Post
+1
0
-1
July 23, 2009 - 8:27am
Guest

EEPROM is accessible in the XDATA area. For example:
{
unsigned char xdata *pEEPROM;

pEEPROM = (unsigned char xdata *) 0x100;
counter += *pEEPROM; //read EEPROM
//writing EEPROM is more complex, because you have to manage the associated SFRs.
}