Keil Logo

C51: On-Chip Banked PDATA Support

Information in this article applies to:

  • C51

QUESTION

Some devices feature more than 512 bytes of on-chip RAM. The additional RAM (over and above the 128 bytes of data and 128 bytes of idata) is arranged both as xdata and banked pdata. Does the compiler support banked pdata memory?

ANSWER

The code overhead in implementing the bank switching, plus the risk that the wrong bank is selected during an interrupt routine or when using an RTOS is too great. The performance difference between using the extra RAM as xdata rather than pdata is minimal, so it would be much more efficient to use the memory as xdata rather than banked pdata.

If you only need 256 bytes of extra RAM, then reference the memory as pdata, otherwise reference it as xdata.

MORE INFORMATION


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

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.