ADC DMA interrupt triggers very slowly when the ADC conversion is triggered by a timer
Hi,
The MCU is STM32F4
I put the Timer2 (60MHz clock) to trigger every 100mS. it means it triggers its interrupt and ADC every 100mS. Below is the configuration of the ADC and Timer2.
I checked the TIM2 interrupt by a GPIO toggle and it gets fired every 100mS or 50Hz which is correct.
BUT the ADC DMA gets fired almost 2 times per second, it means 2Hz!!!
.
it is weird because I just put 100 for the buffer and whole sampling to fire the ADC DMA interrupt must not take more than 100 * 0.5uS = 50uS , because each ADC channel can handle the speed of 2Msps. This ADC sampling speed is achivable and I tested it, if the ADC works in the continuous conversion mode, but I could not achieve this when I trigger it externally.
The triggering is much slower than the ADC and this should not make any timing conflicts, it means the whole ADC conversion finishes much sooner (50uS) before the next trigger comes in
