> >> Easy method: check the buttons only each xxx ms. > >> > > You know this is dead simple, and I cannot think of any criticism of > > it. Nobody has commented otherwise, have they? > > It more-or-less require that you have a timer interrupt available, Absolutely not. I very very seldom use interrrupts at all, and if I use interrupts it is to simulate some peripheral, like a UART with a FIFO buffer. User interaction IMHO belongs in the main loop. I often use 10 or 50 ms as the main loop cycle time. I that cycle time is fatsre than the debounce time, I simply check the buttons once in N loops. 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