2025-11-10 4:21 AM
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):
Is this achievable with some out-of-the-box CubeMX configuration settings?
Alternatively, I'd also be happy with a sequence like this:
Thanks already!
KR, Michael
2025-11-10 6:42 AM
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.
2025-11-10 6:46 AM
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...