Figure 39. Temperature Sensor And Vrefint Channel Block Diagram - ST STM32F410 Reference Manual

Advanced arm-based 32-bit mcus
Table of Contents

Advertisement

RM0401
Note:
The TSVREFE bit must be set to enable the conversion of both internal channels: the
ADC1_IN18 or ADC1_IN16 (temperature sensor) and the ADC1_IN17 (VREFINT).
Main features
Supported temperature range: –40 to 125 °C
Precision: ±1.5 °C
1. V
SENSE
Reading the temperature
To use the sensor:
3.
Select ADC1_IN18 input channel.
4.
Select a sampling time greater than the minimum sampling time specified in the
datasheet.
5.
Set the TSVREFE bit in the ADC_CCR register to wake up the temperature sensor
from power down mode
6.
Start the ADC conversion by setting the SWSTART bit (or by external trigger)
7.
Read the resulting V
8.
Calculate the temperature using the following formula:
Refer to the datasheet electrical characteristics section for the actual values of V
Avg_Slope.
Figure 39. Temperature sensor and V
is input to ADC1_IN18 and ADC1_IN16.
SENSE
Temperature (in °C) = {(V
Where:
V
= V
value for 25° C
25
SENSE
Avg_Slope = average slope of the temperature vs. V
or µV/°C)
REFINT
data in the ADC data register
– V
) / Avg_Slope} + 25
SENSE
25
RM0401 Rev 3
Analog-to-digital converter (ADC)
channel block diagram
curve (given in mV/°C
SENSE
and
25
227/771
242

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents

Save PDF