> Van: mahfoud rahal > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: PIC 16C84 Bulk Erase > Datum: zondag 24 januari 1999 17:27 > > Hi, Hello mahfoud, > I'm working on a PIC16C84 programmer project. All programming commands > given in DS30189D documentation from Microchip are working fine except > for "BULK ERASE PROGRAM MEMORY" and "BULK ERASE DATA MEMORY" >witch are 001001 and 001011 respectively. > > For example, in chapter 2.3.1.8 (BULK ERASE PROGRAM MEMORY) > the doc says: > 1- Do a "Load Data All 1's" command > 2- Do a "Bulk Erase User Memory" command > 3- Do a "Begin programming command" > 4- Wait 10 ms to complete bulk erase > > When I read back the chip, no location of the Prog Mem changed, > am'I missing something or is there some mistakes in DS30190D. > Any idea ? Yes. It's a problem MicroChip does not have the solution for ... I talked with the person who wrote the article & asked him to check it. He recommended to use the "Erase protected code" method. You don't have to. Just exchange steps 2 & 3. It does not make sense, but it works. > Note: I can do the equivalent operation by writing 3FFF in all program > memory locations but this consumes much more time. And it is counted as a full programming-cycle. So a full Erase-and-programming step will count as _two_ programming steps, chopping the number of times you can re-program your EEPROM in HALF ! > Thanks for your time and attention. You're welcome. Greetz, Rudy Wieser