Author Topic: What is the purpose of WP pin in a SPI NOR flash.  (Read 8067 times)

0 Members and 1 Guest are viewing this topic.

Offline madhu.wesly01Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: in
  • If you want to be happy, BE!
What is the purpose of WP pin in a SPI NOR flash.
« on: October 17, 2017, 05:38:11 pm »
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.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #1 on: October 17, 2017, 06:14:25 pm »
If you don't need write protection, then just pull-up or pull-down it as described in the datasheet for the device.
Alex
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9886
  • Country: us
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #2 on: October 17, 2017, 06:15:08 pm »
It's probably covered in the datasheet.  It is for the Cypress part but it doesn't do what I though it would do.

http://www.mouser.com/ProductDetail/Carling-Technologies/2GG51-73/

You MAY find that it is pulled high internally and can be ignored.  Or not...
 

Offline madhu.wesly01Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: in
  • If you want to be happy, BE!
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #3 on: October 18, 2017, 05:17:13 am »
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.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #4 on: October 18, 2017, 05:18:30 am »
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:
Quote
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.
« Last Edit: October 18, 2017, 05:20:43 am by ataradov »
Alex
 
The following users thanked this post: madhu.wesly01

Offline madhu.wesly01Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: in
  • If you want to be happy, BE!
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #5 on: October 18, 2017, 05:25:00 am »
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.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #6 on: October 18, 2017, 05:26:02 am »
Can you actually tell what device you are using? This is kind of important.
Alex
 

Offline madhu.wesly01Topic starter

  • Regular Contributor
  • *
  • Posts: 74
  • Country: in
  • If you want to be happy, BE!
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #7 on: October 18, 2017, 05:32:12 am »
I am using Winbond's SPI NOR Flash - W25Q256FV. And Controller - ATSAMD21G18.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11228
  • Country: us
    • Personal site
Re: What is the purpose of WP pin in a SPI NOR flash.
« Reply #8 on: October 18, 2017, 05:36:17 am »
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.
Alex
 
The following users thanked this post: madhu.wesly01


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf