PDA

View Full Version : erasing eeprom...



microuser
- 10th July 2006, 11:50
Hi, what's the fastest code to entirely erase a 24LC512 eeprom? (I'm using a PIC18F2410)

Any help would be appreciated!

Acetronics2
- 10th July 2006, 12:35
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 !

sayzer
- 23rd July 2007, 15:37
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?
---------------------------------------

sayzer
- 24th July 2007, 08:08
I guess, the answer is NO.


The post is here anyway.


-----------------------------

Luciano
- 24th July 2007, 09:36
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