cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to to use same ADC in STM32 to sample at two different frequency simultaneously??

STee.3
Associate II

I have one ADC, whose channel 1 to 4 will start conversion at x time and channel 5 to 8 will start conversion at y time. May I know how to use the same ADC in an STM32 microcontroller to sample at different frequencies for different channels??

3 REPLIES 3
Piranha
Chief II

Look for regular and injected modes, if your device has such a feature. You didn't provide a part number...

STee.3
Associate II

STM32L4.

I am using regular conversion mode for channel 1 to 4 and ADC starts its conversion at 1ms. And I decided to use injected conversion mode for channel 5 to 8 and ADC starts injected conversion at 1s.

Guide me through this

Piranha
Chief II

STM32L4 is not a part number. And you've understood what feature you have to use. Now go and implement it in code. There are plenty of examples all around the internet.