Bah, hit SEND too soon. As I was saying... 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. One other large advantage of matching on a series of 1's followed by a single 0 is that the routine is more reliable; if the key bounces on RELEASE, matching on "11110000" will fail. -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.