I have configured the STM32 ADC in the DMA mode (circular) which fills a buffer, for example, a buffer with 100 elements (buffer[100])
I have set a timer to generate PWM pulse and I want that the falling edge of the PWM is used as the ADC trigger. I mean when the Timer or internal trigger happens, the ADC should do the conversion of all 100 samples, then it must wait for the next trigger to start the conversion again.
I don't want to use interrupts because interrupts could have unknown jitter or time shift, but in my case, I want to sample the input signal without any possible shift in the sampling and if I use the timer interrupt as a trigger (to start the ADC DMA), then some unwanted shifts in the conversions might happen, because the conversions start point is not a fixed number.
unwanted time shifts in the sampling should be as low as possible, even in the range of nS.
I use CubeMX.
I have set a timer to generate PWM pulse and I want that the falling edge of the PWM is used as the ADC trigger. I mean when the Timer or internal trigger happens, the ADC should do the conversion of all 100 samples, then it must wait for the next trigger to start the conversion again.
I don't want to use interrupts because interrupts could have unknown jitter or time shift, but in my case, I want to sample the input signal without any possible shift in the sampling and if I use the timer interrupt as a trigger (to start the ADC DMA), then some unwanted shifts in the conversions might happen, because the conversions start point is not a fixed number.
unwanted time shifts in the sampling should be as low as possible, even in the range of nS.
I use CubeMX.