This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1298ECGFE-PDK: ADS1298: Sharing the SPI bus?

Part Number: ADS1298ECGFE-PDK
Other Parts Discussed in Thread: ADS1298

Hello TI,

I am working on an EMG project and am using the ADS1298 analog front end module from Texas Instruments. I am using the AFE to capture and process the EMG signals, which are sent out through SPI to the my Adafruit Bluefruit Feather M0 ( which also uses SPI for BLE ).

Now I'm not going to lie most of this has been new learning curve for me and especially SPI. The issue I am facing here is that the AFE device is continuously streaming EMG data to the Adafruit Bluefruit Feather M0.

In software, I receive the data from the ADS1298 and convert it with 2's complement to convert the binary data back into voltage values (works well on Serial monitor). What I want to be able to do, is to plot the converted 2's complement signals on the Bluefruit LE Connect app i.e, contract muscle and waveform appears on BLE plotter.

I want to be able to this somewhat simultaneous (I'm aware SPI can't run simultaneously) - meaning with less than a 40 ms delay.

I'm not sure if anyone could shed some light on their experience trying to achieve a "simultaneous" shared SPI bus, how could it could be done.

If I'm not mistaken, the idea would be to fill a data buffer and pull the AFE CS HIGH to stop the COM, and to pull the CS LOW for BLE and the send the buffer over ( and repeat), i.e capture 216 bits > fill buffer > pull CS HIGH > pull  CS BLE LOW and repeat?

Now assuming I am using all 8 channels do I'm guessing I need to pull the ADS1298 CS line HIGH at specific times, and should I be using a command instead e.g. RDATAC/SDATAC?

My SCK is running at 4Mhz

I really appreciate any help you can provide! :)