2022-09-16 07:00 AM
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.
2022-09-16 12:08 PM
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.
2022-09-27 02:29 AM
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.
2022-10-06 01:19 AM
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