Figure 57. Temperature Sensor And Vrefint Channel Block Diagram - ST STM32G0 1 Series Reference Manual

Table of Contents

Advertisement

RM0444
Main features
Supported temperature range: –40 to 125 °C
Linearity: ±2 °C max., precision depending on calibration
Internal power
Reading the temperature
1.
Select the ADC V
2.
Select an appropriate sampling time specified in the device datasheet (T
3.
Set the TSEN bit in the ADC_CCR register to wake up the temperature sensor from
power down mode and wait for its stabilization time (t
4.
Start the ADC conversion by setting the ADSTART bit in the ADC_CR register (or by
external trigger)
5.
Read the resulting V
6.
Calculate the temperature using the following formula
Temperature in °C
Where:
TS_CAL2 is the temperature sensor calibration value acquired at TS_CAL2_TEMP
(refer to the datasheet for TS_CAL2 value)
TS_CAL1 is the temperature sensor calibration value acquired at TS_CAL1_TEMP
(refer to the datasheet for TS_CAL1 value)
TS_DATA is the actual temperature sensor output value converted by ADC
Refer to the specific device datasheet for more information about TS_CAL1 and
TS_CAL2 calibration points.
Note:
The sensor has a startup time after waking from power down mode before it can output
V
at the correct level. The ADC also has a startup time after power-on, so to minimize
SENSE
the delay, the ADEN and TSEN bits should be set at the same time.
Figure 57. Temperature sensor and V
TSEN control bit
Temperature
sensor
VREFEN control bit
block
[12] input channel
IN
SENSE
TS_CAL2_TEMP TS_CAL1_TEMP
--------------------------------------------------------------------------------------------------- -
(
)
=
TS_CAL2 TS_CAL1
REFINT
V
+
SENSE
ADC V
-
V
+
REFINT
ADC V
-
data in the ADC_DR register
×
RM0444 Rev 5
Analog-to-digital converter (ADC)
channel block diagram
[12]
IN
converted data
ADC
[13]
IN
).
START
(
TS_DATA TS_CAL1
)
+
TS_CAL1_TEMP
MSv62466V1
).
S_temp
377/1390
403

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G0 1 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF