>> http://technology.niagarac.on.ca/students/a/bamyote/ >> >> A bit of googling found this, which uses a start bit, then >> the same sequence. >> I don't remember having a start bit though. > > My first thought is that it could be done much more efficiently with a > _stop_ bit instead of a start bit. All that means is that you check for > byte==0 _before_ transmitting a (unwanted) trailing dash. > > A 0110 0000 > B 1000 1000 > > O 1111 0000 > > S 0001 0000 > > 5 0000 0100 > > $ 0001 0011 > > Seems to work ok... > > --- > James Newton: PICList webmaster/Admin OK, I see how that could work. Clever! Always add a trailing 1 to a character. If, after shifting left, the result is zero, you're done (just shifted the stop bit into the carry). Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist