| Rob Stoffels 06/09/09 10:54 Read: 716 times Westerlo Belgium |
#165953 - AT89c51cc01 and External memory (keil/C51) |
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?
#include "t89c51cc01.h"
#include "absacc.h"
volatile unsigned char xdata PA _at_ 0x0800;
main (void)
{
AUXR=0x0F; //Enabling EXTRAM and toggling ale only on MOVX commands
while (1)
{
PA=0x55;
}
}
FYI these tests are just as a step up, I would like to program 16 memory mapped devices this way, but prefer to start "easy" ;) Kind regards Rob Cross posted: http://www.keil.com/forum/docs/thread14991.asp |



