We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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; } }
Cross posted 8052.com/.../165953
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?
that i can compile the code but when trying to write the hex file it fails.. assuming Keil tools (it is posted here) 1) the linker makes a file (.omf) 2) bin2hex convert .omf to .hex
Erik
Could annyone assist me with this?
No. You're making it impossible to assist you by keeping all the details to yourself.
The code compiles but i can't get it loaded into the µc.
So what happens when you try? How do you know it didn't load into the microcontroller?
I already have the hex file to be loaded into the µc. when flip reaches the program cycle i receive the timeout. replacing the PA=0xFF; with P0=0x00 (enabling led) does get programmed in the device.
I don't know what other details i could supply. According to the data sheet ist's "just" enabling EXTRAM bit and the compiler should use the correct MOV commands which results in enabling P0,P2 rd, WR and ALE...
I've been busy looking at the keil example program describing the use of far memory (3 XData Areas on T89C51RD2) and noticed there is used another A51 file (instead of the startup.A51). Will go into this further tomorrow and see if that yields any answers...