Hi Alik,

Some EEPROMs have address inputs such as A0, A1, and A2. These are binary inputs meaning 000 is the first EEPROM, 001 is the second, 010 is the third, 100 is the fourth, 101 is the fifth, 110 is the sixth and 111 is the seventh. So now if you needed alot of memory, you could have up to 7 different EEPROMs on your system. All of these EEPROMs will share the sda,scl,vcc, and vdd pins. You would set the address of each EEPROM by placing vcc or vdd on the appropriate address pins to set each units specific address.

Some EEPROMs have a chip select input. Here you apply usually a low signal to this input to access the locations.

As for how to code each of these you will need to search the forums here as I have seen some examples posted in the past. Your post donesn't say what it is exactly you are doing with the extra memory, being a data logger or what. But something that comes to mind is you could assign through your program certain items be stored in each memory location and your program will keep track of what's store in what memory chip. I kinda got the feeliing you are doing a logger of some sort. I have seen examples where the pic keeps track of how many records have been stored and knowing how many locations are used in each record doing the math, you would then know how many records can be stored on each chip and then you would know when to switch to the next EEPROM. I haven't seen any actual data logger programs on this forum but I have seen one in Nuts & Volts magazine a couple of years ago in the Stamp articles. It shouldn't be too hard to figure out how to do it from there.

If you are able to get a copy of Les Johnson's book, "Experimenting with the PICBasicPro Compiler", there is a section that explains how to work with the different types of Serial EEPROM technologies such as I2C, SPI, and Microwire. Excellent book!

Chuck Hellebuyck's book "Programming PIC Microcontrollers with PICBasic" has an example program using a 16F876 to store data in an external EEPROM. I believe he offers this book for a free download on his site www.elproducts.com.

Hope some of this helps you out.

BobK