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

EEPROM Interrupt

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



Joined: 24 Nov 2009
Posts: 5

View user's profile Send private message Visit poster's website

EEPROM Interrupt
PostPosted: Tue Nov 24, 2009 1:56 pm     Reply with quote

Hi,

I want to know how we can use the EEPROM interrupt mechanism to store the data into internal eeprom memory. I am running a computation intensive process so that i want to have a minimum time latency on the computation. I would appreciate the prompt reply.

Regards
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Nov 27, 2009 7:53 pm     Reply with quote

Here is some code that uses the EEprom interrupt to do buffered writes
to Data EEprom. It's not written in CCS but it looks like it could be
easily translated.
http://svn.psas.pdx.edu/svn/psas/tags/oct2004-rc1/c/firmware/PicCore/pc_eeprom.c
http://svn.psas.pdx.edu/svn/psas/trunk/c/firmware/PicCore/pc_eeprom.h

I don't want to translate it to CCS for you. I am just giving you these
links to answer your question.
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Fri Nov 27, 2009 8:30 pm     Reply with quote

Are you using the EEPROM for usage intensive operations?

In case you are, EEPROM is bad for that. EEPROM has a typical write-cycle life limit which can easily be blown away with constant write cycles.

Otherwise,

Carry on. :D

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
ahmadkamalnasir



Joined: 24 Nov 2009
Posts: 5

View user's profile Send private message Visit poster's website

EEPROM
PostPosted: Sat Nov 28, 2009 6:00 am     Reply with quote

Thanks for replying PCM PRogrammer. Smile
In the source code which you have refered why we have to disable the interrupts during the reading operation? Question For me disabling the interrupts during writing is obvious but why for reading when this is fast!!

P.S.: "bkamen" I am not using eeprom frequently, only when new parameters have to be stored. I am aware of the limited write cycles of the internal eeprom.
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