> Can someone please tell me a way to connect > eight momentary action pushbuttons to a PIC so > that each button will light a corresponding LED, > while locking out the other seven switches and their > respective LEDs? This will be used as the basis of a > kind of 'quiz-game adjudicator' to detect the > first button press only Hi, I would use a 16F84 and set PORTB as all inputs and wait for a button in a short loop. As there is a possibility of a tie (more than one button in 10uSecs), you would need to arbitrate and a random pick would probably do OK. After a button is detected, I would then change PORTB winner to an output and display the winning LED. There would be some hardware considerations to stop the buttons from operating the LEDs. Then a reset button, using PORTA would start over again. Jeff Johnson http://home.dialix.com/~u2263/index.htm __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body