ST STM32F2 User Manual page 787

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

UM1940
SOLUTION
__LL_ADC_CALC_DATA_TO_VOL
TAGE
__LL_ADC_CALC_TEMPERATUR
E_TYP_PARAMS
Helper macro to convert the ADC conversion
data from a resolution to another resolution.
Parameters:
__DATA__: ADC conversion data to be
converted
__ADC_RESOLUTION_CURRENT__:
Resolution of to the data to be converted This
parameter can be one of the following values:
LL_ADC_RESOLUTION_12B
LL_ADC_RESOLUTION_10B
LL_ADC_RESOLUTION_8B
LL_ADC_RESOLUTION_6B
__ADC_RESOLUTION_TARGET__:
Resolution of the data after conversion This
parameter can be one of the following values:
LL_ADC_RESOLUTION_12B
LL_ADC_RESOLUTION_10B
LL_ADC_RESOLUTION_8B
LL_ADC_RESOLUTION_6B
Return value:
ADC: conversion data to the requested
resolution
Description:
Helper macro to calculate the voltage (unit:
mVolt) corresponding to a ADC conversion data
(unit: digital value).
Parameters:
__VREFANALOG_VOLTAGE__: Analog
reference voltage (unit: mV)
__ADC_DATA__: ADC conversion data
(resolution 12 bits) (unit: digital value).
__ADC_RESOLUTION__: This parameter can
be one of the following values:
LL_ADC_RESOLUTION_12B
LL_ADC_RESOLUTION_10B
LL_ADC_RESOLUTION_8B
LL_ADC_RESOLUTION_6B
Return value:
ADC: conversion data equivalent voltage value
(unit: mVolt)
Notes:
Analog reference voltage (Vref+) must be
known from user board environment or can be
calculated using ADC measurement.
Description:
Helper macro to calculate the temperature (unit:
degree Celsius) from ADC conversion data of
DocID028236 Rev 2
LL ADC Generic Driver
787/1371

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF