Josh Koffman schreef op 20-Feb-15 om 11:02 PM: > 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? resistor between pin and switch, and connect the progger directly to the=20 pin. This way the progger can 'overrule' the switch. > > 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. I think the LED will put too much load on the pin, so the progger won't=20 be able to raise it to Vpp level. Wouter --=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 .