Keil Logo

C51: PHILIPS P8XC557E8 2KB INTERNAL RAM SUPPORT


Information in this article applies to:

  • C51 Version 5.50

QUESTION

The Philips P8xC557E8 8051 microcontroller features 2Kb of internal RAM. This is divided up into 128 bytes of data, 128 bytes of idata and 1792 bytes of AUX-RAM. Can I use the AUX-RAM in my programs? If so, how do I access it?

ANSWER

Yes, you can use the AUX-RAM in one of these devices. The RAM can either be used as one page of PDATA memory (totalling 256 bytes) or 1792 bytes of XDATA memory.

If you are using the AUX-RAM as XDATA, then make sure you set ARD to 0 to enable the AUX-RAM, and define your variables as XDATA.

If you are using the AUX-RAM as PDATA, then make sure you set ARD to 0 and XRAMP to a constant value. Define your variables as PDATA. Currently only one page of PDATA is supported. It is not possible to locate variables in more than one page of PDATA, so selecting another page by changing XRAMP is pointless and will cause your variables to "disappear".

Setting ARD to 1 accesses external RAM whenever variables in xdata or pdata are used.

SEE ALSO

Last Reviewed: Tuesday, October 24, 2006


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.