You are here

(CY7C60445) SPI Tx_Buffer_Empty is always 1 (other flags are all constants also) | Cypress Semiconductor

(CY7C60445) SPI Tx_Buffer_Empty is always 1 (other flags are all constants also)

Summary: 1 Reply, Latest post by danaaknight on 17 Aug 2013 04:48 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Uberdolly's picture
1 post

I'm trying to make CY7C60445 and CYRF8935 communicate via SPI communication.

I followed the example codes from the datasheet, and it goes like this: (see attached txt)

The problem is, it does not transmit any data, nor does it receive any data.
All the received data were found out to be zero.

That's because the status flags are all wrong.


These 3 flags are always high. Before SPIM_Start, during SendTxData, or after whatever. Throughout the whole process the RX buffer is always full, Tx buffer is always empty and SPI communication is always complete.

What's this embarrassment?

Has anyone experienced any similar problems? What am I doing wrong?

Many thanks!


user_14586677's picture
7646 posts

One thing I noticed is you are doing read-modify-write operations on

GPIO registers, so you need to look at using shadow registers.    AN2094


Also consider posting the project so whole context can be looked at. In Designer, thats "File",

"Archive Project".


Regards, Dana.

Log in to post new comments.