SPI Master and slave mode [CYBLE-212020-01]

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

cross mob
Anonymous
Not applicable

Hello,

I have a question about SPI component.

Device: CYBLE-212020-01

1) Is it possible to assign both Slave and Master to the SPI (SCB mode) component?

2) Is it possible to share the four pins (miso, mosi, sclk, ss) using in both Slave mode and Master mode?

3) If 1) and 2) are impossible, any other way?

Best Regards

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

You will need to have the SCB component in unconfigured mode and configure it in firmware. There is a code example for SCB unconfigured available with PSoC Creator. Please have a look at that.

Thanks,

Hima

View solution in original post

0 Likes
2 Replies
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

You will need to have the SCB component in unconfigured mode and configure it in firmware. There is a code example for SCB unconfigured available with PSoC Creator. Please have a look at that.

Thanks,

Hima

0 Likes
Anonymous
Not applicable

As hima​ stated, you will need to use the SCB component in unconfigured mode, and then manually switch/set which mode you are using and when to get it to flip between master and slave modes.

0 Likes