Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 1 > USB to SPI

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



USB to SPI
Moderator:
ARVI

Post Reply
Follow this topic



USB to SPI

WASGP posted on 11 Apr 2011 1:34 AM PST

1 Forum Post

Hi All

My first post and I hope this is the right section.

I'm using a CY3209 Dev Board designing a USB to SPI interface bridge. I programmed CY8C24894 to be my SPIM and CY8C29666 as my SPIS.

After a few questions with the technical team, I had a project example from this link: http://www.cypress.com/?rID=34330. I cloned this project but selected the chipsets that I will be using accordingly. Additionally, I routed a few of the onboard LEDs to the MOSI/MISO,SS and SCLK signal bus so that I would be able to know that data is transferring between the master and slave.

However, as I'm not very strong in my C program, I'm not too sure of what modifications I had to make in order for it to work proper. As a result, using the software provided in the link, USB to SPI.exe, I am unable to get the results as indicated in the pdf that came with the link too.

Attached in the zip file is my screenshot and program.

Looking at the main.c file of the SPIM, i spotted this syntax which assigns the Slave Select to a register for CY8C24894. Under the comments, the slave select pin is P0[2]. However, on the schematic of the CY8C24894, Slave Select pin is P0[7] instead.

//Set the SlaveSelect pin P0[2] to high.
    //(Since SlaveSelect is Active Low)
    PRT0DR |= SLAVE_SELECT;

What needs to be changed for this?

Is there anything else that I need to take note or possibly a good reference that I can used?

Thank you!




Re: USB to SPI

graa posted on 11 Apr 2011 05:10 AM PST
Cypress Employee
275 Forum Posts

I dont see the attachments in your post.  Can you attach them?

 

Best Regards,

Ganesh

The PSoC Hacker






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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20