CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Flash...

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

Flash...
PostPosted: Thu Dec 18, 2003 6:46 pm     Reply with quote

A simple but interesting question...how many times can I rewrite a cell in the flash of PIC16F87x before it fails? The datasheet says 10000 times, but what is the value for a good practice?
Steve H.
Guest







PostPosted: Fri Dec 19, 2003 9:22 am     Reply with quote

Good practice for a commercial product is not to go over the minimum endurance during the life of the product. If it's a project for you - then go for the max, you can always burn another chip, right?
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Fri Dec 19, 2003 4:34 pm     Reply with quote

Thanks. What is the minimum endurance for writing to the flash? Anyone knows the figure?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Dec 19, 2003 9:36 pm     Reply with quote

I know that I could probably find it in the datasheet if I were to look Very Happy
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sat Dec 20, 2003 12:54 am     Reply with quote

I never post any questions here before I make sure the answer is not in the datasheet Very Happy

Take PIC16F876 for example. Nowhere in the datasheet it mentions the maximum number of writes to the flash. However, in the datasheet of PIC16F876A it says that value is 10,000 for PIC16f876 (and 100,000 for PIC16F876A). Unfortunately it doesn't mention any 'recommended' values anywhere. Anyone out there wo may know about this? Thanks.
Gerd



Joined: 15 Dec 2003
Posts: 6

View user's profile Send private message

PostPosted: Sat Dec 20, 2003 9:11 am     Reply with quote

Hi Haplo,

I could never find a minmum or recommended values for PIC's. It is a normally difficult to get valus for most Flash memorys.
In the last years I always used 10% of maximum rating, this is maybe a little overcautious, but it worked for me.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sat Dec 20, 2003 9:28 am     Reply with quote

From the datasheet:

Quote:

The PIC16F87X devices do not automatically verify the
value written during a write operation. Depending on
the application, good programming practice may dictate
that the value written to memory be verified against
the original value. This should be used in applications
where excessive writes can stress bits near the specified
endurance limits.
only a full erase of the entire device will disable code
protection.


Take a look at page 158 of this pdf:
http://www.microchip.com/download/lit/pline/picmicro/families/16f87x/30292c.pdf

Look under the minimum column for Program Flash Memory
[/quote]
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sat Dec 20, 2003 4:05 pm     Reply with quote

Thanks. That value (1000) is the minimum, not the recommended. But I think I'll stick to that.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group