If its in a socket, make sure the orientation is correct...pin1 where pin 1 is marked on the board silkscreen. Measure the voltage on the part...is it whats expected? 5V or 3V3? Did you build this board yourself...also make sure the MCKR pin has a pull up on it, no cap. Check the programming header ...good solder. AND...are you sure you have pin 1 of the connector on pin1 of the header? ususally you get something back of a device ID of 0 for that.
every time I got that error it has been due to either
1) incorrect wiring between programmer and chip.
2) target board not powered
Check your wiring from the programmer to the chip.
Use a meter to check that the following pins on the programmer go to the correct pins on the chip:
PicKit2-Function-16F688
Pin 1-VPP/MCLR-Pin 4
Pin 2-VDD (positive voltage)-Pin 1
Pin 3-VSS ("ground")-Pin 14
Pin 4-ICSPDAT/PGD-Pin 13
Pin 5-ICSPCLK/PGC-Pin 12
I use a PICKIT 3, but they are essentially the same. Make sure the programmer is supplying the voltage and its set to 5VDC.
If you are using a clone PICKIT 2, I would recommend buying a real PICKIT 3, its only $50 at Sparkfun. I used a Chinese clone for a couple of years and it just failed one day. Never had a single problem since I bought the real thing. And I use it a lot - not just for Christmas Light boards, but boards of my own that I design and build. Just my two cents.
It won't let me install that .dat file. Get that voltage error. Tried all the USB ports on my computer and they all do the same thing.
Well I figured it out finally. The ribbon cable to the zif socket was on backwards. :bomb: Thanks for all the help. Man it is the stupid stuff sometimes.
