There is a mechanical method..... have a slider above the buttons with a hole large enough to expose only one button.... then only one button can be pressed at a time. Sorry couldn't resist Steve -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Rick Sent: 26 March 2009 23:02 To: 'Microcontroller discussion list - Public.' Subject: [PIC] Input algorithm advise Looking for advice on a way to insure that only one of four push buttons is active at one time. (IE - prevent multiple button press's) I have 4 pushbuttons on Port A (16F88) and have AND'ed these bits out. The only idea that I've tossed around so far is to rotate the bits and count them.. If count = 1 then only one push button is selected. Is there a better way to do this? Regards, Rick -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist