Skip to main content
Visitor II
September 20, 2023
Question

SPI EEPROM M95512-W

  • September 20, 2023
  • 1 reply
  • 3987 views

Hello,

I am trying to write to this EEPROM and when I do, what I read back is always some other data, as if the EEPROM is write protected.

The sequence of instructions I am using are:

 

CMD 0x06 - Write Enabke

CMD 0x05 - Read status register, returns value 0x02

CMD 0x05 - Read status register, returns value 0x02

CMD 0x06 - Write Enabke

CMD 0x01 - Write Status register value 0x02

CMD 0x05 - Read status register, returns value 0x03 for 3.2msec, then returns value 0x00

CMD 0x06 - Write Enabke

CMD 0x02 - write to memory address 0x0000 value 0x33 (64 times)

CMD 0x05 - Read status register, returns value 0x02

CMD 0x03 - Read from memory address 0x000 and get value 0xAA 0xAA (then stops reading as the value is wrong)

 

The /W (write protect pin) is pulled down on PowerUp and the /HOLD pin is pulled up to to Vcc.  Before writing I set the /W pin High.

 

Is there something else I should be doing to get the chip to be write enabled?

 

    This topic has been closed for replies.

    1 reply

    Explorer II
    May 21, 2024

    Did you try to the change the address?

    Can you share the code?