• changing buffer from data to xdata
    The following code fragment has been running for three years on an Atmel 89c55 with no problems. Now that I have started a project using the Cypress EZ-USB FX chip I would like to move the fifo buffer...
  • 89C51IC2 Xdata issue
    Hi , I m working on 89c51Ic2. I have created a variable like as below unsigned char xdata buffer1[256] ; unsigned char xdata buffer2[256]; void initBuffer(void) { unsigned char i=0; for(i=0;i...
  • Xdata
    Hi Can someone tell me how does XDATA works? I got the code below but i do not understand how can a simple code like #define Port_D XBYTE [0xFFA0], define Port D and what input or output goes to which...
  • XDATA
    #include <REG668.H> #define on_XRAM() AUXR = 0x01 #define off_XRAM() AUXR = 0x02 sbit Led_Bit = P2^4; void delay(unsigned long us) { off_XRAM(); while (--us > 0); on_XRAM(); } void...
  • Issues with External RAM and xdata declaration ...
    Hi guys, I have my code defined in the uVision interface as LARGE and the memory model as SMALL, however, if I try to run the program with the memory model LARGE the program does not run (if everything...