- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm trying to access the SPI block without using the Cypress functions. I have clk, ssn and mosi working properly. But the miso line is pulled low as soon as I set the GCTL_IOMATRIX register to either GPIO+SPI or UART+SPI+I2S. I'm not sure what I'm not doing. Do I have to explicitly set that pin as an Input in it's GPIO_SIMPLE register or something?
Any help on the sequence needed to bring up the SPI block would be appreciated. I haven't found any examples that include the register accesses. If you know of any please let me know.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't see a way to fix it but I made a mistake in the title. It's MISO that is pulled low. No way for the original poster to modify or delete a post??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To understand how we bring up the SPI block, you can read the source code for CyU3PSpiSetConfig() in [SDK Root]\firmware\lpp_source\cyu3spi.c.
But if I may ask, why do you need direct register writes to configure the block? The CyU3PSpiSetConfig function is already does what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content