cancel
Showing results for 
Search instead for 
Did you mean: 

Dual ADC multi-channel sampling

smile
Associate II

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 2
TDK
Guru

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
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.