Electronics > Beginners
PICKIT 3 Programming 16F876A
g0mgx:
HI All,
I am trying to program a 16F876A from a pre-built hex file using MPLAB X IPE V5.15 and an eBay sourced (ripped off) PIC KIT 3 with ZIF socket.
I have the IPE configured to "power target device from tool" and I am certain all the ZIP socket board jumpers are correct.
When I try to Connect to the PICKIT (which is listed in the IPE) I get "Target device was not found (could not detect target voltage VDD). You must connect to a target device to use PICkit 3."
So quite clearly, I dont know what I am doing. |O
I've got an old Olimex board which emulates a PICSTART and that works with the old IDE - but I would really like to get the PICKIT working.
Can anyone help? This should be "Like falling off a log" - out of interest, how hard is it to fall off a log?
Many thanks
Mark
G0MGX
Buriedcode:
Well, it would help to narrow it down to either the device, the programmer (your PICkit 3) or the host software. Does the PICkit3 work with other (newer) devices? Is the PICkit3 actually powering the target? Lots of variables.
CJay:
OK, are you using ICSP or the ZIF socket?
Can you verify the connectons between the 5 pins on the chip and the programmer or is it some integrated thing?
Have you another chip? (Happy to post you one, I have many, if you want one programmed with the .hex then I can do that too)
Text below is from a quick lash up on a breadboard:
--- Code: ---Device ID is unavailable for this device
*****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.50.04 *
Firmware type..............Midrange
Target device was not found (could not detect target voltage VDD). You must connect to a target device to use PICkit 3.
*****************************************************
--- End code ---
At this point I enabled "Power Target Circuit from tool"
--- Code: ---Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.55.01
Firmware type..............Midrange
Programmer to target power is enabled - VDD = 5.000000 volts.
Target device PIC16F876A found.
Device Revision ID = 8
Reading...
The following memory area(s) will be read:
program memory: start address = 0x0, end address = 0x1fff
configuration memory
EEData memory
User Id Memory
Read complete
--- End code ---
So, with a genuine PICKit3 and a very rough lashup it works as expected and would seem to be the same procedure that you've followed so I suspect your hardware config and/or chip is at fault rather than anything you've done wrong in the setup, has it ever worked?
g0mgx:
I have tried measuring the voltage on the PIC pins in the ZIP socket and I think that is the problem.
The VPP line goes to +5V during the connect process for 12ms then back to 0V.
The VDD and VSS lines are at 0V permanently.
I dont know what they should be or what correct looks like.
Mark
g0mgx:
Hi Cjay
No - I have never managed to get this programmer to work.
What you have done is exactly what I am trying to do, I am using a ZIF socket board which plugs directly into the 5 pin socket on the PICKIT3. eBay has loads of these type of sets with the PICKIT 3 and the ZIF board together for 3 bob and a conker.
It took me quite a while to figure out that I had to "power target circuit from tool", but still no joy.
Can you tell me what voltages you see on the VPP pin (pin 1) during the connect sequence?
Many thanks
Mark
Navigation
[0] Message Index
[#] Next page
Go to full version