cancel
Showing results for 
Search instead for 
Did you mean: 

HRTIM triggered injected group ADC sampling with Oversampler

ms_vahle
Associate II

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 

2 REPLIES 2
TDK
Super User

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.

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

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