|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Implementing XDATA BankingInformation in this article applies to:
QUESTIONI know that code banking is built-in, but my question concerns XDATA banking. I have a 128K SRAM that is configured on the board as 4x32K ram areas. Is there any type of intrisic support for banked XDATA? if not, do you have any ideas for how (or if) I could build it in? ANSWERThere is no built in support for XDATA banking, however, it is easy to implement this yourself. The best way is to use XBYTE to access XDATA as an "array". Example 1: Accessing a 32k "array" in two XDATA banks:
Example 2: Accessing 16M of RAM split over 256 XDATA banks:
Note the use of P1 to select the XDATA bank. You may use fewer bits from the port if you don't need 16 MegaBytes of XDATA. MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
|||||||||||
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.