I solve bounce with a sledgehammer ... ... my 'wait for a contact to close' function looks like this; - delay for 100ms - wait for contact to open - delay for 100ms - wait for contact to close This gives me immediate response to a contact closure, and tends to ignore any bounce. Of course, any induced noise may trigger it, but that's not a bounce in my books. I fix noise in other ways. -- James Cameron (james.cameron@digital.com) Digital Equipment Corporation (Australia) Pty. Ltd. A.C.N. 000 446 800