piclist 2001\01\10\181045a >
Thread: Bit banging Asynchronous Serial Communication
face BY : David Huisman email (remove spam text)


Use Interrupt to detect low going START BIT.

Wait 1/2 Bit period

If BIT still low then start BIT is valid

If valid, wait 1 BIT period and read data BIT (x 8)

wait 1 final BIT period and read BIT. If high then STOP BIT is valid - Word
is OK

To improve reliability, you can sample quickly multiple times at sample
points. ie. say sample 3 times at 8 times BIT rate and 2 out of the 3
samples indicate valid state.


David Huisman

http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email KILLspamlistservTakeThisOuTspam.....mitvma.mit.edu with SET PICList DIGEST in the body

<008401c07b58$8f15c140$3c00a8c0@advminingtech.com.au> 7bit

See also: www.piclist.com/techref/io/serials.htm?key=serial
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Bit banging Asynchronous Serial Communication

month overview.

new search...