Skip to main content
Visitor II
September 16, 2022
Question

How to set M95640-W address

  • September 16, 2022
  • 2 replies
  • 1034 views

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.

    This topic has been closed for replies.

    2 replies

    Visitor II
    September 16, 2022

    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.18Author
    Visitor II
    September 27, 2022

    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.

    Technical Moderator
    October 6, 2022

    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