This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

P87C51MX on-chip EDATA & XDATA addresses

Hi every one,

The Philips 87C51MX user's manual indicated that the on-chip EDATA ranges from 0x100 to 0xffff; which followed the IDATA.

An article found in the Keil support knowledge base (CX51: LOCATING CODE IN PHILIPS MX INTERNAL CODE MEMORY) showed the following:

---------
User Classes:
EDATA (0x7F0000-0x7F04FF), /*on-chip RAM */

HCONST (0x810000-0x84FFFF) /*off-chip Flash for 'const far' */
---------

How does the "0x7f0000" become the starting address of on-chip EDATA? And where would the on-chip XDATA start?

Thanks.
Deyon

Parents
  • Re: edata in 51MX.

    In the evaluation version (EK51v701) I tried to add "edata" to its main.c file. But the keyword "edata" would not come up blue and bold (other keywords like "data", "idata" or "xdata" would); meaning I can't declare an "edata" this way.

    But the map file, there's a section that showed the EDATA section is defined.

    Any one has successfully used 51MX's on-chip edata? How is creating an "edata" variable done?

    Thanks for your help.

Reply
  • Re: edata in 51MX.

    In the evaluation version (EK51v701) I tried to add "edata" to its main.c file. But the keyword "edata" would not come up blue and bold (other keywords like "data", "idata" or "xdata" would); meaning I can't declare an "edata" this way.

    But the map file, there's a section that showed the EDATA section is defined.

    Any one has successfully used 51MX's on-chip edata? How is creating an "edata" variable done?

    Thanks for your help.

Children