Society of Robots - Robot Forum

General Misc => Misc => Topic started by: rainbow fox on July 01, 2014, 10:49:57 PM

Title: Microcontoller input and output, serial-synchronous/asynchronous for dummies.
Post by: rainbow fox on July 01, 2014, 10:49:57 PM
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.
Title: Re: Microcontoller input and output, serial-synchronous/asynchronous for dummies.
Post by: waltr on July 02, 2014, 08:41:59 AM
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.