C51: USING PDATA MEMORY
Information in this article applies to:
I'm using a chip with on-chip XDATA memory. I want to use one 256-byte page as PDATA. How do I do that?
Does the upper address byte come from P2?
Accessing a 256-byte page (PDATA) of on-chip XDATA is possible and often desirable since PDATA is more efficient than XDATA.
When On-chip XDATA is Enabled...
To configure the tools for PDATA access, you must...
When On-chip XDATA is Disabled...
Most 8051 devices use the value of Port 2 as the upper address byte for PDATA accesses. With such a configuration, the required startup code settings are nearly identical to the above except that the PPAGE SFR must be specified as PPAGE_SFR DATA 0A0H.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Thursday, January 4, 2007
of your data.