• Reading from SBUF in simulator (Serial communication)
    Hello, I am not able to receive the value of SBUF into a char. The part of code is shown below. Always when I try, the value is 0x00. I will be obliged for helpful commends. SCON = 0x50; char...
  • reading Sbuf
    Hello, in my project work I want to read serially received data continuously and compare it with stored ID in MCU I am using 8051. If the ID match then Green LED will glow, for ID mismatch Orange LED...
  • Reading SBUF
    unsigned char GetSerial =0; SCON = 0x50; /* SCON: mode 1, 8-bit UART, enable rcvr */ TMOD = 0x20; /* TMOD: timer 1, mode 2, 8-bit reload */ TH1 = 0xfd; /* TH1: reload value for 9600 baud */ TR1...
  • 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...
  • problem in reading SBUF
    my first Q is, while simulating in KEIL does it not able to read the SBUF. when i am simulating the program and i make RI high then it goes to the intrupet and then put SBUF= any value like SBUF='s...