Here is a possible solution posted by Microchip support, hope it will help: Resolution Thanks to Toley for sending me a few of the problem PIC16F88 parts. This problem is unique to 18-pin parts that share the Timer1 oscillator with the PGx programming pins. Parts included are the PIC16F88, 87 and possibly the 818, 819, 62xA, & 648A. The problem occurs when the device is programmed so that: 1) It uses the internal oscillator -and- 2) The MCLR pin is turned off to use as a digital input instead -and- 3) The program code enabled the Timer1 Oscillator in the T1CON register. (The sooner this is enabled after the reset vector the more likely the problem is to occur. This problem can be prevented by avoiding one of the 3 conditions above. It is possible to recover parts with this issue. To do so, follow these steps in the PICkit 2 Programmer software: A) Put the part on a breadboard or other jig where it is only connected to the 5 PICkit 2 programming signals. B) Open the PICkit 2 Programmer application v2.40 (or later). Select "Device Family > Midrange" C) Set the PICkit 2 Programmer VDD voltage box to 3.0 Volts D) Select "Device Family > Midrange" again; it should now detect the part E) If the part is not detected in D), reduce the VDD by 0.1 volts and try again. Repeat until the part is detected. F) Select the WRITE button. It should now erase the part. You will now be able to program & use the part normally at 5.0 Volts VDD. Funny N. Au Group Electronics, New Bedford, MA, http://www.AuElectronics.selfip.com ----- Original Message ---- From: Dro Kulix To: piclist@mit.edu Sent: Saturday, February 9, 2008 6:12:14 PM Subject: [PIC] PICkit 2 doesn't work with crystal in application circuit Hiya, folks... I have an application circuit including a PIC16F88 and a 20MHz crystal set up on a breadboard. The circuit works, but the PICkit 2 programmer I'm using won't recognize or reprogram it as-is. By process of elimination, I've found that the programmer consistently works when the crystal is removed, but consistently fails when the crystal is in place. The crystal is connected to the CLKI and CLKO pins, each with a 22pF cap bridging to ground. Both the application circuit and the programming problem remain unchanged whether or not the caps are present. The workaround I'm currently employing (remove/replace as necessary) will cease to work when I've moved from the breadboard to something more permanent. Is there something I can do to get the Pk2 working while the crystal is still installed? Thanks dro -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist