- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I forgot, always check the return values of the Override or the IoMatrix function to check if configuration was successful.
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, i will try this.
Thank you lumpi!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chrigu,
was it successful?
regards,
lumpi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Chrigu,
you are welcome. Great to know that it works...
regards,
lumpi