> The only thing I would worry about is noise causing a "false" > button push. OK, I had to compensate for that once. But that was because the user input was an "N-resistors shorted by normally-closed-pushbuttons" style input. Hence A/D conversion, with thye risk of intermediate values due to capacitive effects and other analog trouble. But IMHO if you get false button-closed readings there is something seriously wrong in your hardware design. Using a counter might help for the buttons, but is that the only inputs to your system? Or do you use counters for the UART, I2C, SPI, LCD etc. too? And do the chips at the other end also implement such counters? Better find and solve the real problem than mask it in software! Now if what you get are flse *open* readings I might have some sympathy. With you, not with the buttons involved. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist