February 2017 DocID15067 Rev 3 1/49
1
AN2834
Application note
How to get the best ADC accuracy
in STM32 microcontrollers
Introduction
STM32 microcontrollers embed up to four advanced 12-bit ADCs (depending on the
device). A self-calibration feature is provided to enhance ADC accuracy versus
environmental condition changes.
In applications involving analog-to-digital conversion, ADC accura
cy has an impact on the
overall system quality and efficiency. To improve this accuracy, the errors associated with
the ADC and the parameters affecting them must be understood.
ADC accuracy does not only depend on ADC performance and features, but also on the
ov
erall application design around the ADC.
This application note aim is to help understand ADC errors and explain how to enhance
ADC ac
curacy. It is divided into three main parts:
• a simplified description of ADC internal structur
e to help understand ADC operation and
related ADC parameters
• explanations of the different types and sources of ADC errors related to the ADC design
and to external ADC parameters such as the external hardware design
• recommendations on how to minimize these errors, focusing on hardware and software
methods
www.st.com