Skip to main content
Explorer
December 20, 2024
Solved

STM32G474 Dual Simultaneous ADC question

  • December 20, 2024
  • 1 reply
  • 1163 views

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.
    Best answer by TDK

    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.

    1 reply

    TDKAnswer
    Super User
    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.

    Jbin0101Author
    Explorer
    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.