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

How to access the XDATA

My external EEPROM (I2C) is AT24C32. In our code the XDATA is about 400Bytes. How to seperate the Code (program) memory and Data memory, how to access the XDATA.

Parents
  • The Standard 8051 architecture has two distinct address spaces for CODE (read-only, executable) and XDATA (read+write, non-executable).

    Commonly, CODE is mapped to ROM nad XDATA to RAM.

    If your specific chip has some special features that allow mapping CODE and/or XDATA onto different parts of its physical memory, then you are going to have to look at the specific Datasheet for details.

    As far as the Keil tools (or any other tools) are concerned, it all just appears as CODE or XDATA in the normal way

Reply
  • The Standard 8051 architecture has two distinct address spaces for CODE (read-only, executable) and XDATA (read+write, non-executable).

    Commonly, CODE is mapped to ROM nad XDATA to RAM.

    If your specific chip has some special features that allow mapping CODE and/or XDATA onto different parts of its physical memory, then you are going to have to look at the specific Datasheet for details.

    As far as the Keil tools (or any other tools) are concerned, it all just appears as CODE or XDATA in the normal way

Children
No data