The goal of my current project is a simple data logging from an external ADC using a SPI interface to an SD card via an Arduino UNO. The system operates but I am losing adc data while saving.
For example, in order to verify if I am getting the data properly, I supply a sine wave in the ADC input. As you can observe from the attached fig., data is missing. As expected, the data are sent though chunks of 512bytes. As I can observe from the logic analyser, at the time of sending the data to SD card, the ADC is not operating.
Is any suggestion on how to mitigate this issue? I assume that I cannot completely overcome it, since they are sharing the same SPI with only different CS pins.