I don't have an ICD2 so I don't know about the specifics, but in general for ICSP programming and debugging: > > I would like to be able to use ICD2 for both programming and debugging > in the 16F88 clock I'm working on without sacrificing 3 pins to ICD2. > (1) Can I set Vpp/MCLR to internal MCLR and put a N.O. pushbutton switch > on that I/O pin to gnd and still use ICD2 or must I give up this pin for > I/O? (i.e. are the configuration bits related to only uC operation or > do they have programming and debugging meaning? It should still work for programming, as long as you don't press the button while programming is in progress. I believe debugging doesn't use MCLR (besodes for reset) although I could be wrong. > (3) If internal MCLR is selected can ICD2 be used in debugging only mode > (i.e. Vpp will no longer be available)? I don't think debugging uses MCLR, although someone with more experience with debugging might want to confirm it. > (3) On the two (PGC & PCD) communications pins can I put a 100 K > resistor to +5v and N.O. pushbutton switches to ground and still use ICD2? 100K pullup resistors shouldn't affect comms, but if you press the buttons while debugging it will probably stop working. To sum it up, weak resistors etc shouldn't affect anything, and as long as anything else connected to the lines is floating during programming it should work. For debugging you pretty much have to dedicate RB6/7 though. > > Thanks for any thoughts, > > Brooke Clarke > -- Hector Martin (hector@marcansoft.com) Public Key: http://www.marcansoft.com/hector.asc -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist