PK2 programming failure

Status
Not open for further replies.
Seems to work if I open the programmer and import the hex before inserting the chip and turning on Vcc. It worked for 13 months and programmed at least a thousand times without a glitch till yesterday.

No Farnell in USA that I can find.

Aaron
Suppose, i give the artwork for a through hole component version of microchip pickit2 in full
can you make a homebrew pickit2.
this was worked out initially by one"computerman29" in www.edaboard.com and we made pcb artwork from eagle for that. i have made quaite a few for my friends and it works.
we need some critical components, like rail to rail opamp,MCP6402 or equivalent from others, then IRLML6402 , BS170 N-mosfet and BS250 or IRLML26402 , again a P-mosfet.
PIC18F2550 and others, i feel you have them. If interested to homebrew, i can support. and a set of 4.7K and 2.7K 1% resistors , balance could be normal 5%
 

Attachments

  • pickit2 bredbd conn sample.jpg
    617.7 KB · Views: 234
Last edited:
The program still has a few bugs in it but basically it's close.

It's a fresh (programmed less than 20 times) F870. Also tried to program a F84A and F88 and same thing happens.

Aaron
 
Aaron.. I agree the programmer appears F****d you need a new one. All the suggestions about making one are useless if you don't have a programmer to program a new one..
 
please upload a photo of your programmer or a link for it, to analyse any possible fault in the programmer.
 
What you suggested is direct and most effective. I have and use the microchip's pickit2. Fr the sake of others who are keen on homebrueing a programmer, perhaps computerman29 ( a resident of Florida) efforted and made at home. later, on his request we tried to improve on the PCB artwork.

pickit2 can be used,
1. on ICSP pins of target PCB, and
2. breadboard for a DIP package for faster programming.
3. we can of course make a complex ZIF adopter for pickit2 for those who don't want to wire the 5 wires to respective pins.

however, while doing on pre assembled target board, unless we take precautions , the usb derived Vdd cant load the entire target board.
then perhaps we have to work with external supply of target board, switching off the pickit derived Vdd.

this wouldn't be possible if Mclr pin is off and using internal osc.
for that config we need to use VPP first programming,and that is possible only if pickit2 supplies Vdd also
 
Last edited:
They are really good place I been with them for years if you make $25.00 dollar orders you'll save a bunch there pic pricing is great to.

Like this PIC18F2520-I/SP $4.52 nice deal I think
 
In the US Newark seems to have the best prices on PICs

PIC18F2520-I/SP $3.98
 
You haven't clearly and accurately stated what is happening.
When you get a programming error, is the chip programmed correctly?
For this you need a program that works and secondly you need a new chip so you can determine if the programmer is upsetting the chip.
Alternatively you can try a “no-parts PIC programmer” and use a serial port to try and “fix the chip.”
Or buy a genuine PICkit-2 programmer that turns off the 5v until the appropriate time.
 
Collin55 this is not how a pickit2 works when programming
genuine PICkit-2 programmer that turns off the 5v until the appropriate time.

It is done to check for shorts wrong chip etc

You have to manually set VPP first even with the real deal
 

Attachments

  • vpp.jpg
    58.9 KB · Views: 352
Last edited:
be80be Do you have a PICkit-2???????????????????????????????
You don't know what you are talking about.
Yep sure do

Oh and I know how it works inside and out the clones I make work just as good. And on a side note I have made and used most any you can think of.

The Op needs to post his code and how he is hooking up the programmer

If his programmer just stopped working first thing I would do is download the pickit2 firmware.

Then pop the chip on a blank bread board and test that out

I would also be nice to see the programmer. If it has a 6 pin header like the pickit2 they can go bad. There a lot of things that could be wrong.
 
Last edited:
I had a PIC16F629 today that would not program AT ALL using PICkit-2.

Replaced it with a clone I designed and it programmed first go.
There is something wrong with the PICkit-2 programmer. I have this problem before.

Here is my clone:
 

Attachments

  • PicUSB_BurnerCct.gif
    10.5 KB · Views: 311
As I said earlier, it works if I make sure the Vcc button is off before I plug in the pic.
I will try to download the firmware again. I will also check that" Vpp first" menu item.

My internet conection has been out for the last 36 hours hence no posting.

Thanks for the discusion. I always learn things even more than hoped for when you guys post.

Aaron
 
Yep sure do

The Op needs to post his code and how he is hooking up the programmer
--------
I would also be nice to see the programmer. If it has a 6 pin header like the pickit2 they can go bad. There a lot of things that could be wrong.

This is a very simple program to control a 3 wheel robot. One front wheel both drives and steers (2 motors).

I hope I do this post right
 

Attachments

  • Copy of 101_6218.JPG
    697.5 KB · Views: 225
  • TRY_THIS_3.asm
    6.5 KB · Views: 166
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…