cancel
Showing results for 
Search instead for 
Did you mean: 

How to set M95640-W address

AChen.18
Associate

Hi expert,

I am new and just graduated, while I am trying to write and read data between MCU and EEPROM with SPI interface.

How could I get M95640-W address ? Is the address of EEPROM fixed or programmable ?

Thanks and regards.

3 REPLIES 3
Chris1
Senior III

The EEPROM does not have an address. When its Chip Select line is low, it will react to data on the SPI bus. If you have several devices on the SPI bus, only one of them should be selected at a time.

AChen.18
Associate

Hi Chris,

Thanks for the reply.

How about is there a parameter to check whether you are waiting enough time for EEPROM to write the data into EEPROM ? As I know, after sending EEPROM write sequence, it has to wait for stipulated time (mentioned in EEPROM datasheet) before READ operation. Could you show me the place in datasheet ?

Thanks.

The time depends on the current state of the EEPROM and may vary. For this reason, there is a bit WIP (Write In Progress) in the Read Status Register RDSR, which should always be checked before a new instruction. Details on this can be found in the data sheet of the M95640 in section 6.3.1.

The software package X-CUBE-EEPRMA1 also uses this method of querying whether the EEPROM is ready again.

Hope this answers your question?

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.