This website uses cookies to personalize content and analyse traffic in order to offer you a better experience. By continuing to browse, you agree to our use of cookies. See our Cookie Policy for details. Cookie policy
8051 SERIAL COMMUNICATION
SBUF is the serial buffer register used by the 8051 UART; writing to SBUF starts transmission and reading SBUF retrieves received serial data.
SBUF is the serial buffer register used by the 8051 UART; writing to SBUF starts transmission and reading SBUF retrieves received serial data.
SBUF is accessed at one address in software, but internally the transmit and receive buffers are separate. A write loads the transmit buffer, while a read returns received data. The TI and RI flags in SCON indicate transmit complete and receive complete events.
Beginners often forget to configure TMOD, TH1, SCON, and TR1 for baud rate generation before using SBUF. Another common mistake is not clearing TI or RI after handling serial events, which causes repeated or missed status checks.
Use these related CourseTron guides to connect this topic with the complete embedded systems foundation.
Software sees one SBUF address, but the 8051 uses separate internal transmit and receive buffers.
SCON controls serial mode and status flags, while Timer 1 is commonly used for baud rate generation.