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

Declaring Variables Directly into External EEPROM

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



Joined: 03 Mar 2009
Posts: 40

View user's profile Send private message

Declaring Variables Directly into External EEPROM
PostPosted: Sun Aug 08, 2010 11:40 am     Reply with quote

Hello all,

I have a quick question that I am unable to find the answer to. I was wondering if there is a way to basically declare a variable whose data location will not be local to the PIC chip that you are declaring it on but rather to an external eeprom memory chip.

I am using a 24lc64 chip with the ccs c 24lc64.c driver. This is the I2C chip and it works great with the write_ext_eeprom() and read_ext_eeprom() commands.

However, I was just wondering if there was a simple way to use these commands, or something similar, to have when I declare a variable, i.e. int num, that the data that I put into the variable "num" will be stored on the external eeprom instead of the PIC's mem?

I am just running out of space in my coding and need to free some stuff up and I know that would free a ton of space.

if anyone has any ideas it would be great to hear some.

Thanks to everyone!
Gary Smithson



Joined: 13 Feb 2004
Posts: 22

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

PostPosted: Sun Aug 08, 2010 11:50 am     Reply with quote

Look into the function addressmod. It is made specifically for this purpose.
misperry



Joined: 03 Mar 2009
Posts: 40

View user's profile Send private message

PostPosted: Fri Aug 13, 2010 12:53 pm     Reply with quote

Cool I will Thanks
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