Russell McMahon wrote: > > This is an IR link @ 2400 bps; will try the magic bytes if I need to > "drop" > > more than 16 bytes or so with the frame error sync. > > The most magic of all magic bytes is no byte at all. If you have the ability > to insert such bytes into the data stream then you presumably also have the > ability to pause transmission occasionally. If you pause for 1 word time (10 > bits) (so that the circuit is at logical 1 / mark) then any properly behaved > UART that is monitoring the line will automatically drop into sync when the > character stream is restarted. This is the whole point of async > communications. (Having a longer stop "bit" will also increase > synchronisation capability, but not as well as just stopping sending > occasionally). > > > > > Russell McMahon Adding parity would also help in this respect Regards Sergio Masci http://www.xcprod.com/titan/XCSB - optimising structured PIC BASIC compiler -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads