EasyManuals Logo

ST STM32F2 User Manual

ST STM32F2
1371 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 #787 background imageLoading...
Page #787 background image
UM1940
LL ADC Generic Driver
DocID028236 Rev 2
787/1371
SOLUTION
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
__LL_ADC_CALC_DATA_TO_VOL
TAGE
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.
__LL_ADC_CALC_TEMPERATUR
E_TYP_PARAMS
Description:
Helper macro to calculate the temperature (unit:
degree Celsius) from ADC conversion data of

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F2 Specifications

General IconGeneral
BrandST
ModelSTM32F2
CategoryMicrocontrollers
LanguageEnglish

Related product manuals