Hi, I've read about XBanking and have some questions. Assume that I have 128MB of XRAM and I want to separate it to 4 pages, 0-0x7FFF,0x8000-0xFFFF,0x10000-0x17FFF and 0x18000-0x1FFFF. I use P1.6 and P1.7 for select pages. - When I declare far variable, how can I choose which page does this variable stored? - How to config the values of P1.6 and P1.7 for select pages? I've tried to read all C51.pdf, A51.pdf, XBanking.A51 files and informations in this site also but I can't find detail about this so I decide to ask in this forum. Thank you very much.
You may define USERCLASSES for this. In this way you may split variables easily accross various regions. The technique is shown in: http://www.keil.com/support/docs/2670.htm and can be basically used for all types of memory. We also used it in the example under: Keil\c51\Examples\FarMemory\3 XData Areas on T89C51RD2