You are here

CY14B101Q NVRAM interfacing through SPI | Cypress Semiconductor

CY14B101Q NVRAM interfacing through SPI

Summary: 4 Replies, Latest post by maheshwarreddy681_2041456 on 30 Nov 2016 01:43 AM PST
Verified Answers: 0
Last post
Log in to post new comments.

I am using CY14B101Q NVRAM in my board which is interfaced through SPI, Can anyone send me sample code of Initialization, read & write if NVRAM . And give me steps to read and write the NVRAM through SPI interface.

Sudheesh K's picture
Cypress Employee
41 posts

We have an application note explaining how to use our SPI nvSRAM devices. It is available from our website at: http://www.cypress.com/documentation/application-notes/an64574-designing.... Example projects for PSoC devices are also available from this link, you can use them as a reference to develop your application.

-Sudheesh

I  had followed  the same procedure as mentioned in the above link . But the Writing to and reading from  NVRAM the is not  happening, but some times it happens  write and readare both possible. 

Sudheesh K's picture
Cypress Employee
41 posts

What is the SPI frequency and SPI mode you are using? Can you share the SPI waveforms (MOSI, MISO, SCK, CS) for read and write operations while the failure happens? Also, please share your read and write functions (source code) if possible.

-Sudheesh

Hai Sudheesh ,

Sorry for the late reply.

SPI mode : Master Mode , SPI clock : 357Khz

Earlier I am facing Read/write of NVRAM issue , it has resolved now. But now I got stuck on onather issue. that is

>> I am able read/write a location of NVRAM through SPI interface, But if I tried same with another location its not happening. I am using same Read/Write routines which I have used for first time.

For the first time whatever location I choose read/write is happening , But for second time facing problem.

I have attached Read & write routines of NVRAM. 

Beast Regards

Maheshwar Reddy

Log in to post new comments.