cancel
Showing results for 
Search instead for 
Did you mean: 

Writing data to M95M04

totaw.1
Associate II

I am creating a program to write data arbitrarily to the M95M04.

 

The M95M04 has 512-byte pages, but does writing have to be done in page units?

For example, when writing 8 bytes of data starting from address 8, is it acceptable to specify address 8H and write 4 bytes? Or do I need to read 512 bytes from address 0, modify the 4 bytes of data starting from address 8, and then write back all 512 bytes?

 

thank you 

1 REPLY 1
Peter BENSCH
ST Employee

EEPROMs like the M95M04 are always addressable byte by byte. The division into pages makes sense because it allows you to write to such a page in one go without having to send the address overhead for each byte.

The data sheet, section "Write to Memory array" also describes how to write more than one byte in one go.

Hope that answers your questions?

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.