??? 06/09/09 15:54 Read: times |
#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 |
Topic | Author | Date |
AT89c51cc01 and External memory (keil/C51) | 01/01/70 00:00 | |
Cross posted | 01/01/70 00:00 | |
Is your problem with FLIP ? | 01/01/70 00:00 | |
No, think it's keil compiler | 01/01/70 00:00 | |
Sounds like an error in the data sheet | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
Itterations | 01/01/70 00:00 | |
just won't get flashed into the µc?? | 01/01/70 00:00 | |
The compile will compile what you tell it | 01/01/70 00:00 | |
RE: your example does not access any xdata at all | 01/01/70 00:00 | |
RE: Rob Stoffels said:I think there is something that needs | 01/01/70 00:00 | |
Going to try something different | 01/01/70 00:00 | |
Broken Boards? | 01/01/70 00:00 | |
Memmory mapping question/ Bord fixed | 01/01/70 00:00 | |
If I read this correctly | 01/01/70 00:00 | |
Missunderstanding | 01/01/70 00:00 | |
xdata will just be whatever EXTRAM says | 01/01/70 00:00 | |
do you have any external RAM?![]() | 01/01/70 00:00 | |
CC03 is working | 01/01/70 00:00 |