If you pull the pin ( attached to the switch ) to ground through a 10K resi= stor, the programmer/debugger should be able to override the 10K resistor. You can drive the LED with resistors and a transistor interposed to make th= e impedance the MCLR/RE0 pin sees as high as you want. Gus in Denver On 2015m02d20, at 15:02, Josh Koffman wrote: Hi all, I'm working on a design for the 18F25K22. Normally I like to dedicate my PGD/PGC pins to ICSP usage only. I also generally use external MCLR. However, I'm really short on pins. 3 pins actually. I know I can use PGD/PCG in circuit. I've never used them as inputs though. I realize I will probably have trouble actually using the switches assigned to them while debugging, but any other snafus? How do I provide for the possibility that the switch might be closed, pulling the pin to ground when I need to program/debug? And how about an LED indicator on MCLR/RE0. Good or bad idea? Seems like it should be ok, but I wanted to check to be sure. Josh --=20 A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .