go away spammer

Author Topic: Microcontoller input and output, serial-synchronous/asynchronous for dummies.  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

Offline rainbow foxTopic starter

  • Jr. Member
  • **
  • Posts: 8
  • Helpful? 0
I apologize in advance if this seems quite tedious, However I am quite confused with the way robotic I/O works as well as synchronous/asynchronous and I am having a hard time trying to understand them. Please if anyone would be so kind as to explain these three things in a way a beginner can understand I would be incredibly grateful. Thank you for your time.

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 99
Async requires strict timing on the sending and receiving sides. Each bit has a fixed time period that both sides know. It also uses a START bit to tell the receiving side when the data stream starts.

Sync uses a clock, typically on another wire, that synchronizes the sending and receiving side timing. This way the receiving side knows when a bit is valid from the state of the clock signal.

Now go do some web searches and reading. It can help tremendously if you draw the bit pattern wave forms and send/receive data with pencil and paper. It is not that difficult once you spend the time the understand the concepts.

Then try writing code to do serial transfers by bit banging.

 


Get Your Ad Here