Multiple EEPROM 24LC


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by alik View Post
    I wish to increase the memory capacity in a device by adding multiple eeproms (24LC512), so that when the memory becomes 90% full it switches to the next eeprom by removing the power, i guess i could do this by sharing the sda/scl/gnd with all the eeproms and supply the vcc as a high output from a port on a pic 16f876. the question is what code would i use to know when the memory was 90% full or even 100%.
    any help would be appreciated.
    Thank you
    Although I do not know of a way to "automatically" detect when it is full, it should be quite easy. Presumably, if you are building the board and coding the PIC, you know what size the eeprom is and how much you have already written to it. Something simple like this, just before your write command...

    if MemoryAddress > $ffff - WRITESIZE then
    MemoryAddress = 0
    WriteAddress = WriteAddress + 1
    if WriteAddress > MaxWriteAddress then goto FullTimeSleep
    Endif

  2. #2
    Join Date
    Feb 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Exclamation update

    Thank you for your replies.

    Sorry I forgot to mention, it is for an off the shelf data logger and i do not have acces to recode the device, it will only work with the 24lc512, i have tried changing it to a 24lc1025, but the device does not work. so what i need to do is build an external circuit on which to have multiple 24lc512 eeproms and power up one at a time once the previous becomes full, using the high output from a port on the 16f876 as the Vcc for the 24lc512.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. Multiple Pics accessing single EEPROM
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd February 2008, 17:22
  4. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts