u/icecatsin r/embedded • Recommends
How to process ADC data as fast as it is stored via DMA STM32?
Hi,
As an intro project, I am trying to create a simple oscilloscope-like device with STM32 (using NUCLEO-L476RG board). I am piping ADC data to memory via DMA ~~and have measured the speed at \~4 MHz~~ (edit: I'm now using a timer to trigger the ADC to sample at 1 MHz). I am using a double buffer and would like to process the data in one half of a buffer while the other half is being filled. Currently, my processing function is simply looking for a peak value.
Unfortunately, my processing function can't process the buffer fast enough to keep up with the ADC as shown in the first scope image (purple is buffer reaching half f…