EasyManua.ls Logo

STMicroelectronics STM32WL5 Series

STMicroelectronics STM32WL5 Series
1450 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
Loading...
RM0453 Rev 5 567/1450
RM0453 Analog-to-digital converter (ADC)
591
Calculating the actual V
REF+
voltage using the internal reference voltage
V
REF+
voltage may be subject to variation or not precisely known. The embedded internal
reference voltage (V
REFINT
) and its calibration data acquired by the ADC during the
manufacturing process at V
REF+_charac
can be used to evaluate the actual V
REF+
voltage
level.
The following formula gives the actual V
REF+
voltage supplying the device:
Where:
V
REF+_Charac
is the value of V
REF+
voltage characterized at V
REFINT
during the
manufacturing process. It is specified in the device datasheet.
VREFINT_CAL is the VREFINT calibration value
VREFINT_DATA is the actual VREFINT output value converted by ADC
Converting a supply-relative ADC measurement to an absolute voltage value
The ADC is designed to deliver a digital value corresponding to the ratio between the analog
power supply and the voltage applied on the converted channel. For most application use
cases, it is necessary to convert this ratio into a voltage independent of V
REF+
. For
applications where V
REF+
is known and ADC converted values are right-aligned you can
use the following formula to get this absolute value:
For applications where V
REF+
value is not known, you must use the internal voltage
reference and V
REF+
can be replaced by the expression provided in Section : Calculating
the actual V
REF+
voltage using the internal reference voltage, resulting in the following
formula:
Where:
V
REF+_Charac
is the value of V
REF+
voltage characterized at V
REFINT
during the
manufacturing process. It is specified in the device datasheet.
VREFINT_CAL is the VREFINT calibration value
ADC_DATA
x
is the value measured by the ADC on channelx (right-aligned)
VREFINT_DATA is the actual VREFINT output value converted by the ADC
NUM_CODES is the number of ADC output codes. For example with 12-bit resolution,
it is 2
12
= 4096 or with 8-bit resolution, 2
8
= 256.
Note: If ADC measurements are done using an output format other than 12 bit right-aligned, all the
parameters must first be converted to a compatible format before the calculation is done.
18.10 Battery voltage monitoring
The VBATEN bit in the ADC_CCR register allows the application to measure the backup
battery voltage on the VBAT pin. As the V
BAT
voltage can be higher than V
REF+
, to ensure

Table of Contents

Related product manuals