I believe I'm doing something incorrectly, probably relating to how I initialize and tell keil where RAM memory resides at.
I'm using the latest version of uVision and C compiler. The P89C668 has 8k of onboard RAM.
As I understand it, the P89C668 has the normal 256 bytes of 'internal' RAM and the rest is accessed as XDATA. So once setting Keil up, I edit the startup such as:
I run this on my emulator and it works perfectly everytime.
Now, I change the data to xdata as follows:
unsigned char xdata lcdbuf[2][16];
Now when I run the program on my emulator, I get all blanks on the LCD, as if the memory were not accessed correctly. Being that was the only thing changed, I'm convinced it's some RAM setting somewhere.
Any ideas about what I could be doing incorrectly?
Thanks
James
Read-Only
Author James Corbin
Posted 6-Jul-2003 23:01 GMT
Toolset C51
RE: Declaring RAM areas for P89C668 (xdata problems)
James Corbin
BTW, it seems to simulate correctly (the reading\writing xdata part).
Read-Only
Author James Corbin
Posted 7-Jul-2003 02:20 GMT
Toolset C51
RE: Declaring RAM areas for P89C668 (xdata problems)
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.