PDA

View Full Version : trouble programming my PIC



mikekowdley
01-09-2011, 04:54 PM
Hi all, I'm having some trouble programming my PIC and I was wondering if anyone has had a similar issue.

First, I am building a Renard 16SS (my first board ever). I bought the PIC programmer from j1sys, and it is the PICkit 2 with j1's ICSP14 Adaptor. I'm running Windows XP. I installed the software that came on the j1sys mini CD (PICkit 2.61, although I had the same problems with 2.5, and MPLAB 8.64, although I had the same problems with 8.46).

I have the PIC16F688 in the ZIF socket on the adapter board. The circle on the ship is at the same corner as the triangle on the board. I have the ribbon cable connecting the PICkit device to the adaptor board. At both ends of the ribbon cable, the triangle on the cable matches the triangle on the board / PICkit. USB cable is connected and the USB port works properly. I was able to load the PICkit OS 2.32 onto the device. So that's the list of things I think aren't broken.

I was able to build the HEX from the ASM using both MPLAB IDE and MPASMWIN without any problems. But I cannot load the HEX file onto my chip.

- When I try to load it with PICkit 2 v.2.6, I get the message 'PICkit 2 found and connected'. However, 16F688 isn't available in the drop down list of Devices. It only shows 16 devices, and none of them are 16F688. Is there a configuration file that I need?

- When I try to load the HEX using the MPASM IDE, I connect to the device and I get the message
Initializing PICkit 2 version 0.0.3.63
Found PICkit 2 - Operating System Version 2.32.0
Target power not detected - Powering from PICkit 2 ( 5.00V)
PKWarn0003: Unexpected device ID: Please verify that a PIC16F688 is correctly installed in the application. (Expected ID = 0x1180, ID Read = 0x0)
PICkit 2 Ready Trying to program the chip gives the same error message.

Since it says ID Read = 0x0, it makes me think it's not seeing the chip at all. Do I need to configure any of the jumpers on the Adapter board to make it work right?

If anybody has had a similar problem or has suggestions, I'd appreciate it! Thanks all :)

My apologies if this is the incorrect forum for this matter.

Wayne J
01-09-2011, 05:05 PM
Do you have the 14 pin socket board configured for "Group C" ?

mikekowdley
01-09-2011, 07:52 PM
I don't have any jumpers installed at all. I read the document that came with the board (ICSPAdapters-v1.2.pdf), but I wasn't sure what to make of it.

I see the 16F688 is in group C, should I put a jumper to short each position where a "C" is printed on the Adapter board?

Wayne J
01-09-2011, 08:23 PM
The way I read the manual for your socket, you should have a shunt (jumper) on each set of pins that are marked "C"



Operation & Usage
Programming a chip is a simple procedure:
1) Determine the appropriate adapter and group for your target chip.
2) Place jumpers in the appropriate positions on the group selection header. All other positions
should be empty.
3) Insert the target chip in the socket oriented properly. For DIP ZIF sockets: make sure the lever is
in the upright position, Pin 1 is the pin nearest the lever, insert the target chip, and flip the lever
to the down position. On ICSP14, ICSP20A, and ICSP20B adapters be sure to follow the
silkscreened legends for chip position based on pin count.
4) Connect the programmer to the ICSP header. Be sure to align Pin 1 (VPP) to the arrow
silkscreened on the board. Optionally you can use the 6 pin male/male connector and ribbon
cable to extend the ICSP signals.
5) Program the target chip using your software

mikekowdley
01-10-2011, 02:47 AM
Yep, that's all it took. Moving forward again, thanks!