On a previous post, it was suggested that a 100K to 1 Mega Ohm resistor be used to reduce a 24 VAC signal to a level safe enough for PIC16F690 to detect when the 24 VAC signal is on. A 100 K resistor works great when I troubleshoot the circuit without a debugger; however, when I use Pickit 2 debugger, the debugger does not recognize when the 24 VAC signal goes high (it does recognize a high signal when I tie the input pin to 5 VDC). I am trying not to fry my debugger. Should I reduce the resistor size to allow enough current for the Pic to recognize a high signal? If so, how do I calculate the correct resistor size?