At 08:51 AM 2/9/97 -0500, you wrote: >I hav been trying to get reliable serial communications on a 16C57 for >a while now, an almost have it working. The problem is that it doesnt >seem to get the first 3 bytes ok, they are always the same relative to >the data but wrong. > >Here is what I should receive: > > 36h 32h 30h 32h 30h 38h > The rest is ok. > This is what I get: > > 4dh 4ch 4ch 99h 98h 38h > >Can someone tell me whats wrong? > >Data rate is 2400 baud, Total bessage is 32 bytes, I only need the first >16. > >-- >Alan Nickerson You may have a slight problem in timing, especially in processing each byte after it is received -- appears you may be missing a start bit or something. If you write out the bit pattern of what the data should be, least significant bit first from left to right on paper and insert a "10" between the bytes for the stop/start bits, and then a similar bit pattern of what data was received right below it, then you'll see that you are receiving the data bits but out of frame sync. (Whew! what a sentence!) The resultant data patterns will be skewed from each other. What algorithm are you using? Looks like you are *almost* there. Good luck. Don L. Jackson / Gilbert, Arizona Azark Consulting Group