Can anyone tell me how to connect reed switch to 89c51? I directly connected the 2 ends of the swtch to vcc and ground. but the switch is not functioning properly.. on application of 5 volts..as i bring magnet near to it..internal mechanism of the swtch gets short... when i remove the magnet, it remains short, doesnt go to its original position, what to do?
Thanks a lot all of you guyss.. My reed switch is working properly with 5v supply with a 10k resistor in series ... Thanks a lot for the help..