Bob Ammerman wrote: > This is not the case if you start 'listening' to the data in > mid-stream. Your receiver can easily get confused about what is a > start bit, and end up with a bunch of framing errors. This is usually > self correcting after a reasonably short period of time, but I have > seen cases where it went on merrily out of sync indefinitely (it all > depends on the data and the receiver implementation.) Note that a single 0 or FFh byte forces byte synchronization. Each of these contain only a single rising edge, which is the leading edge of the start bit. There are a total of 9 codes that have this property. Any one of them will guarantee byte synchronization for the following byte. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics