Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > SPI daisychaining

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



SPI daisychaining
Moderator:
ANCY

Post Reply
Follow this topic



SPI daisychaining

maxiguzman66 posted on 29 Apr 2013 8:51 AM PST
Member
6 Forum Posts

 Hello to everybody,

I have been foolish myself trying to put one Master SPI and two Slave SPI in daisychain. The idea was: 

1. Both SPIS are loaded with some data,

2. Writing one dummy byte in the SPIM it would go out via MOSI to the first SPIS, while the bits are entering this component, the previously loaded data bits would be leaving the device via MISO which in turn might be feeeding the second SPIS, which would be doing the same. At the end of the Master writting cycle, inside the Master Rx might be the byte comming from the second SPIS and inside the second SPIS Rx would be the data loaded in the first SPIS. Writting another dummy byte in the MAster would make appear the second loaded byte in the Rx Master register. SS signal and MCLK being shared by both slave devices.

It seems that the Rx register is a different one that the Tx register and so the data entered is not reshifted to the output, making daisychaining impossible. Curiosly, if the slave components are not Started(), the thing semms to work OK. 

 

Can somebody help me?

 

Thanks.

Maxi Guzman.




Re: SPI daisychaining

hli posted on 29 Apr 2013 01:16 PM PST
Top Contributor
675 Forum Posts

Are you talking about having all these component in the PSoC5? How did you do the daisy-chaining? The SPI slave component doesn't support this. When I understand you right you want to write from ther master to both slaves, but the slaves are not in parallel (as they are usually), but are connected in series.



Re: SPI daisychaining

H L posted on 29 Apr 2013 06:22 PM PST
Top Contributor
679 Forum Posts

Serial SPI is possible with chips that designed for such operation, you have to raise a case to check that with Cypress.



Re: SPI daisychaining

danaaknight posted on 30 Apr 2013 05:50 AM PST
Top Contributor
1773 Forum Posts

This may not be much help, but a discussion of daisy chaining w/o SPI.

 

www.cypress.com/

 

Regards, Dana.



Re: SPI daisychaining

H L posted on 01 May 2013 07:40 PM PST
Top Contributor
679 Forum Posts

 I think that sensor is designed to be able to used in daisy chain mode. 






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