STMicroelectronics AN2668 Improving STM32F101xx and STM32F103xx ADC Resolution by Oversampling

The STMicroelectronics Medium- and High-density STM32F101xx and STM32F103xx Cortex™-M3 based microcontrollers come with 12-bit enhanced ADC sampling with a rate up to Msamples/s. In most applications, this resolution is sufficient, but in some cases where higher accuracy is required, the concept of oversampling and decimating the input signal can be implemented to save the use of an external ADC solution and to reduce the application consumption. This application note gives two methods to improve ADC resolution. These techniques are based on the same principle: oversampling the input signal with the maximum 1 MHz ADC capability and decimating the input signal to enhance its resolution. The method and the firmware given within this application note apply to both Medium- and High-density STM32F10xxx products. Some specific hints are given at the end of the application note to take advantage of the Medium- and High-density STM32F103xx performance line devices and of the High-density STM32F101xx access line devices. This application note is split into two main parts: the first one describes how oversampling increases the ADC-specified resolution while the second describes the guidelines to implement the different methods available and gives the firmware flowchart of their implementation on the STM32F101xx and STM32F103xx devices.


STMicroelectronics AN2668 Improving STM32F101xx and STM32F103xx ADC Resolution by Oversampling - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
21
File format
PDF
File size
206 KB
Published
07 August, 2012
Updated
28 September, 2023
MD5 checksum
36D924C23D9718B71FFEAF61675984F9

About this manual

This application note explains how to improve the resolution of the 12-bit enhanced ADC found in Medium- and High-density STM32F101xx and STM32F103xx Cortex-M3 based microcontrollers. It details two primary methods: oversampling using white noise and oversampling using triangular dither. These techniques allow for higher accuracy in applications requiring more than the standard 12-bit resolution.

What's inside

  • Definition of ADC signal-to-noise ratio
  • Nyquist theorem and oversampling
  • Oversampling using white noise
  • Decimation
  • Oversampling using triangular dither
  • Comparing the first and second methods
  • Hints for implementation

Specifications

ADC Resolution12-bit
ADC Sampling Rateup to 1 MHz
Maximum Input Frequency500 kHz

Frequently asked questions

How many additional bits are gained by doubling the sampling frequency?

Doubling the sampling frequency increases the measurement resolution by 1/2 bit.

What is required to use the white noise oversampling method?

The input signal must contain noise that approximates white noise with a uniform power spectral density, or artificial white noise must be injected.

Download PDF (206 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →