Skip to main content
Qiuzhen Zhu
Associate
March 8, 2017
Question

ADC use different channels at different time

  • March 8, 2017
  • 4 replies
  • 1031 views
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!

    This topic has been closed for replies.

    4 replies

    AvaTar
    Senior III
    March 8, 2017
    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.

    Qiuzhen Zhu
    Associate
    March 13, 2017
    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.

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

    Which STM32?

    Qiuzhen Zhu
    Associate
    March 13, 2017
    Posted on March 13, 2017 at 00:26

    STM32F411RET6