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 #44 background imageLoading...
Page #44 background image
How to get the best ADC accuracy AN2834
44/49 DocID15067 Rev 3
An extra large C
ext
(C
ext
>>
C
sh
U
max
U
lsb
------------- -
) enables sampling more often.
However, increasing C
ext
limits the frequency bandwidth of measurement signal (increasing
the “external” timing constant R
in
. C
ext
).
The formulas below show how to choose the optimal C
ext
value: signal bandwidth in
correlation with sample time. Signal bandwidth is characterized by an “external” timing
constant, so optimal solution is to charge C
ext
during t
C
:
After simplification we obtain the final formula for optimal C
ext
:
and the corresponding waiting time between conversions:
Practically the firmware must not program the ADC in continuous mode but only in single
mode and must ensure that there will be a time gap between conversions with duration
equal to t
C
. This adding of waiting time is the software change which must be applied
together with the hardware change (adding an external capacitor C
ext
).
Without implementation of t
C
waiting time in software (for instance, running a conversion just
after the first one) the external capacitor C
ext
will be cyclically charged from the C
sh
capacitor. After a lot of cycles the voltage on C
ext
will reach a quite high error value (as
previously shown in Figure 36).
A practical example of implementation for STM32L1 ADC is shown below:
C
sh
= 16 pF ..... ADC property
R
in
= 150 k ..... signal source property
R
in
C
ext
()t
C
=
R
in
C
ext
()R
in
C
ext
() In 1
C
sh
C
ext
-----------
U
max
U
lsb
------------- -
=
1 In 1
C
sh
C
ext
-----------
U
max
U
lsb
------------- -
=
e
1
1
C
sh
C
ext
-----------
U
max
U
lsb
------------- -
=
C
ext
C
sh
U
max
U
lsb
------------- -
1e
1
------------------------
158, C
sh
U
max
U
lsb
------------- -
=
t
C
R
in
C
ext
() In 1
1
158,
-------------- R
in
C
ext
()≈≈

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