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

Adding SD-Card as second SPI slave

Hi,

we have a nRF52 DK getting sensor values from a Sensor connected as SPI-Slave. Everytime there is a new Sensor Value (~20 ms) the sensor generates an Interrupt and pulls a GPIOTE Pin of the nRF down. In the Interrupt event handler the nRF52 queries the value over SPI and updates a custom BLE-characteristc. Everything works fine as expected.

In a next step we have to write the sensor value to a SD-Card as well. What is the best approach to solve it and to add the SD-Card to the existing system:

1/ Connect the SD-Card as a second SPI Slave, and control the CS pin on my own (as GPIO)?

2/ As we have enough pins left: Connect the SD Card with it's own MISO, MOSI, CLOCK and CS and create an extra SPI-Instance just for the write operations?

3/ Another way?

Thank you - kind regards

Related