|ARM Technical Support Knowledge Articles|
Applies to: C51 C Compiler
Information in this article applies to:
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?
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.
Article last edited on: 2004-06-08 12:52:27
Did you find this article helpful? Yes No
How can we improve this article?