• Reading into SBUF is SLOW
    # include <stdio.h> # include <aduc842.h> #pragma registerbank(2) void sendmoduleinit(void); void InitByte_Char (volatile unsigned long); void print2uart_hex(int); void displaytemp1(void); void...
  • reading from sbuf
    This is for all of us who were facing problem of reading from sbuf.....keil does not show the value getting transferred from sbuf to variable but the code works when implemented on hardware....We were...
  • 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...
  • simulation of sbuf
    SBUF is not a regular register: when you write to it you send a character on the serial line, and when you read it you empty the serial line buffer Keil simulates sbuf like if it was a normal variable...