On Thu, 24 Jan 2008 22:07:24 -0700 Bob Axtell wrote: > Ooo, I like this one. If the protocol is 8/N/1, 10 bits, then the > average brightness would indeed be > constant.... Why not use NRZ(i) code? That code was designed to be 'constant' intensity, be it for magnetic media. It has the added advantage that it contains a clock, and polarity is unimportant. Easy to decode and encode too. John -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist