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

24bit XDATA pointer in Dallas DS5240

How can I access the XDATA memory block after 64Kbypes in Dallas DS5240 environment? I now use 24bit contiguous mode to compile the program and I want to access a memory address in xdata 0x200000....

*((unsigned char xdata *)0x200000) = 0x0b;

C Compiler error occur. Then I try...

DPX = 0x20;
*((unsigned char xdata *)0x0000) = 0x0b;

There is no error in C compiler. However, I find the object code is

0034 90000000 MOV DPTR,#00H
^^-- force DPX = 0x00
0038 740b MOV A,#0bH
003A F0 MOVX @DPTR,A

How can I do?

0