i want to ask about this matters..i have a 12V switch..and i would like to interface it to a pin from any port of PIC16f877a..
inside the switch have the 12V led..so the switch is a (push button + 12V led)..i dont know why in the catalog i buy from it said switch

anyway..whenever the PIC gives an output it means that 5V output right?so how i'm going to connect this switch so that it can be turn on the led (output) and i can press the switch(to give input) to the pic...can it be done on a single PIC pin??
what are the device i need to connect between the PIC and the switch??