Skip to main content
Explorer
November 10, 2025
Question

HRTIM triggered injected group ADC sampling with Oversampler

  • November 10, 2025
  • 2 replies
  • 138 views

Hello!

I'm working with a STM32G474 and would like to achieve, that a HRTIM trigger is used to trigger sampling of an injected group in an ADC. So far, I managed to set everything up and have the system running. But now, I'd like to combine this mechanism with the ADC Oversampler. The course of actions I'd like to achieve would look as follows (assuming Oversampling ratio x4 and 2 channels in the injected conversion sequence):

HRTIM_scheme.png

Is this achievable with some out-of-the-box CubeMX configuration settings?

Alternatively, I'd also be happy with a sequence like this:

HRTIM_scheme2.png

Thanks already!

KR, Michael

    This topic has been closed for replies.

    2 replies

    Super User
    November 10, 2025

    No. The ADC has a single data register. It needs to do all 4 conversions of one channel before it moves on to the next channel. Only way to do what you want is with software oversampling.

    ms_vahleAuthor
    Explorer
    November 10, 2025

    I don't think so - the injected channels all have individual data registers (ADC_JDRy) on the STM32G474. That's why I would expect that also the oversampling result ends up in those registers and that the channels can be processed in interleaved fashion...