> I searched everywhere I could thing of and did not find John's code > or yours :-( Could you post some reference to it or repost the code ? It is > a very interesting technique and I would love to see how you approached the > "clock recovery".. I use bit-bang a lot for serial comms but never thought > about using a bit buffer to make a better decision about the timing... I'd be interested too. I've used a single pin with my "pong" routine (Ping just blips a bit N times) to output multiple bytes in wide-narrow form, such that for any combination of timings, the byte is the same length. Helps enormously when you're capturing say 50 bytes of data on the scope. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist