This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

89S8252 Internal EEPROM

89S8252 is having internal 2kb of EEPROM,that is defined in the xdata memory space i want to create a structure having the following content,But to write in that memory it require some different method.
xdata struct EEPROM {

unsigned int Last_Data; struct EEPROM xdata *Node; };

struct EEPROM xdata * xdata p _at_ 0x0000;
but if i am simulating this program data is not in the EEPROM but it is in the xdata RAM space

Parents
  • You still haven't bothered to look at the instructions for posting code, have you?

    http://www.keil.com/forum/docs/thread8939.asp

    Do you understand about pointer sizes now?

    "89S8252 is having internal 2kb of EEPROM,that is defined in the xdata memory space"

    Does this chip have an SFR that controls whether XDATA accesses got to RAM or EEPROM?

    "but if i am simulating this program data is not in the EEPROM but it is in the xdata RAM space"

    How have you configured the simulator to distinguish between EEPROM and RAM?

Reply
  • You still haven't bothered to look at the instructions for posting code, have you?

    http://www.keil.com/forum/docs/thread8939.asp

    Do you understand about pointer sizes now?

    "89S8252 is having internal 2kb of EEPROM,that is defined in the xdata memory space"

    Does this chip have an SFR that controls whether XDATA accesses got to RAM or EEPROM?

    "but if i am simulating this program data is not in the EEPROM but it is in the xdata RAM space"

    How have you configured the simulator to distinguish between EEPROM and RAM?

Children