EasyManuals Logo

ST STM32 Application Note

ST STM32
49 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #25 background imageLoading...
Page #25 background image
DocID15067 Rev 3 25/49
AN2834 How to get the best ADC accuracy
48
3.2.4 Adding white noise or triangular sweep to improve resolution
This method combines hardware and software techniques to improve precision. From a
software point of view, this method uses averaging (oversampling) and from a hardware
point of view, it uses signal modification/spreading/dithering.
Averaging can be used in cases where the input signal is noisy
(some signal change is
necessary in order to be able to calculate an average) and the requirement is to obtain the
mean value of a signal. A problem appears when the input signal is a very stable voltage
without noise. In this case, when the input signal is measured, each data sample is the
same. This is because the input signal level is somewhere between two ADC word levels
(e.g. between 0x14A and 0x14B). Therefore it is not possible to determine the input voltage
level more precisely (e.g. if the level is near to 0x14A or near to 0x14B level).
The solution is to add noise or some signal ch
an
ge (with uniform signal distribution e.g.
triangular sweep) to the input signal which pushes its level across 1-bit ADC level (so that
the signal level changes below 0x14A and above 0x14B level). This causes the ADC results
to vary. Applying software averaging to the different ADC results, produces the mean value
of the original input signal. The STM32L0 and STM32L4 microcontrollers feature hardware
oversampling, which can be used instead of software oversampling.
As an example, this method can be implemented
by using a triangular generator with RC
coupling to the input signal (white noise generation is more complicated). Care must be
taken not to modify the mean value of the original input signal (so, capacitive coupling must
be used).
A very simple implementation of the quasi-triangular
source which is generated directly by
the STM32 microcontroller is on Figure 22.
Figure 22. Simple quasi-triangular source using a microcontroller output
DLE
&
5
9
,1
0&8
287
W
W
8
,1
9
,1
5
9
''
$,1
8
287

Table of Contents

Other manuals for ST STM32

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32 Specifications

General IconGeneral
SeriesSTM32
CategoryMicrocontrollers
CoreARM Cortex-M0, Cortex-M0+, Cortex-M3, Cortex-M4, Cortex-M7, Cortex-M33
Clock SpeedUp to 480 MHz
GPIO PinsUp to 144
Communication InterfacesI2C, SPI, USART, USB, CAN, Ethernet
Package TypesLQFP, BGA, WLCSP
ADC Resolution12-bit, 16-bit (varies by series)
DAC Resolution12-bit (varies by series)
Operating Temperature-40°C to +85°C or +105°C

Related product manuals