- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using 4200M dev kit for a project. The PSOC is configuring an SCB as SPI Master in configured mode and talks to three slaves off board. Two of my slaves use the falling edge of the clock to clock in the data whereas one slave uses the rising edge of the clock to clock in the data. I am also using Firmware controlled chip select for each of the slave
Is it possible to change the SPI Sub mode for each of the slave at run time via any API? I looked through the data sheet for the SCB component version 4.0 and could not find any.
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Tags:
- scb spi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Sreedhar,
You might need to use SCB configuration, which is set to “Unconfigured SCB” in the customizer.
You have option to specify Sub mode - void SCB_SpiInit(SCB_SPI_INIT_STRUCT *config)
http://www.cypress.com/file/408071/download Page 107
Thanks
Jobin GT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Sreedhar,
You might need to use SCB configuration, which is set to “Unconfigured SCB” in the customizer.
You have option to specify Sub mode - void SCB_SpiInit(SCB_SPI_INIT_STRUCT *config)
http://www.cypress.com/file/408071/download Page 107
Thanks
Jobin GT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also modify/change the SPI to configure it for different modes of operation as the program runs; E.G. switching between master and slave, turning it on/off for using the GPIO for other uses, etc.