Page 1 of 1

trouble while programming pic16f877

PostPosted: Thu May 21, 2015 5:17 pm
by ukd123
I am familiar with 8051 mcu.Just I am starting the said pic mcu.I programmed one a small programme on assembly.worked nice but on further expansion of that program the earlier pic mcu is not getting program, programmer is announcing 'failed at 0000h'. This try I have tried on 7 nos. pic16f877 same sequence comming only one time programming. I am doing some mistake please help. My programmer is TOP3000.

Re: trouble while programming pic16f877

PostPosted: Fri May 22, 2015 4:32 am
by AussieSusan
Wild guess, but are you setting a CONFIG option that turns off the LVP capability when you program the chip the first time?
Susan

Re: trouble while programming pic16f877

PostPosted: Fri May 29, 2015 11:27 am
by ric
I think that's a good guess Susan, but the opposite way.
LVP should be disabled. If it's not, and if the PGM pin is not pulled low, then programming can be randomly disrupted.
The problem will come and go, depending upon ambient humidity, temperature, and electric fields, which all affect if the PGM pin floats high enough to cause problems.

Re: trouble while programming pic16f877

PostPosted: Fri May 29, 2015 11:55 am
by Ian.M
Worse: even if you disable LVP, the bulk erase phase of the programming reenables it, so on older PICs where /MCLR going to Vpp doesn't lock out the PGM pin, it *MUST* *ALWAYS* be pulled low during HV programming.