Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

What is the use of sbuf in 8051 ?

Status
Not open for further replies.
Re: sbuf in 8051

it is the serial data buffer.
when you want to transmit in serial mode write 8bit data here.
it will get transmitted serially in Txd.

when 8051 receives serial data in Rxd , it assembles and put the 8bit data here for reading.
 
Re: sbuf in 8051

to receive character:
if(RI)
{
byte = SBUF;
RI = 0;
}

to transmit character:

SBUF = byte;
while(!TI):
TI = 0;
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top