Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > SPI Programming in PSoC3

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



SPI Programming in PSoC3
Moderator:
RKRM

Post Reply
Follow this topic



SPI Programming in PSoC3

HappyHour posted on 08 Oct 2012 4:37 AM PST
Member
10 Forum Posts

I wanted to code SPI interface in PSoC but is so far unsucessful. I used Arduino to check if my slave device chips are working. It had a simpler coding such as "data=SPI.transfer(0x00);" to send and receive data at the same time. I had alot of problem understanding how the same function can be implemented in PSoC. Is there any one with a code snippet that can enlighten me on how I can receive and send data on the same Master device in PSoC? (P.S. Example projects are confusing =( ). Thank you!

 

 




Re: SPI Programming in PSoC3

H L posted on 08 Oct 2012 05:20 AM PST
Top Contributor
679 Forum Posts

 There are SPI program in the example programm provided.  See if you can make sense of the prg\ogram.



Re: SPI Programming in PSoC3

H L posted on 08 Oct 2012 06:02 AM PST
Top Contributor
679 Forum Posts

This thread may be useful. Download the files submitted and study it.

http://www.cypress.com/?app=forum&id=2232&rID=51593

Happy coding



Re: SPI Programming in PSoC3

HappyHour posted on 09 Oct 2012 04:46 AM PST
Member
10 Forum Posts

Thanks for the response!



Re: SPI Programming in PSoC3

Gautam Das posted on 11 Oct 2012 02:37 AM PST
Cypress Employee
742 Forum Posts

Hi HappyHour,

 

You can refer to the example project which ships along with PSoC Creator. In PSoC Creator Component Catalog, right click on the SPI component, and select the Example project.

 

You can modify the project according to your requirement and get it to working.

 

Referring to component datasheet will help you understand the role of the APIs and how the component has to be configured to match your needs.

 

 

Regards,

Gautam






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