Searching \ for 'How do I bulk erase a 16F84?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=16F
Search entire site for: 'How do I bulk erase a 16F84?'.

Truncated match.
PICList Thread
'How do I bulk erase a 16F84?'
1999\04\19@000723 by Thomas Vogels

flavicon
face
Hi, I'm currently hacking my own programmer hardware and software.
The last problem I ran into: I can't bulk erase my PIC 16F84.  The
sequence according to the manual is:

Send LOAD_DATA with all 1s, followed by BULK_ERASE and BEGIN_PROGRAM.
Then wait 10ms.

When I try this, nothing changes.  Since the rest works (i.e. I can
program, verify, read configuration), I have no clue what I'm doing
wrong.  Has anybody an idea of what could fail?  Does anyone ever use
this feature (maybe in combo with the code "unprotect" sequence)?

Thanks,  -tom


P.S.  Why yet another programmer?  On the hardware side, I wanted to
see my parallel port protected (at least thru at TTL transceiver).  On
a notebook, you've got only one and losing it is expensive.  On the
software side, I wanted a simple programmer that runs under Linux.
This entails:  no busy loops for timing, checked ioperms, etc.  While
I was at it, I wrapped a Tcl/Tk interface around my programmer
software.  Now I have something close to an IDE and it's close to
being released.  Anybody interested?

--
spam_OUTtovTakeThisOuTspamece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204

1999\04\19@070618 by Caisson

flavicon
face
> Van: Thomas Vogels <.....tovKILLspamspam@spam@ece.cmu.edu>
> Aan: PICLISTspamKILLspamMITVMA.MIT.EDU
> Onderwerp: How do I bulk erase a 16F84?
> Datum: maandag 19 april 1999 5:50

Hello Thomas,

{Quote hidden}

Yes, one of those Boo-boo's MicroChip made.  When I talked to the person
who made the doc's he could not tell me what the problem/solution was.
After some experimenting the solution appeared to be :  Just swap the
BULK_ERASE and BEGIN_PROGRAM commands.  It makes no sense, but it works.

Greetz,
 Rudy Wieser

1999\04\19@123044 by Nigel Goodwin

flavicon
picon face
In message <.....199904190350.XAA24032KILLspamspam.....infiniti.ece.cmu.edu>, Thomas Vogels
<EraseMEtovspam_OUTspamTakeThisOuTECE.CMU.EDU> writes
>Hi, I'm currently hacking my own programmer hardware and software.
>The last problem I ran into: I can't bulk erase my PIC 16F84.  The
>sequence according to the manual is:
>
>Send LOAD_DATA with all 1s, followed by BULK_ERASE and BEGIN_PROGRAM.
>Then wait 10ms.
>
>When I try this, nothing changes.  Since the rest works (i.e. I can
>program, verify, read configuration), I have no clue what I'm doing
>wrong.  Has anybody an idea of what could fail?  Does anyone ever use
>this feature (maybe in combo with the code "unprotect" sequence)?

I never managed to get the MicroChip code to work either, however
someone in Belgium (I think) advised me what to do to make it work. Here
is the sample Delphi/Pascal code from my programmer.

Procedure EraseAll;
Var
 i : Byte;
Begin
 {Clear Protect fuse}
 ProgMode(POn);
 Command(LdConf);
 OutWord($3FFF);
 FOR i := 0 TO 6 Do
   Command(IncAdd);
 Command(1);
 Command(7);
 Command(BegPrg);
 Delay(ProgDelayTime);
 Command(1);
 Command(7);
 Command(BegPrg);
 Delay(ProgDelayTime);
 ProgMode(POff);

 {Clear Data memory}
 ProgMode(POn);
 Command(LdData);
 OutWord($3FFF);
 Command(BegPrg);
 Command(ErsDat);
 Command(BegPrg);
 Delay(ProgDelayTime);
 ProgMode(POff);

 {Clear Prog memory}
 ProgMode(POn);
 Command(LdProg);
 OutWord($3FFF);
 Command(BegPrg);
 Command(ErsPrg);
 Command(BegPrg);
 Delay(ProgDelayTime);
 ProgMode(POff);
End;

Basically I just add a second 'Begin programming' command after the
'Bulk Erase' command as well as before it.
--

Nigel.

       /--------------------------------------------------------------\
       | Nigel Goodwin   | Internet : nigelgspamspam_OUTlpilsley.demon.co.uk     |
       | Lower Pilsley   | Web Page : http://www.lpilsley.demon.co.uk |
       | Chesterfield    | Official site for Shin Ki and New Spirit   |
       | England         |                 Ju Jitsu                   |
       \--------------------------------------------------------------/

1999\04\19@141044 by David Tait

flavicon
picon face
See:

http://www.ee.oulu.fi/~lapi/KissPIC/erasepic.html

If don't have WWW/FTP facilities of your own and are looking for
somewhere to post your finished programmer, consider my PIC archive.

David
--
http://www.man.ac.uk/~mbhstdj

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