Hi, what's the fastest code to entirely erase a 24LC512 eeprom? (I'm using a PIC18F2410)
Any help would be appreciated!
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.
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 " !!!
*****************************************
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
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
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
Bookmarks