Skip to main content
STee.3
Associate II
March 30, 2023
Question

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

  • March 30, 2023
  • 3 replies
  • 999 views

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??

This topic has been closed for replies.

3 replies

Piranha
Principal III
March 30, 2023

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

STee.3
STee.3Author
Associate II
March 30, 2023

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
Principal III
March 31, 2023

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.