Here is what I suggest: use 8 output pins one input pin pull down the input with a 10k resistor every output pin is connected to the input pin thru a switch the switchs also have an led and resistor connected to ground on the side opposite from the output using 1/8 duty cycle, set each output pin in turn to 5v at this time also set the other outputs to inputs if someone presses a switch, 5v is detected at the input, so the code should pause until the 5v is gone. the led will light on the switch press. ----- Original Message ----- From: "Jinx" To: Sent: Sunday, April 15, 2001 3:58 AM Subject: Re: [PIC] %5BPIC%5D%3A Can someone please tell me a way to connect eight momentary action pushbuttons to a PIC so that each button will light a -------------------- It depends on which PIC you want to use and what else is connected to it. For example, doing this on a 12C508 is possible but would involve external circuitry. An F84 or other mulitport PIC could do this on it's own. Although an F84 or one with a similar number of i/o pins would perhaps be configured to use the most number of i/o pins that would reliaby detect the first pushbutton press, and then maybe use either the same i/o as LED drivers, or alternatively multiplex the LEDs with an external shift register. If you can specify a particular PIC, then it will be easier to make suggestions Apologies for the drift into HTML if you can see it, the original post must have it turned on. My mail program is set to plain text -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body