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

FLIP won't upload program using XDATA, AT89c51cc01

Hello,

I'm using a AT89c51cc01 and would like to add external memory.
The code compiles but i can't get it loaded into the µc.
Could annyone assist me with this?
Kind Regards
Rob

#include "t89c51cc01.h"
#include "absacc.h"

unsigned char xdata PA _at_ 0x800;   //Assign PA to xdata location 0x800

main (void)
{
AUXR=0x0F;     //activate EXTRAM
while (1)
{
PA=0xFF;
}
}

Parents
  • Cross posted
    8052.com/.../165953

    Hello,

    I would like to address external RAM.
    I've used Chriss Hills C51 primer, and the µc datasheet as guidance.
    the only problem encountered (so far) is that i can compile the code
    but when trying to write the hex file it fails...
    Are there any special compilation paramters you have to take into account?
    I've tried using the XBYTE function but here I also encounter the same problem.
    Can someone tell me some pointers that could help me find the answer?

Reply
  • Cross posted
    8052.com/.../165953

    Hello,

    I would like to address external RAM.
    I've used Chriss Hills C51 primer, and the µc datasheet as guidance.
    the only problem encountered (so far) is that i can compile the code
    but when trying to write the hex file it fails...
    Are there any special compilation paramters you have to take into account?
    I've tried using the XBYTE function but here I also encounter the same problem.
    Can someone tell me some pointers that could help me find the answer?

Children