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 Reply Children
  • I am using the Winbond W77E58 controller, its having 64K internal memory and 256 Bytes of Data memory. In my code our Code size is around 8Kb and Xdata is 2Kb and data is 117 bytes. How to i seperate the 64K internal memory into two parts as, one for Program memory and other one for Xdata memry.

  • 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