cancel
Showing results for 
Search instead for 
Did you mean: 

USB Superspeed Peripherals

Anonymous
Not applicable

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

0 Likes
Reply
6 Replies
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

Hi,

   

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

   

regards

0 Likes
Reply
Anonymous
Not applicable

Ok, i will try this.

   

Thank you lumpi!

0 Likes
Reply
Anonymous
Not applicable

Hi Chrigu,

   

was it successful?

   

regards,

   

lumpi

0 Likes
Reply
Anonymous
Not applicable

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

0 Likes
Reply
Anonymous
Not applicable

Hi Chrigu,

   

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

   

regards,

   

lumpi

0 Likes
Reply