What is the maximum speed of the ADC with DMA? I ma trying to setup ADC 400 kHz sample rate and use DMA to transfer ADC samples to buffer. However, after filling the buffer and receiving the DMA interrupt (DMA disables), I notice that DMA doesn't write all the data correctly.I connected to ADC miander 50kHz and expect to have in buffer four samples high leve and next four low but I see in buffer randomly high and low values.
Upon reducing the ADC sample frequency to 200 kHz, the DMA buffer correctly fills with two high values followed by two low values.
As a start project I used example adc12_max_freq_dma and modify it to trigger ADC by Timer0 event.
Could you advise what is the maximum ADC speed with DMA or where can be the mistake?