EEPROM page write doubt

Status
Not open for further replies.

burningmosfet

Member level 1
Joined
Sep 13, 2010
Messages
38
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
1,579
Hello everybody i'm working with a EEPROM M24C04 (datasheet) and i have a doubt on write page mode.
If you read the 3.6.2 paragraph on the datasheet it tells you that you can write up to 16bytes of data PROVIDED that they must be in the same memory page to avoid roll-over.

The datasheet also says " ... in the same page in the memory: that is, the most significant memory address bits are the same".

Now, if i have 4096 bytes of E2 memory this means that its addresses are:

0x0000
0x0001
....
0x0FFE
0x0FFF

So in my case the MSB bitS are always zero and there is just a page ? Otherwise if i use a M24C08 i have 8k and therefore 2 pages ? Where is written that a page is 4096 bytes? Is it a standard?
Forgive me for this trivial questions but i can't find an answer.
 

2404 is a 4kbit memory, providing 512 Bytes and uses 9 rather then 12 address bits.

Read the datasheet and ask again, if any questions are left after that.

---------- Post added at 17:43 ---------- Previous post was at 17:37 ----------

I calculate 32 pages ...
 
thanx FvM I was mistaken in reading. Yes 24c04 is 4Kbits so i have 512 bytes (0x0200 addresses) and the highest address is 1`1111`1111 (0x01FF) but which are the MSB bits? The ninth?
You calculated 32 pages because you divided the 512bytes by 16bytes (of maximum sequential writing) ?

---------- Post added at 18:44 ---------- Previous post was at 17:46 ----------

[/COLOR]I calculate 32 pages ...

You calculated 32 pages because you divided the 512bytes by 16bytes (which is the maximum # of bytes in writing) ?
 
Last edited:

which are the MSB bits? The ninth?
You can see it at page 10 of the datasheet, MSB first.

You calculated 32 pages because you divided the 512bytes by 16bytes (which is the maximum # of bytes in writing) ?
correct

So in my case the MSB bitS are always zero and there is just a page ?

the datasheet says:
The Page Write mode allows up to 16 bytes to be written in a single Write cycle, provided
that they are all located in the same page in the memory: that is, the most significant memory address bits are the same

so it means that all the bytes are the same except the one in the right (LSB)

0xFF0
0xFF1
0xFF2
...
0xFFF

Alex
 
Ok thank you Alex, usually in the datasheet they tells the total number of pages or byte in the pages but this wasn't the case so i preferred to ask...
Have a nice week
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…