erasing eeprom...


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    20

    Question erasing eeprom...

    Hi, what's the fastest code to entirely erase a 24LC512 eeprom? (I'm using a PIC18F2410)

    Any help would be appreciated!
    Last edited by microuser; - 10th July 2006 at 11:52.

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink Datasheet ...

    reading the EEPROM Datasheet shows a page write feature ... and running it seems the fastest way ... as you do not have to transmit the address to reach 127 times on 128 ...

    seems also possible due to the memory page buffer to clear pages while the processor does something else ... ( 512 k/8*5ms + control and addressing time ) = ???? ... some lost time, at least !!! )

    Alain

    PS: the fastest code ... is to write new data upon old values !!! just clear one specific location ( i.e. the first ) if you want to flag a new recording !
    Last edited by Acetronics2; - 10th July 2006 at 12:47.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Going through the posts, still I could not be successful at erasing a 24LC512 using page write feature.


    Say, assigning $FF to each address in the fastest way possible.

    Anyone successfully done this?
    ---------------------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default No Women No cry!

    I guess, the answer is NO.


    The post is here anyway.


    -----------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    To send 128 bytes to the 128 bytes on-chip page buffer will take about 5 ms. (400 kHz I2C).
    To write these 128 bytes to the EEPROM memory will take 5 ms.

    So to write the 512 pages of a 24LC512 will take (512 * 10) = 5120 ms. (About 5 seconds).

    Make sure you know where are the page boundary.
    Avoid page boundary crossings! (See datasheet).

    Best regards,

    Luciano

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. How to define constants that specify eeprom addresses
    By DwayneR in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th December 2009, 04:07
  3. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  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