ADC Oversampling issue with STM32G474RE
Hi all,
I am currently trying to implement ADC Oversampling so I can get 16-bit resolution of ADC result rather than 12-bit.
the dual simultaneous mode is used for ADC, ADC1 and ADC2 conversion, and the following is my STM32CubeIDE Setup:
ADC1 Ch 6 and ADC2 Ch 7 are used for the application.
(The application is for a motor control, and two ADCs are used for sensing the phase current from Gate IC)
basically, it was fully functional with 12-bit ADC without ADC oversampling mode.
but I wanted a higher resolution of the result, by using 16 bit result, to get nicer conversion results.
So I set both ADC to 16x of oversampling ratio as above.
However, the result was quite weird. the motor controller was not stable and it seemed the AD conversion is not properly oversampled.
Did I set something wrong?
I found following from its datasheet but quite not sure how it works.
And if n is the number of conversions, and N is Oversampling ratio,
how N can be 256x? STM32G4 supports only 16 times of number of conversion.
Kinda mixed up..
or, is ADC oversampling not for the application I am trying to?
Please help me out!
Bests,
IJo
