Skip to main content
Associate II
December 20, 2024
Solved

STM32G474 Dual Simultaneous ADC question

Fairly basic question;

 

When working with CubeMX, I want to set up ADC1 and ADC2 to trigger and sample at the same time, using an HRtimer trigger pulse, at about 5 MSPS. ADC1 is sampling channel 1, and ADC2 is sampling channel 4.

I have them working right now, using two separate DMA channels. I want to try and improve this, and use only one channel. They NEED to sample at the same exact point in time, but I'm a little confused by this option in Cubemx. 

Jbin0101_0-1734712742952.png

which implies that there will be an inherent delay between the two ADCs sampling... But, reading the reference manual, there's no mention of a delay unless you're using an interleaved mode or alternate trigger mode.

Is what I'm wanting not possible to do with dual regular simultaneous mode? Or is this a bug or not actually relevant to the dual simultaneous sample mode?

Thank you.

 

This topic has been closed for replies.
TDK
TDKBest answer
December 22, 2024

This setting changes the DELAY field which is only used in dual interleaved mode.

TDK_0-1734832164855.png

 

In dual simultaneous mode, the two ADCs are always sampled simultaneously, as one would expect.

"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
December 22, 2024

This setting changes the DELAY field which is only used in dual interleaved mode.

TDK_0-1734832164855.png

 

In dual simultaneous mode, the two ADCs are always sampled simultaneously, as one would expect.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Jbin0101Author
Associate II
December 23, 2024

Thank you! I do feel like there should be some clarification somewhere in cubeMX. It's a little ambiguous / misleading as it is.