There is a reed switch connected to a cable and it is connected to portb = of the PIC. PIC is on battery voltage of 3 or 3.6 (lithium). I have = been reading the pulses generated from the reed switch when magnet is = brought near. I have two questions: * There seems to be no need for debouncing, should I still debounce? * What is the ideal resistor value to be used (note that the system = needs low power consumption) * If the cable between the pic and the reed is about 100meters, (makes = 200 meters of total distance from one pic pin to reed and from reed to = ground) should the above resistor value be changed? Would I need any = other parts like schmitt triggers etc.)? Any help is appricated, Omer -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body