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
Posted: Sun Aug 08, 2010 11:50 am
Look into the function addressmod. It is made specifically for this purpose.
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