Dwayne Reid schreef op 02-Feb-14 7:12 PM: > Generally, I reset a timer every time a new byte comes in. When the > timer expires, I consider that to be the end of the packet. > > That works pretty well for me but in my case, the bytes are fairly > close to each other, and the time between packets is much longer than > one byte time. This doesn't work if the packets are really close togethe= r. > > And you'll get in trouble when an usb-to-serial converter is used. Wouter --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .