Bit banging Asynchronous Serial Communication
Bob Ammerman email (remove spam text)
I have had excellent results polling the serial line in a timer interrupt
routine at a multiple of the bit rate.
You need to sample at at least 3x the bit rate, and more is better.
3x works very well with a directly connected async, or when talking to
modern smart modems.
Old 303, 202 or 212 modems often do not accurately recover the timing of the
input signal so I'd want more samples per bit time to help me catch the
'middle' of the bits in this case.
This would also apply in any environment where the bits can be delayed,
especially if rise and fall time are not equal (eg: an 'open-collector' bus
(contract development of high performance, high function, low-level
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email mitvma.mit.edu with SET PICList DIGEST in the body listserv
See also: www.piclist.com/techref/io/serials.htm?key=serial
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the