Aug 6, 2010 #1 C coolsinduarun Newbie level 3 Joined Aug 6, 2010 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,296 what is the use of sbuf in 8051
Aug 6, 2010 #2 S srizbf Advanced Member level 5 Joined Apr 3, 2010 Messages 1,992 Helped 417 Reputation 840 Reaction score 329 Trophy points 1,363 Activity points 10,985 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 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.
Aug 7, 2010 #3 BurnOut_tesla Advanced Member level 4 Joined Mar 5, 2010 Messages 113 Helped 24 Reputation 48 Reaction score 16 Trophy points 1,298 Location India,Mumbai Activity points 1,865 Re: sbuf in 8051 to receive character: if(RI) { byte = SBUF; RI = 0; } to transmit character: SBUF = byte; while(!TI): TI = 0;
Re: sbuf in 8051 to receive character: if(RI) { byte = SBUF; RI = 0; } to transmit character: SBUF = byte; while(!TI): TI = 0;