2019-11-23 08:40 AM
2019-11-25 03:52 AM
Hi @hadi_bijari ,
You can start with a TIMER that starts ADC conversion at the desired rate.
Use also DMA that can help performance.
Then add a ADC block for end of conversion interrupt that can call a GPIO block.
At the end, check with an oscilloscope that the CPU frequency of the STM32 device you are using is fast enough to handle interrupts correctly.
Demonstrations are available in the STM32-MAT/TARGET tool for some parts of this use case (ADC, TIMER).
Regards.
Cyril