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 CCS Technical Support

write to eeprom

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







write to eeprom
PostPosted: Wed Feb 20, 2008 8:07 am     Reply with quote

Hi,

inside my project i want to write some values to eeprom. My question is, if it´s better to disable interupts bevor writing or it´s not necessary.

Thanks

Thorsten
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Wed Feb 20, 2008 8:40 am     Reply with quote

There is not any general rule for this.
It is imposed by the priority of the various tasks running in a project, and depends of what kind of data you need to write in EEPROM.

If it is a data that is being stored at regular intervals, it doesn't matter if it is done a few milliseconds later.
If it is a data that you need to store in EEPROM after an unwanted power-fail, you do not have anything more important to do that - first of all - to disable ALL the interrupts and begin the writing procedure before the shut-off of the residual power.


Humberto
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