does the EEPROM pagesize 64 byte vs 128 byte matter?
StefanL38
Posts: 2,292
Hi I would like to use a 64 kByte EEPROM Microchip 24FC512-I/P instead of a 32kByte type Microchip 24AA256-I/P.
The technicial data says the 24AA256-I/P has a pagesize of 64 bytes, the 24FC512-I/P has a pagesize of 128 bytes.
Does this pagesize matter when using it with a propeller-chip?
If yes does anybody know of a 64kByte-EEPROM with pagesize 64bytes?
best regards
Stefan
The technicial data says the 24AA256-I/P has a pagesize of 64 bytes, the 24FC512-I/P has a pagesize of 128 bytes.
Does this pagesize matter when using it with a propeller-chip?
If yes does anybody know of a 64kByte-EEPROM with pagesize 64bytes?
best regards
Stefan
Comments
So, yes it somehow matters, but it's not a problem.
The point is that the page-write mode should be preferred for multi-byte-continuous-access. Because in the byte-write-mode the EEPROM will erase the whole page writing back the content of all unchanged bytes by itself. So, byte-write-mode will erase the block 128 times if you do a continuous write of 128 bytes. This wears out the EEPROM much faster and of course takes longer.
That's at least how I read the datasheet:
http://ww1.microchip.com/downloads/en/devicedoc/21754m.pdf (page 10)
thank you for your answer. Knowing to use the blockmode is important too. I should have been more precise about what I want to know.
Does the pagesize matter for downloading code into the EEPROM ( I mean hitting F11 in the propeller-tool for writing the code into the EEPROM)?
best regards
Stefan
Regards,
Andreas
However, if you write software that assumes a larger page size, it will not work properly with a 64-byte page size.
So you forced me to look at the source code for the booter that's stored in the Prop's ROM. It uses a page size of 64 bytes. As I said, this will work with EEPROMs that have page size of 64, 128, 256 or even larger. However, it would not work with an EEPROM that has a smaller page size, such as 32 bytes.
I was surprised to learn a write byte command rewrote the whole page.
So if you write 16 bytes, the EEPROM is erased 16 times?
It seems like it would be a good idea to use a buffer in the Props RAM to read out the page and then write it back the edited bytes rather than writing multiple individual bytes.
A couple of years ago, I used this technique to write to Winbond flash chips since the page had to be erased prior to being written. The chip (Winbond) itself didn't have an "edit" feature (IIRC).
Do any of you know if any of the current EEPROM/I2C drivers use a buffer to save wear on the chip?