This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Interfacing 2 SPI slaves with different SPI modes on a single instance

Hello Everyone, 

I am using nRF52 DK and i have 2 SPI slaves (ADC and EEPROM). ADC works with SPI mode 1 and EEPROM works with SPI mode 0. 

I figured that i need to manually handle the slave select in the SW itself, but i am confused as to how to use 2 slaves with different SPI modes with just one single SPI instance enabled.

In my project, i cannot use another SPI instance as all other pins will be occupied by something or the other peripheral. 

Could you please guide me on how to solve the problem mentioned above? Will unintializing SPI instance and then initializing it back with a different mode and ss pin work? Or is there is a simpler way to all this? 

Please let me know. 

Thank you! 

Related