Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC ICSP programming memory errors

Status
Not open for further replies.

ltg

Member level 4
Joined
Feb 24, 2002
Messages
76
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
533
Hi,

When I try to programming my PIC with ICSP, I got this message:
Program Memory Errors. I use Pro Mate II to programming PIC16F76. And I connect those signal to PIC: RB7, RB6, ^MCLR/Vpp, Vdd and Vss.
Does some of you any suggestion? Thanks in advance!

Best Regards,
ltg
 

pic icsp

hi,

try to put PGM pin /RB3/ to GND during programming. this may help.

regards
 

icsp messages

Try to short-circuit the crystal during programming


Mik
 

icsp programator pic

Hello!

You must check your lines if there are no big caps on RB6 and RB7. You hould check design recomendations. And also what is power consumption of your circuit?

Regards!
 

pic icsp vpp

Hi,

Are you actually using the ICSP module socket on your promate2?

If not, then you can expect problems.

The problem is, when you start programming, the promate2 will raise Vdd first, before starting the programming algorithm. If you have e.g. some filtering on your 5V supply (and you should have a capacitor on there :)) then the Vdd supply comes up too slowly and the programming algo has already started, hence the failures... IOW the real problem is the promate2 doesn't drive Vdd strongly enough (hence you should use the ICSP module socket).

Incidentally you will find the same problem with a picstart+ (as I found out earlier this year).

As a workaround, you can try to do what I did: power up your target BEFORE programming. Then you have a nice steady 5V before the programming algo starts, and there will be no problems.


best regards,
stephen
 

icsp connection for the 16f628

About a week ago I suceeded at programming PIC 16F628 with ICSP connections. I was always getting error messages while programming or during verification. I was getting crazy about this for a long time.

I didn't take out the crystal. I can program even without turning off the power supply of my circuit. I have no connection to +5V on ICSP connection. VPP puts the micro into programming mode, after programming circuit continues with the new program. I must warn that I got the micro heated up too hot while testing different capacitors when the program gave a error message. If someone tries this, please check the microcontrooller heat at the first few adjustments, otherwise you can use your micro as a heater.

Connections were as following:
*VPP to MCLR, with a 10K resistor to VDD and a 100nF capacitor to ground
*RB7 to DATA
*RB6 to CLOCK
*VSS to GND
Same as in the datasheet.

The only thing that I did different was putting a parallel 100 pf capacitor between RB6 to ground. Then, everything begin to run perfectly. The range was 30 pf to 1 nF, probably specific to my programmer and cable length and its capacitance. P16pro worked very well.

Good luck! :eek:

Betanorm
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top