How to read ADC data at 48ksps
I use the STM32U585, and an external ADC (ADS127L11). The ADC output 48000 sample per second, and rise a signal "Data Ready" for each sample. There is no data buffer in the ADC, thus the STM32U5 must communicate through SPI with the ADC 48000 times each second.
What is the best way to do that ?
I already have a working solution using multiple DMA channels, but it looks a bit clumsy in my opinion. And the solution has a very small (but not 0%) chance of triggering an undetectable error (and lose 1 sample) if the DMAs get too busy.
Is there an "official" way to achieve that ?
