Page 1 of 1

SPI bandwidth for analog to digital device

Posted: Mon Nov 09, 2020 9:14 am
by rnleao
Hi All,

I am trying to hook the esp32 to a ADC that is capable to send 24bit resolution 8 channel data via SPI with speeds that vary from 500 to 16000 samples/s. Could the esp32 handle it? 8 data samples (24 bit) at 10KHz? thanks for the help!

Re: SPI bandwidth for analog to digital device

Posted: Mon Nov 09, 2020 10:18 pm
by Scott.Bonomi
It depends on what you planning to do with the data. Also on who the master is. If the ADC is master then all the ESM32 has to do is respond to interrupts, copy the data, and send it out on WiFi. That is likely doable with a single processor. If you plan to do any data processing, you will need to spread the data out from 24 bits to 32, run a filter, and do that in 12.5 uSecs for each sample. With a dual processor system the answer is probably, if you only need a few fixed point biquads for filtering. After that I would be concerned about staying up with real time.

Re: SPI bandwidth for analog to digital device

Posted: Tue Nov 10, 2020 12:57 pm
by rnleao
thank you! yes, the ADC is the master and I just want to send the data via wifi, no processing.