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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/07/06 03:06
Read: times


 
#111466 - Synchronously or asynchronously?
Responding to: ???'s previous message
Jeff said:
I will like to know how to make a subroutine for the 8051, to receive a byte, bit by bit on a port pin and put it into r3. Not RS232 communication. What I am looking for, if the port pin is seeing the 1's & 0's that make up a byte, to be able to bring this into the Micro and form the byte, then put this byte into r3.

It's not enough to read a Port pin repeatedly and form a byte after 8 recieved bits. But it's mandatory to know when the bits will arrive!!
In the case of RS232 transmission, normally the baud rate is known. So, if the UART recieves the first falling edge of a frame, then it "knows", when the bits will arrive and it will read the recieving bits at the right time.
If no such baud rate is known, then you need some sort of synchronisation, means you need an additional signal line, which tells your micro, when each individual bit will arrive.

As long as you don't tell us, whether you use a synchronous or asynchronous signal transmission, all your asking for code is meaningless!

Kai

List of 32 messages in thread
TopicAuthorDate
Bit by Bit            01/01/70 00:00      
   how about the full story            01/01/70 00:00      
      Re;            01/01/70 00:00      
         Then convert it            01/01/70 00:00      
            How to Convert it            01/01/70 00:00      
         wotisit            01/01/70 00:00      
            Standard Async?            01/01/70 00:00      
               RS232?            01/01/70 00:00      
   The answer is in the question            01/01/70 00:00      
      Re:            01/01/70 00:00      
         with what            01/01/70 00:00      
            Re:            01/01/70 00:00      
               not INNER working            01/01/70 00:00      
                  this REALLY smells            01/01/70 00:00      
         good start            01/01/70 00:00      
            reverse-engineering            01/01/70 00:00      
               more likely a disassembly            01/01/70 00:00      
                  Illegal ?            01/01/70 00:00      
                     the disassembled chip most likely read c            01/01/70 00:00      
            Insufficient!            01/01/70 00:00      
               Wonderful, this is great            01/01/70 00:00      
         Up one level            01/01/70 00:00      
            already said?            01/01/70 00:00      
   Synchronously or asynchronously?            01/01/70 00:00      
      Re            01/01/70 00:00      
         If it keeps you happy...            01/01/70 00:00      
            of course it does            01/01/70 00:00      
         I give up!            01/01/70 00:00      
            Kai, how stupid we are            01/01/70 00:00      
         I want an electrified keyboard            01/01/70 00:00      
            Jez, don't you get it TO ALL NEWBIES            01/01/70 00:00      
               I'm touched!            01/01/70 00:00      

Back to Subject List