Adc Errors; Errors Due To The Adc Itself; Offset Error - ST STM32 Application Note

How to get the best adc accuracy in microcontrollers
Hide thumbs Also See for STM32:
Table of Contents

Advertisement

ADC errors

2
ADC errors
This section lists the main errors that have an effect on A/D conversion accuracy. These
types of errors occur in all A/D converters and conversion quality depends on their
elimination. These error values are specified in the ADC characteristics section of the
STM32 microcontroller datasheets.
Different accuracy error types are specified for the STM32 ADC. For easy reference,
accuracy errors are expressed as multiples of 1 LSB. The resolution in terms of voltage
depends on the reference voltage. The error in terms of voltage is calculated by multiplying
the number of LSBs by the voltage corresponding to 1 LSB (1 LSB = V
12
V
/2
DDA
2.1

Errors due to the ADC itself

2.1.1

Offset error

The offset error is the deviation between the first actual transition and the first ideal
transition. The first transition occurs when the digital ADC output changes from 0 to 1.
Ideally, when the analog input ranges between 0.5 LSB and 1.5 LSB, the digital output
should be 1. Still ideally, the first transition occurs at 0.5 LSB. The offset error is denoted by
E
. The offset error can easily be calibrated by the application firmware.
O
Example
For the STM32 ADC, the smallest detectable incremental change in voltage is expressed in
terms of LSBs:
1 LSB = V
If V
REF+
generation of a digital output of 1. In practice, however, the ADC may still provide a reading
of 0. If a digital output of 1 is obtained from an analog input of 550 µV, then:
Offset error = Actual transition – Ideal transition
= 550 µV – 402.8 µV = 141.2 µV
E
O
= 141.2 µV / 805.6 µV = 0.17 LSB
E
O
When an analog input voltage greater than 0.5 LSB generates the first transition, the offset
error is positive (refer to
10/49
).
/4096 (on some packages, V
REF+
= 3.3 V, the input of 402.8 µV (0.5 LSB = 0.5 × 805.6 µV) should ideally lead to the
Figure 7
REF+
for an example of positive offset error).
DocID15067 Rev 3
REF+
= V
).
DDA
AN2834
12
/2
or

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 and is the answer not in the manual?

Questions and answers

Table of Contents