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

XDATA Question

Hi,
I have a loop

for (address = 1; address <= 5; address ++)

ram_ptr[address] = 0xFA:

where unsigned char xdata *ram_ptr = 0x0000;
and unsigned int address;

Somehow when i watch the simulation the address never increments and it always write FA in the same address 0x0000. I have also tried using XBYTE[address] to no use.
Any solution to my problem would be greatly appreciated

Parents
  • So I take it that we're talking about two different simulators here -- uVision's simulator works fine, but DW8051's (some 8051 core design tool???) simulator does not.

    You can convince yourself that there is nothing wrong with the Keil side of the toolchain by looking at the resulting assembly code and verifying that it's "doing the right thing". Then you'll have to figure out why DW8051 (or whatever) is broken. I can't help you out with that one, however.

Reply
  • So I take it that we're talking about two different simulators here -- uVision's simulator works fine, but DW8051's (some 8051 core design tool???) simulator does not.

    You can convince yourself that there is nothing wrong with the Keil side of the toolchain by looking at the resulting assembly code and verifying that it's "doing the right thing". Then you'll have to figure out why DW8051 (or whatever) is broken. I can't help you out with that one, however.

Children