• Reading/Writing external memory using xdata
    I like to know how to read external memory using xdata .I've tried like this unsigned char xdata *PORTA=0X8000; unsigned char xdata *CW=0X8003; unsigned char val2, val3; val2=0X80; CR=&val2; val3=0X50;...
  • Problem writing DWORD xdata
    I just noticed this recently... whenever I have a xdata DWORD - 32 bits - and I try to set it to a constant value (or any value I think), the assembly that gets generated seems all messed up for such...
  • Read and Write
    Hi Since I want to set three input and one output so my code would be like that: //Configurations sbit READ_1=P1^0; sbit READ_2=P1^1; sbit READ_3=P1^2; sbit SEND=P1^3; READ_1=1; //INPUT...
  • can't read sbuf on debug
    Hi, how can I read SBUF while debugging? R_serial () interrupt 4 { if(RI) { serialR = SBUF; RI=0; CompDataRx[count]=serialR; count++; } else TI = 0; } when I put any value in SBUF...
  • Writing to 8255 Ports using xdata
    Hi,I'm using 8051 microcontroller and am new to c51 coding.Somebody pls help me how to write to 8255 using c. Thanks, lina