WinPicProg Forums Forum Index WinPicProg Forums
A forum to support WinPicProg
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Program Verify Error at Program Address 0x000

 
Post new topic   Reply to topic    WinPicProg Forums Forum Index -> Questions
View previous topic :: View next topic  
Author Message
quentin



Joined: 19 Jul 2006
Posts: 4

PostPosted: Wed Jul 19, 2006 9:42 am    Post subject: Program Verify Error at Program Address 0x000 Reply with quote

I have built the WinPicProg programmer and are using the WinPicProg software.

In attempting tutorial 1_1, I get the error Program Verify Error at Program Address 0x000 when trying to program the circuit. I dont get any errors if I erase the PIC16F628 or read the PIC. But any data written produces the above error message.

I have been over the circuit repeatedly and can not find any mistakes. And have checked the PIC pinout specs and as best I can tell everything is where it should be.

Can anyone suggest any ideas that might help me to debug this problem further. I am a beginner so I fear I may have missed something others take for granted.

Does the PIC have to be configured in some way prior to programming?

Does ERC mean I should have an external clock ? WinPicProg does not let me select any other option without producing fuse error messages

any help appreciated
thanks,
Quentin
Back to top
View user's profile Send private message
quentin



Joined: 19 Jul 2006
Posts: 4

PostPosted: Wed Jul 19, 2006 9:50 am    Post subject: Reply with quote

I should clarify that ERC is one of the Oscillator options in WinPicProg for the PIC16F628
Back to top
View user's profile Send private message
Nigel Goodwin
Site Admin


Joined: 03 May 2006
Posts: 135
Location: Lower Pilsley, North Derbyshire

PostPosted: Wed Jul 19, 2006 10:43 am    Post subject: Reply with quote

What are you using for a power supply?, it sounds most likely that the PIC isn't switching to programming mode? - low voltage, or excessive ripple, is the most common cause of this.

A blank PIC read all one's, and a PIC not set to programming mode (or no PIC in the socket) will read all one's as well.
Back to top
View user's profile Send private message Send e-mail
quentin



Joined: 19 Jul 2006
Posts: 4

PostPosted: Wed Jul 19, 2006 9:41 pm    Post subject: Reply with quote

I am using the power supply that is part of the WinPicProg circuit off your website. http://www.lpilsley.co.uk/pdf/p16pro40.pdf

The only change I have made to it is to change the capacitors used by the 7805 regulator because I was getting 4.5V instead of 5V when I used the capacitors specified. The transformer puts out 15Vac upto 140mA. I have measured the output voltages as 5V and 13V.
Back to top
View user's profile Send private message
KC



Joined: 05 May 2006
Posts: 99
Location: Victoria BC Canada

PostPosted: Thu Jul 20, 2006 12:39 am    Post subject: Reply with quote

Which caps did you change (C2 or C3) and what did you change them to?
What DC voltage do you get on C3 / pin 1 of IC1 (78L05)? Also, what is the AC ripple voltage at this point?
_________________
KC
Back to top
View user's profile Send private message
quentin



Joined: 19 Jul 2006
Posts: 4

PostPosted: Thu Jul 20, 2006 3:26 am    Post subject: Reply with quote

I changed C2 to 220uf 63V and I change C3 to 2200uf 25V.

The DC voltage at across capacitor C3 is 20.5V

I'm not sure how to measure ripple AC but if i turn my multimeter to AC it measures 44V at the same place
Back to top
View user's profile Send private message
KC



Joined: 05 May 2006
Posts: 99
Location: Victoria BC Canada

PostPosted: Fri Jul 21, 2006 12:39 am    Post subject: Reply with quote

Quote:
I changed C2 to 220uf 63V and I change C3 to 2200uf 25V.


These values should be OK.

Quote:
The DC voltage at across capacitor C3 is 20.5V


That's plenty good enough.

Quote:
I'm not sure how to measure ripple AC but if i turn my multimeter to AC it measures 44V at the same place.


Some multimeters do that. Older VOMS had a OUT jack that puts a cap in the line, some don't. If you place a 0.1Uf cap in series with the positive lead of the meter, you'll get the correct reading. But because you have subbed larger caps, I doubt ripple will be a problem unless they are faulty. Measure it anyway just to be safe. Should be less than 0.5Vac if you keep your fingers off the 0.1Uf cap and the positive lead of the meter.[/quote]
_________________
KC
Back to top
View user's profile Send private message
Wouterb



Joined: 18 Sep 2006
Posts: 3
Location: Boxtel, Nehterlands

PostPosted: Mon Sep 18, 2006 4:05 pm    Post subject: Reply with quote

Hello,

I am also attempting to work my way through the tutorials and I'm having the same problem. When trying to program a PIC16F628A using the P16PRO40 controller, I get the same error message: Program Verify Error at Program Address 0x000

I'm using the new beta version of winpicprog, since the older isn't compatible with the pic16f628A. I checkes the voltage across C3 and this is 18,2V, should be enough I guess.

I also tried this programmer, but it isn't compatible with the A-version of my chip. Besides that it gave the same error.

Perhaps I'm doing something wrong in assembling the .hex file. There are a lot of options in MBLab to chose from and I'm not sure I've chosen the right ones.

A long first post, but I really hope someone can help me out ....

regards,

Wouter
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KC



Joined: 05 May 2006
Posts: 99
Location: Victoria BC Canada

PostPosted: Tue Sep 19, 2006 1:08 am    Post subject: Reply with quote

In WinPicProg, have you gone into "options/hardware" and toggled the buttons and checked with a voltmeter that VDD, VPP, VPP40, OUTPUT and CLOCK all toggle on/off as they are supposed to do?
In the same window, do you have the correct programmer type selected?
_________________
KC
Back to top
View user's profile Send private message
Nigel Goodwin
Site Admin


Joined: 03 May 2006
Posts: 135
Location: Lower Pilsley, North Derbyshire

PostPosted: Tue Sep 19, 2006 9:16 am    Post subject: Reply with quote

What are you using for a power supply?, if it's unregulated you may have too much ripple on the supply.
Back to top
View user's profile Send private message Send e-mail
Wouterb



Joined: 18 Sep 2006
Posts: 3
Location: Boxtel, Nehterlands

PostPosted: Tue Sep 19, 2006 10:45 am    Post subject: Reply with quote

I toggled all the buttons and the checked everything with a voltmeter and everything works as it should, however D1 doesn't blink if I toggle the VPP onf/off, could this be the problem, or is this due to R9 (what is it doing anyway???)

I set my programmer to P16PRO40-7406, as I used the 74LS05, which is an inverting buffer, just as the 74LS06.

How can I check whether my power supply has too much ripple ???

If I would use, say, two 9V blocks, I should be able to eliminate that problem right???
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Nigel Goodwin
Site Admin


Joined: 03 May 2006
Posts: 135
Location: Lower Pilsley, North Derbyshire

PostPosted: Tue Sep 19, 2006 7:28 pm    Post subject: Reply with quote

Try two 9V batteries in series - that provides a nice smooth 18V, I still run a P16PRO40 like that!.
Back to top
View user's profile Send private message Send e-mail
KC



Joined: 05 May 2006
Posts: 99
Location: Victoria BC Canada

PostPosted: Wed Sep 20, 2006 1:08 am    Post subject: Reply with quote

Quote:
I toggled all the buttons and the checked everything with a voltmeter and everything works as it should, however D1 doesn't blink if I toggle the VPP onf/off, could this be the problem, or is this due to R9 (what is it doing anyway???)

I just noticed an error in the diagram for the P16PRO40; there are two R9's! One is the 4K7 on the emitter-base of T3 and the other is a 680R on the collector of T1. Rolling Eyes
Anyway, I assume you mean the 680R. It insures that VPP falls to 0 when T1 is turned off.
D1 should toggle off/on with the VPP button. I've never really liked the way that the three LEDs share the same current limiting resistor (R1). That might be why D2 is spec'd as a green LED which has a higher voltage drop allowing D1 to light up brightly. I never connected the LEDs to the one I used to use.
So what does the voltage at the collector of T1 do when you toggle VPP in software? It should toggle between apx 13V and 0V.

Quote:
I set my programmer to P16PRO40-7406, as I used the 74LS05, which is an inverting buffer, just as the 74LS06.

The LS06 is a better choice because the LS05 collector voltage is only spec'd to a max of 5.5V where as the LS06 is spec'd to a max of 30V. Probably will still work up to 13V, but keep it in mind as you troubleshoot the circuit.
_________________
KC
Back to top
View user's profile Send private message
Wouterb



Joined: 18 Sep 2006
Posts: 3
Location: Boxtel, Nehterlands

PostPosted: Thu Sep 21, 2006 11:43 am    Post subject: Reply with quote

Quote:
Try two 9V batteries in series - that provides a nice smooth 18V, I still run a P16PRO40 like that!.

That's what I meant. I changed from power supply to the 9V batteries now.

Quote:
The LS06 is a better choice because the LS05 collector voltage is only spec'd to a max of 5.5V where as the LS06 is spec'd to a max of 30V.

I changed from LS05 to LS06.

After these changes D1 still wouldn't switch on/off. I found out that I had a wire link wrong Embarassed
Now D1 is behaving as it should and the programmer works perfectly. I already burned my first piece of code into the PIC. Thanx for the help!

Now let's start doing those tutorials Cool
Back to top
View user's profile Send private message Send e-mail Visit poster's website
KC



Joined: 05 May 2006
Posts: 99
Location: Victoria BC Canada

PostPosted: Fri Sep 22, 2006 12:57 am    Post subject: Reply with quote

Quote:
After these changes D1 still wouldn't switch on/off. I found out that I had a wire link wrong

Good trouble shooting! Very Happy

Quote:
Thanx for the help!

You're welcome, and happy coding.....
_________________
KC
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WinPicProg Forums Forum Index -> Questions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group