| ??? 12/27/08 10:00 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#161163 - Loopback? Responding to: ???'s previous message |
Michael Malloy said:
Hi all I am reasonably new to the 8051/2 Are you familiar with any other microcontrollers/microprocessors, or are you completely new to the entire area? I want to know if anyone has come across a piece of code where the person has used the serial port as an 8 bit shift register and used this command
MOV SBUF, SBUF What makes you think that is using "the serial port as an 8 bit shift register"? It looks like a loop-back to me - ie, sending whatever is received on the serial port straight back out again. Remember that SBUF is not just one register, but two: For full details, see the so-called "bible" for the 8051 - cited earlier: http://www.8052.com/forum/read/161162 This is actually quite a common arrangement in all sorts of microcontrollers & other digital electronics - hence my opening question. |
| Topic | Author | Date |
| 8051/2 serial port as shift register | 01/01/70 00:00 | |
| Read the datasheet and look for Mode 0 | 01/01/70 00:00 | |
| The datasheet for YOUR MCU - or not? | 01/01/70 00:00 | |
| it doesn't always work in the same way | 01/01/70 00:00 | |
| True; hence... | 01/01/70 00:00 | |
| Loopback? | 01/01/70 00:00 | |
| serial port as shift register | 01/01/70 00:00 | |
| Insufficient information | 01/01/70 00:00 | |
| cute | 01/01/70 00:00 | |
Not enough Inofmation start from scratch | 01/01/70 00:00 |



