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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/26/08 21:48
Modified:
  12/26/08 21:50

Read: times


 
#161143 - 8051/2 serial port as shift register
Hi all I am reasonably new to the 8051/2 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

it does not make sense to me at all I have done a lot of searching but maybe looking in the wrong places? I don't understand what this would do I know you could hold the data in the buffer ect but can anyone else please tell me why you would do that and for what application, does anyone know of any good code that I can look at that uses the serial port as a shift register I can find plently of code on UART etc but nothing on using the serial port as a shift register ??
if you use that command how can you get any data into the RAM ??
Many thanks
Mikee

List of 10 messages in thread
TopicAuthorDate
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      

Back to Subject List