I2CWRITE writing Strings to EEPROM


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Not at this point, many stuff to be finished before... still need time.

    i've plan a program to edit EEPROM that allow to move/insert/delete EEPROM addresses. Handy IMO.

    I've a snippet that work, I'll let you know as soon as it's finished.
    Last edited by mister_e; - 29th January 2005 at 22:41.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Question Problem with wasted Space in Page Writing to EEPROM

    Using the same 25LC512 EEPROMs, I have a similar issue I think...

    I write 36 bytes per record which I get every .25 seconds.. maybe faster. I want to write these to EEPROM, but not take a whole page (128b). I understand I can't write to addresses in the size I want, ie 0, 36, 72, 108, 144, etc, but rather only 0, 128, 256, etc.... This leads to massive waste of space

    How does one make use of the unused EEPROM space? I can't write byte at a time because it takes too long...

    1. If I page write to anything from 0 to 128 will it overrite that page?

    2. Should I be thinking about a way to save data into a string that is 128b long before writing it? Like perhaps creating a 'superstring' that has 3 x 36 bytes, and write that (only wasting 20b per page?)

    Thanks,

    Tom

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    TOM,

    you haven't told us all details,
    but let's do some math based on the info we have:

    36 bytes per record
    one record every 250 ms
    EEPROM size 512kbit

    You can store about 1770 records
    It will take about 7.5 minutes to completely fill up your EEPROM.

    Probably FRAM would be a better choice.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Default

    Ralph:

    Be happy to fill in any gaps, I was trying to be as complete as I could without using too much junk..

    You are right about 7.5 min per chip if I can not waste any space.. Two chips = 15 min at that rate, at 1 second update much more.

    I am not familiar with FRAM.. How is it used? Does PBP work easily with it?

    Tom

  5. #5
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Tom Gonser
    I am not familiar with FRAM.. How is it used? Does PBP work easily with it?
    Tom
    The FRAM is great! Virtually unlimited write cycles, writes data as its clocked in with no write delay, single byte writes, available in SPI, I2C etc.
    Check out Ramtron.

    Arch

  6. #6
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    TOM,

    FRAM is handeled just like EEPROM (I2C)

    have a look at www.ramtron.com
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



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, 15:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 04:17
  3. My I2CWRITE - timings and tricks
    By FinchPJ in forum Code Examples
    Replies: 5
    Last Post: - 3rd March 2008, 22:40
  4. Code Problem - Strings/ LCD/ internal EEPROM
    By jorge in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 4th February 2008, 21:24
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20: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