| Electronics > Projects, Designs, and Technical Stuff |
| SPI EEPROM - polling status register for WIP/RDY |
| (1/1) |
| HwAoRrDk:
I'm currently writing some MCU code that interfaces with an external SPI EEPROM, but am unsure whether a method I would like to use is widely supported by all EEPROM manufacturers. Using the RDSR command, the status register can be read to determine whether there is a write still in progress by looking at the WIP (a.k.a. RDY) bit. The datasheet for the particular EEPROM chip I'm using from ST (an M95256) says that the status register can be repeatedly read by continually clocking bytes out - that is, you can continuously read the status over-and-over as many times as you like in one SPI transaction. Does anyone know whether EEPROMs from other manufacturers support this method of polling the status register? I have looked at datasheets for equivalent chips from Microchip (25AA256), Atmel (AT25256B) and ON Semi (CAT25256), but I can't see any explicit mention of whether this is supported. :-// |
| HB9EVI:
afaik from my few projects using SPI eeproms (25LC640) it's the same; I didn't check now if bit positions are the same, but at least all is named the same way. |
| HwAoRrDk:
Yes, the bit positions and meaning all seem to be standard; I have no concern there. Just whether continuous clocking out of the status register is supported by all manufacturers. Wish I had the foresight to buy a variety of parts from various manufacturers so I could test for myself. |
| HwAoRrDk:
I have been reading some app notes from various manufacturers (Microchip, Atmel, ISSI) and they all implicitly show - in flow diagrams or example code - a full SPI transaction cycle (toggling CS, issuing RDSR command, etc) for polling the status register. This seems... needlessly inefficient. Surely it can't be just ST EEPROMs that facilitate polling by continuous clocking, can it? |
| HwAoRrDk:
Well, I think I found my own answer. In ST application note AN2014, they state: --- Quote ---For compatibility reasons, it is recommended to send the full RDSR command each time instead of continuously reading the status register. --- End quote --- So, one must conclude that the latter behaviour is not supported by many (or all) other manufacturers. It would be nice if other manufacturers explicitly said so in their datasheets or app notes, but they don't. >:( |
| Navigation |
| Message Index |