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

Problem addressing XDATA memory above 100HEX

When my code is compiled, it causes XDATA memory above 100HEX to
be addressed with MOVX @R0,A rather than MOVX @DPTR,A instructions.
This causes variables in the XDATA range 0 - 100HEX to be overwritten.
I do not have this problem with XDATA above C000HEX, and am not sure
how far above 100HEX this problem exists. Any solutions would be
appreciated.

Thank you,

Frank Way

Parents
  • Please inlcude a short segment of C code that demonstrates the problem. Note any compiler flags you use too.

    XDATA can be accessed with R0 as a page pointer by setting up Port 2 and then using R0 to control Port 0 (the LSB). Are you using pdata anywhere?

    - Mark

Reply
  • Please inlcude a short segment of C code that demonstrates the problem. Note any compiler flags you use too.

    XDATA can be accessed with R0 as a page pointer by setting up Port 2 and then using R0 to control Port 0 (the LSB). Are you using pdata anywhere?

    - Mark

Children
No data