cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G474 Dual Simultaneous ADC question

Jbin0101
Associate II

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

2 REPLIES 2
TDK
Guru

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

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