Analog-to-digital converters (ADC)
12.3.29
Temperature sensor
The temperature sensor can be used to measure the junction temperature (TJ) of the
device. The temperature sensor is internally connected to the input channels which are
used to convert the sensor output voltage to a digital value. When not in use, the sensor can
be put in power down mode.
Figure 68
ADC.
The temperature sensor output voltage changes linearly with temperature. The offset of this
line varies from chip to chip due to process variation (up to 45 °C from one chip to another).
The uncalibrated internal temperature sensor is more suited for applications that detect
temperature variations instead of absolute temperatures. To improve the accuracy of the
temperature sensor measurement, calibration values are stored in system memory for each
device by ST during production.
During the manufacturing process, the calibration data of the temperature sensor and the
internal voltage reference are stored in the system memory area. The user application can
then read them and use them to improve the accuracy of the temperature sensor or the
internal reference. Refer to the STM32F3xx datasheet for additional information.
Main features
•
Supported temperature range: –40 to 125 °C
•
Precision: ±2 °C
The temperature sensor is internally connected to the ADC1_IN16 input channel which is
used to convert the sensor's output voltage to a digital value. Refer to the electrical
characteristics section of STM32F3xx datasheet for the sampling time value to be applied
when converting the internal temperature sensor.
When not in use, the sensor can be put in power-down mode.
Figure 68
Note:
The TSEN bit must be set to enable the conversion of the temperature sensor voltage V
Reading the temperature
To use the sensor:
240/874
shows the block diagram of connections between the temperature sensor and the
shows the block diagram of the temperature sensor.
Figure 68. Temperature sensor channel block diagram
Temperature
sensor
TSEN control bit
ADCx
V
TS
ADC input
RM0366 Rev 5
RM0366
converted
data
MSv31172V2
.
TS
Need help?
Do you have a question about the STM32F301 6 Series and is the answer not in the manual?