Scott Dattalo wrote: > Since Bob said he looks for the pattern 11110000, then this > pattern will get ignored. Using Bob's technique, I think it'd be > more appropriate to look for an all 1 or 0 pattern (or for > n-consecutive 1's or 0's). Perhaps he meant to say that he looks > for 1111XXXX? Scott: In Bob's email, he said that he uses "11110000" because he acts on a key only after it's been pressed AND RELEASED... So "1111xxxx" wouldn't work for him. If it were me, though, I'd probably use "11111110" (or "xxx11110", if four consecutive "1" samples were enough to guarantee a debounced keypress), in order to lower the latency between the key-release and the action. -Andy === Andrew Warren -- aiw@cypress.com === Principal Design Engineer === Cypress Semiconductor Corporation === === Opinions expressed above do not === necessarily represent those of === Cypress Semiconductor Corporation -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.