Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Interfacing with Sparkfun transceiver (SPI)?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Interfacing with Sparkfun transceiver (SPI)?
Moderator:
ANCY

Post Reply
Follow this topic



Interfacing with Sparkfun transceiver (SPI)?

Texton posted on 27 Jul 2012 11:11 AM PST
Member
10 Forum Posts

Hi all. 

I am trying to interface my PSoC5 microcontroller with a the Sparkfun transceiver: nRF24L01 through SPI. The data sheet for the transceiver says that it will return the status register every spi-cycle if not given a command.

If I for example send a read-command to the tranceiver, then the register I requested should be available in the next SPI-cycle. 

 

Now, problem is that even though I send a command to the transceiver, it always return the status register - for some reason it doesn't get/understand my commands?? 

Anyone having any experiences with this or have an idea why it doesn't get/understand my commands?..

 

Thanks in advance - i am really disparate!! 




Re: Interfacing with Sparkfun transceiver (SPI)?

SpiderKenny posted on 29 Jul 2012 02:53 PM PST
Top Contributor
83 Forum Posts

 Do you have access to a Oscilloscope or Logic analyzer so you can see the data on your SPI lines?

Or even a simple logic probe to just to see if your line is toggling properly?

Basically you should check that your electrical connections are good, make sure you have a common ground between the two modules, and make sure they are both operatin at the same VCC - or at the very least that they can tolerate each other's VCC if not the same.

The check your schematic and make sure you have it all connected correctly, then use a scope or analyzer to 'see' the data on the lines.

 

I hope this helps.



Re: Interfacing with Sparkfun transceiver (SPI)?

DanyLapointe posted on 04 May 2013 07:40 PM PST

1 Forum Post

Hi Trenton,

 

Any chance that you can post your source code for interfacing the transceiver.

 

Thanks



Re: Interfacing with Sparkfun transceiver (SPI)?

Bob Marlowe posted on 05 May 2013 02:02 AM PST
Top Contributor
1768 Forum Posts

I found myself a cheap, good working logic analyzer which is capable of decoding I2C, SPI and some more protocols. Though it does not use PSoCs (too bad!) i could recommend it, it saved me hours of testing.

I do not want to use tis forum as a commercial and I promise not to have any relations to that company.

Decide for yourself at http://www.ikalogic.com/ikalogic-products/scanalogic-2/

 

Bob



Re: Interfacing with Sparkfun transceiver (SPI)?

hli posted on 05 May 2013 01:47 PM PST
Top Contributor
675 Forum Posts

And if you really want to save money, there is a build-yourself-kit available. (There are also other version of this idea available, for example the logicboost). Maybe we should build a version based on the PSoC?



Re: Interfacing with Sparkfun transceiver (SPI)?

pavloven posted on 06 May 2013 11:16 PM PST
Top Contributor
78 Forum Posts

Then the devise should have at least one analog channel. It is hard to compete with the professionals :http://www.usbee.com/usbeeax-protestpod. But!!! Sdes on the forum, we have seen some great projects. Is it time to create a section of open source projects on the PSoC?
 



Re: Interfacing with Sparkfun transceiver (SPI)?

hli posted on 06 May 2013 03:13 AM PST
Top Contributor
675 Forum Posts

You mean something like my analog-digital mixed scope (http://www.cypress.com/?app=forum&id=2233&rID=51610 )? Unfortunately it runs only up to 1Msps :(

But I have something like the ikalogic scope in my mind, but up to 16bit, 2 analog channels anmd 40Msps... Whenever I figure out how to implement proper trigger logic in a data path / UDB, I will build this with the PSoC. (since it would need to work with 40MHz, all operations must be finished within 1 clock cycle, which seems to be complicated in the datapath)



Re: Interfacing with Sparkfun transceiver (SPI)?

pavloven posted on 06 May 2013 04:58 AM PST
Top Contributor
78 Forum Posts

I think if the author of the topic will lay out the project here to see prices, visitors will be able to apply their analyzer.
In the meantime:
Yes, I was referring to this project.   1Msps - will satisfy many.And more:
Hardware/DMA Based Multichannel Sample System
http://www.cypress.com/?app=forum&rID=66562
ENC28J60 - PSoC3 - Part 1 - SPI
http://kmmankad.blogspot.ru/2012_06_01_archive.html
KeyPad component
http://www.cypress.com/?app=forum&id=2492&rID=68603
etc.
It is a pity that these ideas are dissolved in the depths of the forum and become invisible.
I created a folder Community Projects  on my PC.

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20