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; } }
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...