Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/15/06 04:11
Read: times


 
#110002 - SBUF
Responding to: ???'s previous message
Mariusz Sobkowiak said:

MOV A,SBUF
MOV SBUF,A

???
I think mov SBUF,SBUF should works , am I right?


post below explains why this is written but writing and then writing SBUB does not means reading the same value out, when you write to the SBUF you write to a address multiplexed Serial transmit buffer register, while when you read it comes from the serial receive buffer. their address is same but they are not the physically same registers.

Intel's Manual says:

"The serial Data Buffer is actually two sepatrate registers, A transmitt buffer and a receive buffer. When data is moved to sbuf it goes to the transmit where it is held fro serial tranmission (Moving A byte to SBUF what initiates the transmission.) If data is moved from the SBUF, Comes from the receive buffer."

Abhishek

List of 31 messages in thread
TopicAuthorDate
help on serial communication            01/01/70 00:00      
   OK            01/01/70 00:00      
   Check this            01/01/70 00:00      
      Writing to SBUF            01/01/70 00:00      
         where?            01/01/70 00:00      
            Link            01/01/70 00:00      
               Where did he call it "tutorial" in his p            01/01/70 00:00      
         Loop back            01/01/70 00:00      
         SBUF            01/01/70 00:00      
         formally, yes            01/01/70 00:00      
   some books            01/01/70 00:00      
      A little more detail?            01/01/70 00:00      
         Andy, have a look at BOOKS on the left            01/01/70 00:00      
            If a poster assumes that everybody has            01/01/70 00:00      
               I have not read the books, but...            01/01/70 00:00      
               Yes, but            01/01/70 00:00      
   here we are            01/01/70 00:00      
      Tautology            01/01/70 00:00      
      Formatted            01/01/70 00:00      
      about code            01/01/70 00:00      
   about the code            01/01/70 00:00      
      push/pop in isr            01/01/70 00:00      
         the most often forgotten push/pop            01/01/70 00:00      
   hi            01/01/70 00:00      
   about the code            01/01/70 00:00      
      this can NOT be your question, elaborate            01/01/70 00:00      
         re: about the code            01/01/70 00:00      
            Serial EEPROM            01/01/70 00:00      
               Yes Jon            01/01/70 00:00      
               re more            01/01/70 00:00      
            sometimes the simple becomes complex            01/01/70 00:00      

Back to Subject List