Hi,
I am going to use a SPI NOR flash as a Data logger in my design for storing GPS coordinates. I could not get clarity on the Write Protect(WP) pin on a NOR flash memory. Could any-one let me know what exactly it is and its hardware connections if we want to interface it to a Micro-controller?
Thanks & regards,
Madhuwesly.
If you don't need write protection, then just pull-up or pull-down it as described in the datasheet for the device.
Thanks
for the reply @ataradov. Could you please let me know what it actually do? Basically, when I have gone through few reference schematics the WP pin is pulled high in the applications.
My requirements are : READ and WRITE, if possible ERASE/RESET.
If this pin is low, then flash will disregard any destructive operations (erase/write). Just pull it high and forget about it.
You still have not told us what chip you are using, so here is a quote from some random Micron datasheet:
Write protect: The W# input signal is used to freeze the size of the area of memory
that is protected against program or erase commands as specified by the values in
BP2, BP1, and BP0 bits of the Status Register.
Reads pretty clear to me.
Thanks for the prompt reply @ataradov.
Will the operations - "Erase and Write" considered as disruptive operations when it is active(Active LOW)? In this state can we read from the device?
Could you please tell me what are the operations can be performed when it is active and inactive?
Thanks & regards,
Madhuwesly.
Can you actually tell what device you are using? This is kind of important.
I am using Winbond's SPI NOR Flash - W25Q256FV. And Controller - ATSAMD21G18.
Well, it says it right in the datasheet "The Write Protect (/WP) pin can be used to prevent the Status Register from being written." That's all it does. The consequences of that you can figure out by reading the description of the Status Register.
Just pull it high, and forget about it, you will be able to do whatever with the flash.