I want to connect 2 SPI slave with on instance. Issue is to mange chip select pin. I went through few post, people suggested to check SPI manger library. I am not able to get how it can solve my problem. Any help? Last option is to do it manually.
I want to connect 2 SPI slave with on instance. Issue is to mange chip select pin. I went through few post, people suggested to check SPI manger library. I am not able to get how it can solve my problem. Any help? Last option is to do it manually.
Hi,
The SPI driver does not support controlling multiple chip select pins, but you can control the pins manually in your application. Chip select is not handled by the SPI peripheral, it is simply GPIO toggling in software. Set the pin config to NRF_DRV_SPI_PIN_NOT_USED/NRFX_SPI_PIN_NOT_USED.
Best regards,
Jørgen
SPI transaction manager can take a complete configuration struct as argument together with a transaction. This will reconfigure the entire SPI peripheral between transaction with different configs. It can be useful in some cases, but if you just want to interface two similar devices that do not need reconfiguration of other SPI parameters, this might give you much overhead in the application.
Thanks for the help. If required, Please let me know how to close this ticket.
It is not required, but you can mark answer as verified. That will "close" the case.
It is not required, but you can mark answer as verified. That will "close" the case.