Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Putting SPI pins in high impedance mode

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



Putting SPI pins in high impedance mode
Moderator:
RSKV

Post Reply
Follow this topic



Putting SPI pins in high impedance mode

Chrigu posted on 15 Nov 2012 11:55 PM PST
Member
6 Forum Posts

Hi Everybody

I search a way to put the SPI pins in high impedance mode. Does the function CyU3PSpiDeInit() put all SPI pins of the FX3 in high impedance mode or is there another way to do that?

Thank you

Chris




Re: Putting SPI pins in high impedance mode

Lumpi6 posted on 15 Nov 2012 01:12 AM PST
Top Contributor
183 Forum Posts

Hi,

the SpiDeInit function may put the pins into high impedance but if not and you want to do it safely, then you can additional use after the SpiDeInit the GpioOverride function to override each SPI pin as an input. That should then really do what you like to have. To re-activate the SPI you may reinitialize the iomatrix, that can be a bit tricky.

regards,

lumpi



Re: Putting SPI pins in high impedance mode

Lumpi6 posted on 15 Nov 2012 01:13 AM PST
Top Contributor
183 Forum Posts

Hi,

I forgot, always check the return values of the Override or the IoMatrix function to check if configuration was successful.

regards



Re: Putting SPI pins in high impedance mode

Chrigu posted on 15 Nov 2012 01:43 AM PST
Member
6 Forum Posts

Ok, i will try this.

Thank you lumpi!



Re: Putting SPI pins in high impedance mode

Lumpi6 posted on 21 Nov 2012 02:29 AM PST
Top Contributor
183 Forum Posts

Hi Chrigu,

was it successful?

regards,

lumpi



Re: Putting SPI pins in high impedance mode

Chrigu posted on 21 Nov 2012 04:27 AM PST
Member
6 Forum Posts

Hi Lumpi..

I used CyU3PSpiDeInit() and checked the SPI pins then. They are in fact high impedant. So i'm happy with this solution.

Thanks for your help Lumpi.

Best regards



Re: Putting SPI pins in high impedance mode

Lumpi6 posted on 21 Nov 2012 08:16 AM PST
Top Contributor
183 Forum Posts

Hi Chrigu,

you are welcome. Great to know that  it works...

regards,

lumpi






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.