Skip to main content
Explorer II
May 9, 2025
Question

Dual ADC multi-channel sampling

  • May 9, 2025
  • 2 replies
  • 479 views

Does STM32 support dual-ADC multi-channel sampling? For example, ADC1 enables IN1 and IN2, and ADC2 enables IN3 and IN4. Is the storage method in the adc_buffer as follows?

  • adc_buffer[0]: High 16 bits = ADC1 IN1, Low 16 bits = ADC2 IN3

  • adc_buffer[1]: High 16 bits = ADC1 IN2, Low 16 bits = ADC2 IN4

And how should I configure this in CubeMX?

    This topic has been closed for replies.

    2 replies

    Super User
    May 9, 2025

    In general, yes, although samples will be interleaved. Look up dual mode interleaved in the relevant Reference Manual of your chip.

    Technical Moderator
    May 9, 2025

    Hello,

    You need always provide the STM32 part number. 

    Please review how to post a thread in this community on this post.

    Thank you for your understanding.