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

Assess high "128 byte" and 2k eeprom inside AT89s8252 By C

How can Assess high "128 byte" and 2k eeprom inside AT89s8252 By C language?
where can i find any example about that?
pls help.

Parents
  • For DATA space addresses 0x80 to 0xFF just declare them as SFRs.

    sfr port0 = 0x80; /* 128 byte? */
    
    if (port0 & 0x01) port0 = 0xAA;
    I don't know about the EEPROM. If it is XDATA mapped, just create a pointer to xdata and point to it. If register mapped, read the data book.

Reply
  • For DATA space addresses 0x80 to 0xFF just declare them as SFRs.

    sfr port0 = 0x80; /* 128 byte? */
    
    if (port0 & 0x01) port0 = 0xAA;
    I don't know about the EEPROM. If it is XDATA mapped, just create a pointer to xdata and point to it. If register mapped, read the data book.

Children