> > > How does this work for the letter I or H (all dits)? Phoo.. You're right, I didn't remember that correctly. I know I've done it in the past, in a way that the result after shift being all 0 was the end. I encoded Morse in a similar way, but allocated the 5msb for dits and dahs > and the 3 lsb to tell how many of the msb to use. I could handle any > character with up to 5 dits and dahs (which covered the alphabet and > numbers, which is what I needed to do a Morse code identification). This > was done maybe 30 years ago on an MC6802. > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist