Two SPI connections simultaneous?

Hi there!
I have a question regarding SPI:

I have an Analog Front End device with SPI connection interfaced to a MCU with included bluetooh capabilities.

The AFE is reading emg muscle contractions.

The thing is that the AFE is continuously communicating with the MCU sending serial data (the emg signals), and I want to know if it’s possible to simultaneously plot these signals with Bluetooth at the same time as the AFE is sending data.

I’m trying to avoid changing SPI modes when plotting Bluetooth as I need to be continuously reading the muscle activity.

So is this possible, and if so how can I do it ?

Thanks :slight_smile:

I guess the Bluetooth device is also connected to your MCU via SPI.
Is the MCU the SPI master in both cases?
Maybe provide link for the AFE, the MCU and the Bluetooth device, the code you are running and a diagram of how the devices are interconnected.

Hi 6v6gt

The microcontroller has built in Bluetooth capabilities https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/overview

I am connecting to an Analog Front End device http://www.ti.com/tool/ADS1298ECGFE-PDK

From what I can find online it seems like I will have to oscillate between SPI modes to plot the data by Bluetooth in live time.

First you have to determine whether the modes are compatible, if so no need to alternate, just use
different CS lines for each device. compatible means same clock speed, same CPHA and CPOL senses.

In not compatible you'll probably get away with reprogramming the SPI settings each time - I presume
we are not talking super fast sampling rates here?

That's a high resolution ADC, you'll need to sample at very accurate points in time to get the
benefit of all that resolution (perhaps you don't need anything like 24 bits?)

Where is the code and what is the sample rate and existing SPI clock speed?