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?
I havent yet connected it to the microcontroller. I am basically testing the reed switch. I have connected the 2 terminals of it to vcc and ground. and when magnet is brought near the switch, internal switch gets short which is correct. on removing the magnet, it should get open, and this is not happening... can u tell me the reason and help me
Check the Keil manuals. Search for "reed-switch". If you don't find it, it's likely not going to be a Keil related problem and therefore not a relevant question for the Keil forum.