cancel
Showing results for 
Search instead for 
Did you mean: 

hello every one. I need read ADC with 33.3 KHz by simulink to set GPIO output any suggestion

hadi_bijari
Associate II
 
1 REPLY 1
Cyril FENARD
ST Employee

​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