Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

problems with programming a pic 16f628a

Status
Not open for further replies.

tanilas

New Member
The last one week i try to program a pic 16f628a, i'made a home built jdm programmer, and used icprog to program it, the first times it seemed to work, the burning was succesful, but after a few days nothing worked, i had the usual problem "Verify failed at address 0000h" (the address depends to the first nonzero address). I thought that maybe there was a problem with my programmer and i have rebuilt it 3 times... but there's still the same problem. So i concluded that the problem is with the software.. So i testes with both winpic800 an icprog and there's the same problem. Today i found that when i read the chip in the configuration byte it has the cp bit checked and i wonder what can i do now to remove it, I have tested 3 pics but all of them are code protected..
Any idea???
 
Are you using the internal oscillator with /MCLR disabled? If that is the case, re-programming the 628A could be impossible because the JDM programmer can't control Vdd (it's always applied). I think that there is a modified version that overcomes that issue.
 
Last edited:
OY2L said:
Try to Erase the pic first, it also erase the code protections

i read in the datasheet that erasing it sets the code protect. and when the code protect bit is set then when you read the chip it shows everywhere zeros and you can't program it... what can i do???
 
eng1 said:
Are you using the internal oscillator with /MCLR disabled? If that is the case, re-programming the 628A could be impossible because the JDM programmer can't control Vdd (it's always applied). I think that there is a modified version that overcomes that issue.

I think i tested what you say, i test with differrent oscillators, and with different configuration (and the mclr disabled). Can you recommend any other programmer that could help me?

But why it worked the first times i tested it?

The programmer i built was found in this site:
**broken link removed**
 
tanilas said:
thank you but it's not what i need, I want a programmer for 16f628a and the jdm programmer is supposed to work. The point is that it doesn't work and we try to find out why

It doesn't work because it's a very poor design, it relies on the serial port handshake lines exceeding the RS232 specification. It's the most unreliable and temperamental PIC programmer there is - if you check the net you will find huge numbers of people who have problems with it.

As these 'serial' port programmers don't even use the serial port, it's trival to add support for them in parallel port programmer software (as IC-Prog does). I made a deliberate decision NOT to support such progammers in WinPicProg because I didn't (and still don't) consider then a viable option.
 
tanilas said:
I think i tested what you say, i test with differrent oscillators, and with different configuration (and the mclr disabled). Can you recommend any other programmer that could help me?

But why it worked the first times i tested it?

The programmer i built was found in this site:
**broken link removed**

If you are not using the LVP( you can know by studying the configuration settings) mode see that pin 10 is disconnected by a print cut close to pin10 of the IC base.
Try to enable the Verify during programming mode in the settings of the programming software.

then have a multimeter check of the Vpp on Capacitor C2 . if it is any thing less than 12V DC, perhaps you get the error "Verify failed at address 0000h". If possible try to increase the R1 (4K7) to 6K8. By this the Vpp LED will be Dim .
Also try to , If possible increase R3 to 680:eek:hm: this will make grren LED little DIM but the 5V will not be overloaded, perhaps.
 
Last edited:
mvs sarma said:
If you are not using the LVP( you can know by studying the configuration settings) mode see that pin 10 is disconnected by a print cut close to pin10 of the IC base.
Try to enable the Verify during programming mode in the settings of the programming software.

then have a multimeter check of the Vpp on Capacitor C2 . if it is any thing less than 12V DC, perhaps you get the error "Verify failed at address 0000h". If possible try to increase the R1 (4K7) to 6K8. By this the Vpp LED will be Dim .
Also try to , If possible increase R3 to 680:eek:hm: this will make grren LED little DIM but the 5V will not be overloaded, perhaps.

I tested what you recommended but nothing happened. Can't program... the voltage is around 8 volt on the capacitor C2. I don't know what to do, the problem seems to be with the code protect bit right now. I'll try to make another Jdm programmer with another schematic i found though i don't believe it'll work.. Also i will test it with a microchip burner which i'll borrow from a friend...
I'll inform if i have further news
 
You are vasting your time building another not working JDM programmer, build instead the P16PRO40 programmer and you have a good programmer and it can program almost every pic
 
OY2L said:
You are vasting your time building another not working JDM programmer, build instead the P16PRO40 programmer and you have a good programmer and it can program almost every pic

If it is serial programmer and the cost is less than the proposed cost of PICKIT2 , it is ok, and if it turns out a parallel pic, the money is going to be again wasted, as time passes, parallel ports will not be there.

Perhaps what i suggested is few Pennys worth the cost of 2 resistors and few cut & straps mods.
he need not spend at all, hoping that these 2 resistors can be traces in his scrap box.
 
no solution found till now, it seems that the power provided by the serial port is not enough, and i have to build another programmer or a JDM programmer with external power supply.
Does anyone have any suggestion or any schematic
 
Have a look at this page. You will find this diagram there,
**broken link removed**

As you can see this is a JDM with external power supply. The 4 diodes in the middle (D3-D6) aren't required.

Mike.
 
It has been found there is some hardware defect on some PICs which make it can only be program one time. Your chip is one of them.

for further programming, you need play some trick to get it erased first (because somehow, the PIC timer if used will conflict with the ICSP) with a low voltage.

A PICkit2 should be able to play with this trick with a voltage down to 3.0 Volts. And if not successful at 3.0v, then repeat and drop 0.1 volt/step to get the chip erased. After the old program is erased, you can program the chip as usual.:)
 
Sorry, but it sounds like you're talking complete rubbish?.

Erasure 'problems' using badly designed programmers (or software) have been covered MANY times on these forums - and it's not due to any faults in the PIC's.
 
Hi!

I have che same problem with a 16F877A and a serial JDM programmer.

I tried to erase the PIC with an ICD2, but without results.

There is a method to rescue the pic?

Thank you! :)
 
Status
Not open for further replies.

Latest threads

Back
Top