Forum : 8051
Original Post
Post Information | Post |
---|---|
July 22, 2009 - 5:30pm
|
Hello all, What is the proper data type for a pointer to point to, when accessing the EEPROM memory of the AT89S8253 device? Thanks, |
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.
}