Searching \ for '[PIC] 16F877 picstart error - another PIC newbie.' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/begin.htm?key=16F
Search entire site for: '16F877 picstart error - another PIC newbie.'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] 16F877 picstart error - another PIC newbie.'
2005\05\09@214647 by CYBERIA429-PICLIST

flavicon
face
Picers - sorry but i too am a bit of a newbie with the F87X pics. :(
I keep getting "programming errors" reported when I send my code to a 16F877
using MPLAB/PICSTART. The program compiles OK, error-free, runs in DEBUG OK,
then I programme it & pictstart comes back with ....

PICSTART Plus Error Log File

Device Type: 16F877
Errors during programming.  Configuration bits not programmed.
Program Memory Errors

;Hmmm. You get a list of good/Bad addresses but the bad'uns are all 0000. Not
all that informative?

Address  Good  Bad
0000:    20AB  0000
0001:    2902  0000
0003:    3FFF  0000
0004:    00A0  0000

;My config commands look like so ...

__CONFIG _CP_OFF & _WRT_ENABLE_ON & _XT_OSC & _WDT_OFF & _PWRTE_ON &
_BODEN_OFF & _WRT_ENABLE_ON & _LVP_OFF & _CPD_OFF

;The config bits in the picstart window after programming look like so ...
changed them around some, no effect.

OSC               XT
WDT               OFF
PWR UP TIMER      ON
CODE PROTECT      ON
BRWN OUT DETECT   ON
LV PRGRM          DISABLED
DATA EE PROTECT   OFF
FLASH WRITE       ENABLED

What's wrong?
I thought the config settings in the script overide the Config window in
Picstart? Missing something here - but what?

Thankz if can help - Debbie H. :)


Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

2005\05\09@223656 by Matthew Miller

flavicon
face
Hi,

Last week was the first time I had used a 12F629 and I wired the chip
wrong (why is ground on pin 8?). This didn't kill the chip, but the only way
to program it now is to first erase the chip and _then_ program it. I have
some more 12F629's on order, but aside from this it seems to work fine.

If I don't erase the chip I get verification errors as well. But, an erase
before the programming causes the verification to succed. I've no idea why.

Matthew.

--
"Truly the gods have not from the beginning revealed all things to morals,
but by long seeking, mortals make progress in discovery."
      -- Xenophanes of Colophon

2005\05\10@021107 by CYBERIA429-PICLIST

flavicon
face
Hmm. That's wortha try ...
Debbie
--- Matthew Miller <spam_OUTnamiller2TakeThisOuTspamnaxs.net> wrote:
> Hi,
>
> Last week was the first time I had used a 12F629 and I wired the chip
> wrong (why is ground on pin 8?). This didn't kill the chip, but the only way
> to program it now is to first erase the chip and _then_ program it. I have
> some more 12F629's on order, but aside from this it seems to work fine.
>
> If I don't erase the chip I get verification errors as well. But, an erase
> before the programming causes the verification to succed. I've no idea why.
>
> Matthew.

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

2005\05\10@022830 by Jinx

face picon face
> If I don't erase the chip I get verification errors as well. But, an erase
> before the programming causes the verification to succed. I've no idea
> why

Erase before Program is part of the routine with any PIC I use now
(12F675, 16F88, 16F628, 18F452 with MPLAB/PS+). Possibly
something to with the new Flash fabrication, don't know don't care,
I just do it. Do you remember having to Erase first before your
attempted munting of the 12F629 ?


2005\05\10@035548 by Alan B. Pearce

face picon face
>Hmm. That's wortha try ...
>Debbie
>>
>> If I don't erase the chip I get verification errors as well. But, an
erase
>> before the programming causes the verification to succed. I've no idea
why.

The other thing to watch with the 16F877 is to make sure you have an F877,
and not an F877A as the A version has quite different programming algorithm.
You must specify the correct one for the programmer.

2005\05\10@071517 by John J. McDonough

flavicon
face
----- Original Message -----
From: "Alan B. Pearce" <.....A.B.PearceKILLspamspam@spam@rl.ac.uk>
Subject: Re: [PIC] 16F877 picstart error - another PIC newbie.


> The other thing to watch with the 16F877 is to make sure you have an F877,
> and not an F877A as the A version has quite different programming
algorithm.
> You must specify the correct one for the programmer.

If I was to guess, I'd say you had an 877 but you were trying to program it
as an 877A, so check BOTH the chip type selected, and the letters on the
part.  Like Alan says, 877 != 877A

--McD


2005\05\10@073711 by olin_piclist

face picon face
cyberia429-piclist@yahoo.com.au wrote:
> Picers - sorry but i too am a bit of a newbie with the F87X pics. :(
> I keep getting "programming errors" reported when I send my code to a
> 16F877 using MPLAB/PICSTART.

Are you programming a DIP package directly in the Picstart+ (you are using
the "+", right?), or are you trying to program it in-circuit or a different
package via some adapter.  If any of the latter, try a bare DIP chip in the
socket with nothing else connected and see if that works first.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

2005\05\10@074831 by olin_piclist

face picon face
Matthew Miller wrote:
> Last week was the first time I had used a 12F629 and I wired the chip
> wrong (why is ground on pin 8?). This didn't kill the chip, but the
> only way to program it now is to first erase the chip and _then_
> program it.

Most programmers do an implicit erase as part of the programming operation.
Both of mine certainly do this.  What programmer are you using?

> If I don't erase the chip I get verification errors as well. But, an
> erase before the programming causes the verification to succed. I've no
> idea why.

So *something* changed in the chip when it was hooked up backwards if you
didn't see this symptom before.  That means it did get damages.  I would
toss that chip immediately because there is no way to know what other parts
are damaged in subtle ways too.  Anything this chip does is now suspect,
making it worse than useless.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

2005\05\10@090206 by Matthew Miller

flavicon
face
On Tue, May 10, 2005 at 06:27:41PM +1200, Jinx wrote:
> > If I don't erase the chip I get verification errors as well. But, an erase
> > before the programming causes the verification to succed. I've no idea
> > why
>
> Erase before Program is part of the routine with any PIC I use now
> (12F675, 16F88, 16F628, 18F452 with MPLAB/PS+). Possibly
> something to with the new Flash fabrication, don't know don't care,
> I just do it. Do you remember having to Erase first before your
> attempted munting of the 12F629 ?

Before the chip was mis-wired it would program fine without being erased
first. I'm using a PS+ as well. Anyway, I'm trashing the chip as soon as my
order of new ones come in!

Matthew

--
"Drug related crime" is a misnomer, "prohibition related crime" is the more
accurate and correct phrase."

2005\05\10@193738 by CYBERIA429-PICLIST

flavicon
face
--- Olin Lathrop <olin_piclistspamKILLspamembedinc.com> wrote:> Are you programming a DIP
package directly in the Picstart+ (you are using
> the "+", right

It's a DUD CHIP! :( i changed it over for another. works fine. (Yep - i'm using
picstart+, the pic plugged directly into socket.) Don't know what's gone wrong
as the chip hasn't suffered any accidents/heating/rev. polarity etc.
thankz everybody - probly would have messed about with it all week before
swapping over.
Debbie

Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...