
RM0008
Analog-to-digital converter (ADC)
Doc ID 13902 Rev 12
225/1096
11.10 Temperature
sensor
The temperature sensor can be used to measure the ambient temperature (T
A
) of the
device.
The temperature sensor is internally connected to the ADCx_IN16 input channel which is
used to convert the sensor output voltage into a digital value. The recommended sampling
time for the temperature sensor is 17.1 µs.
The block diagram of the temperature sensor is shown in
When not in use, this sensor can be put in power down mode.
Note:
The TSVREFE bit must be set to enable both internal channels: ADCx_IN16 (temperature
sensor) and ADCx_IN17 (V
REFINT
) conversion.
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 internal temperature sensor is more suited to applications that detect temperature
variations instead of absolute temperatures. If accurate temperature readings are needed,
an external temperature sensor part should be used.
Figure 39.
Temperature sensor and V
REFINT
channel block diagram
SENSOR
TEMPERATURE
V
SENSE
TSVREFE control bit
ADC1
A
d
dr
e
ss/
da
ta
b
u
s
converted data
V
REFINT
ADCx_IN16
ADCx_IN17
POWER
BLOCK
INTERNAL