cancel
Showing results for 
Search instead for 
Did you mean: 

ADC use different channels at different time

Qiuzhen Zhu
Associate II
Posted on March 08, 2017 at 02:42

Hi! I got a problem when I was dealing with ADC. I am wondering if I need to use the multichannel at different time, which means I want to start one channel at a time  and get a thousand ADC data then stop ADC,after which open again but get value at different channel, what should I change in the main program?Thank you for ur help!

4 REPLIES 4
AvaTar
Lead
Posted on March 08, 2017 at 09:34

That depends on your application and the sample rate.

But you can sample all channels together, and simply discard (ignore) the values you don't need.

That would safe you from permanently configuring the ADC back and forth.

S.Ma
Principal
Posted on March 08, 2017 at 10:01

Which STM32?

Posted on March 13, 2017 at 00:26

STM32F411RET6

Posted on March 13, 2017 at 00:28

Hi,so there is no HAL function that could do so? The HAL function start adc dma seems to be open all the configured channel.