On Fri, Feb 20, 2015 at 5:21 PM, Dwayne Reid wrote= : > Use a series resistor between the PIC pin and switch pull-up resistor > / switch contact node. Yeah - your system will ignore the switch > while debug is going on. You will have to work around that issue. It's actually a quadrature encoder, and it's 1 of 4, so I can deal with missing one of them in debug I think. > I haven't used this particular PIC but on the PICs that I do use > (PIC16F family), MCLR is input only. It won't drive a LED. But: you > can simply swap one of your switches onto MCLR if needed. Again, the > series resistor will isolate the pin from your switch. Ah nuts, you are right. That's a bummer. 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 .