STM32G031 ADC Hardware Oversampling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-22 7:30 PM
Hello,
I'd like to use hardware oversampling to increase the ADC resolution to 16 bits. However, this is something I've never done. Is there documentation or examples available on this method? Has anyone had experience with this topic?
Thanks,
- Labels:
-
ADC
-
STM32G0 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-22 8:37 PM
The reference manual RM0444 goes over it in quite some detail. Did you look there?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-26 1:40 AM
I think, increasing the "resolution" is not the main benefit of hardware oversampling.
But you can use it to make the results of a conversion "more stable" (integration). For instance, enable the oversampling by 2 and shift the result one step left (divide by 2) will give a 12-bit result with an automatic integration.
This is very useful for sampling slow input values. LL_ADC_ConfigOverSamplingRatioShift(ADC1, LL_ADC_OVS_RATIO_256, LL_ADC_OVS_SHIFT_RIGHT_8) gives a high integration in hardware without the need of additional code (or RAM). But keep in mind, the resolution is always 12bit...
