Skip to main content
Associate 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?

2 replies

TDK
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.

"If you feel a post has answered your question, please click ""Accept as Solution""."
mƎALLEm
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.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.