i am using PIC controller which senses a digital input through a switch. switches are pulled up to 5 volts. (PIC requires gnd voltage to sense the digital sensor). i want overcurrent protection for that switch (in case of short circuit). can i use LM317 as a switch which also gives constant current to pic input pin? or any other circuit that i can use for this project.
thank u in advance.
thank u in advance.