Use an external power supply for the PIC.
By external I mean a separate power supply just for the PIC. Ex: 7805.
Use an external power supply for the PIC.
By external I mean a separate power supply just for the PIC. Ex: 7805.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Originally Posted by sayzer
Thank you for your input. I am a little confused though. I am programming with the serial programmer using the latest software. The pic is not "in circuit," it is in the zif socket. The programmer is being powered by the 15V power supply that was provided with the programmer.
I don't use an EPIC so don't ask me questions about it...
However, I have on several occasions come across batches of PICs (these are factory new) that NEED to be erased prior to programming. Some PICs will program straight out of the tube, some will fail. But if an ERASE operation is performed first, they all program first time.
By default for the last year, I've preset 'Erase before Programming' and I've not had any such programming errors since.
btw... a forum SEARCH on "error 0000" brings up this topic which has been discussed several times. Perhaps there is something in an old thread which may help.
IF you decide to bend the power pins of the PIC up in the air and apply the voltage as what I call “in space” with the help of some crocodiles, it may work.
You must make sure that you have the ground pin of PIC common with the ground of PCB board (programmer).
Whatever you do just make sure that you power the pic with a separate power supply and have the ground common.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Thanks again guys...
The pics are all new and I do blank check before programming. I added the 1uF capacitor to the power pins (as per information on melabs.com) but it made no difference at all. This fix was for another problem, but customer support recommended that I gave it a try.
Erasing the chips first has no effect. The same chip will fail to program 10 times and then all of a sudden, it will work fine.. Very strange behavior. It seems to be related to the Pics though, not the programmer. I say that because some chips are just troublesome, and others (most) work on the first shot.
Does anyone know of a good low-cost commercial programmer that can program all of the Pics?
EPIC is certainely one of the best lowest-cost programmer anyways.
I use Microchip PICSTART Plus and BK Precision 844a (relabeled of an Elnec)
Microchip ICD-2 seems to be another great one.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I just sent an email to MeLabs yesterday to see if they know a solution.
I'm having a problem programming about 10% of my brand new 18F2525 chips. Very annoying to have 10% "bad" chips at $6.11 each!!
Some fail at 0000 and some make it almost to the end before failing. Like I said, 90% program with no problems. All using the same hex file and settings.
Erasing is no help. Also using latest software with MeLabs Serial Programmer.
I just want to know, is it the programmer or Microchip quality control??
Well i didn't had any bad chip as now. And it's not because i didn't wanted
I'd some bad experience, but as Melanie said, i set Erase before programming... and as now (finger crossed) i never had any bad experience. MAYBE a programmer problem. I don't have the EPIC so can't really be sure of it.
Is this the serial or the parrallel model?
If it's the parrallel, I saw kinda patch about XP printer polling blah blah...
Same problem on another Computer?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hmmm, I hate when I feel like I'm talking to myself. LOL.Originally Posted by JDM160
Anyway, glad it worked for you, it didn't work for me...
> Does anyone know of a good low-cost commercial programmer that can program all of the Pics?
Unfortunately your use of the two words "low cost" excludes giving any sensible answers... all the programmers I can recommend omit that from their feature list.
However, given the fact that you have some success with your PICs leads me to suspect that there is something 'marginal' in your setup. I don't know your programmer at all, but I would suggest in the first instance you put a scope on your PSU and ensure you have a constant and steady DC supply. Check the programming pin MCLR on the PIC... you should have some 13.5v on it (unless you're using Low Voltage Programming) - if this varies or drops it will cause the PIC not to program correctly. Plug-in a PIC, hit 'program' and make with the multimeter or scope...
JDM,
Did you ever replace that cable? M to F 25-pin, straight thru (not null-modem cable).
I would fix that FIRST. Even though the "hillbilly cable rig" works on some/most chips, the longer cable run might be a problem for others. Additional noise, voltage drop, etc.
Originally Posted by Melanie
I couldn't check MCLR so I tricked the PIC. I did READ first then PROGRAM. I got the error again, but this time it programmed after I clicked YES. I didn't really care what it programmed, as long as it went through the routine. I had something like 12.35V on MCLR according to my multimeter.
I've even tried to Erase manually first before Program, same error.
I've always used my MeLabs serial programmer, bought it new and never had problems before. Is it possibly fading? I wouldn't mind upgrading to the USB version, but I don't want to spend the money yet if that's not the problem.
I never a problem for many many PICS; 16F628, 16F877, 18F4550, 18F2550 and 16F628A, all in-circuit too. This is the 1st PIC to give me this error.
I'm not using low voltage programming either.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks