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

L51_BANK.a51 and xdata banking.

Hello
... i'm sorry for my bad english ...
I write special app for NXP P89C51RD2BA microcontrollel. But I can't resolve next problem:
When I try to define two arrays in far memory and try to write somthing them, they rewrite each other (seen in memory frame).
I have next memory distribution:
1) External RAM: 128 Kb = 4 pages x 32 Kb
(HDATA (X:0x00000-X:07FFF, X:0x10000-X:17FFF,X:0x20000-X:27FFF,X:0x30000-X:37FFF))
2) And also XDATA (X:0x8000-X:0xFFFF) for communication with various circuit chips (MT8980 and others)
3) On-chip code memory: ECODE (C:0x0000-C:0xFFFF), HCONST (C:0x0000-C:0xFFFF)
4) X:0x80FE - the address for xdata banks swithcing (may be here the problem)
In this regard, the following question:
how use L51_BANK.A51 in this case properly (for this problem resolution).