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
  • I got ur point,If I am defining the EEPROM in Xdata using the WMCON SFR, and i want to do the following operation

    unsigned int xadat temp;
    temp = 0xAAAA;

    In this case if u see the timing diagram of the xdata memory write,it is one machine cycle,but the EEPROM is takinh more time to complete write operation,so how i will add the wait state in this operation

Reply
  • I got ur point,If I am defining the EEPROM in Xdata using the WMCON SFR, and i want to do the following operation

    unsigned int xadat temp;
    temp = 0xAAAA;

    In this case if u see the timing diagram of the xdata memory write,it is one machine cycle,but the EEPROM is takinh more time to complete write operation,so how i will add the wait state in this operation

Children