Hello all,
Do you advise to have 2 SPI interfaces - one for the sensors we're using (accelero/ gyro) and another one for the SD card? if so, when adding an SD card to our board we have to change pins, is that correct? thanks for your quck answers
Hello all,
Do you advise to have 2 SPI interfaces - one for the sensors we're using (accelero/ gyro) and another one for the SD card? if so, when adding an SD card to our board we have to change pins, is that correct? thanks for your quck answers
It depends. If you do not need to have transfers at the same time you can use only one SPI instance.
When using one instance you also have a choice. If you wish to save some GPIOs both slaves can share MOSI, MISO and CLK lines and only have sparate PINs for SS.
You can take a closer look to nrf_spi_mngr (http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_nrf_spi_mngr.html?cp=4_0_0_3_44) functionality, it allows to schedule transfers with different PIN configuration.
It depends. If you do not need to have transfers at the same time you can use only one SPI instance.
When using one instance you also have a choice. If you wish to save some GPIOs both slaves can share MOSI, MISO and CLK lines and only have sparate PINs for SS.
You can take a closer look to nrf_spi_mngr (http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/lib_nrf_spi_mngr.html?cp=4_0_0_3_44) functionality, it allows to schedule transfers with different PIN configuration.