N STEENKAMP [M.ING E&E] wrote: > Since nobody's mentioned it yet, there is the debouncing system that uses > parallel counters to debounce buttons. It uses simple boolean logic to > low pass filter 1 to 8 inputs. It has the advantage of requiring only > one counter (spread over two bytes) and can debounce up to 8 inputs > simultanously. > I found it on 'n PIC related web page a while back - I cannot remember > the URL or the original author anymore, but it really works well. Niki, I mentioned it yesterday - at least indirectly. The URL (again) is: http://www.interstice.com/~sdattalo/technical/software/pic/debounce.html And if you're interested in changing the debouncing window width, then check out these other boolean logic counters: http://www.interstice.com/~sdattalo/technical/software/pic/vertcnt.html Scott -- __o I buy pizza instead of gas. \< (*)/(*)