Motorala SPI Sub Mode with PSOC4200 M SCB configured as SPI master

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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.

0 Likes
1 Solution
JobinT_31
Employee
Employee
50 solutions authored 25 solutions authored 10 solutions authored

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

View solution in original post

2 Replies
JobinT_31
Employee
Employee
50 solutions authored 25 solutions authored 10 solutions authored

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

Anonymous
Not applicable

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.

0 Likes