• I can't read the SBUF. The local variable don't receive the value of the SBUF. Thank you very much f
    void getSBUF() interrupt 4 using 1 { char temp = 1; temp = SBUF; RI = 0; }
  • I can't read the SBUF. The local variable don't receive the value of the SBUF. Thank you very much f
    void getSBUF() interrupt 4 using 1 { char temp = 1; temp = SBUF; RI = 0; }
  • 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...
  • SBUF Funny!!
    This is a bit of funny one (see code below). Basically (1),(2),(3),(4),(5) and (6) all transmit their data successfully via SBUF. This was captured by Hyperterminal. However (7) only transmitted correctly...