RM0440
Where:
•
TS_CAL2 is the temperature sensor calibration value acquired at TS_CAL2_TEMP.
•
TS_CAL1 is the temperature sensor calibration value acquired at TS_CAL1_TEMP.
•
TS_DATA is the actual temperature sensor output value converted by ADC.
Refer to the 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 the
delay, the ADEN and VSENSESEL bits should be set at the same time.
20.4.32
V
supply monitoring
BAT
The VBATSEL bit in the ADCx_CCR register is used to switch to the battery voltage. As the
V
voltage could be higher than V
BAT
V
pin is internally connected to a bridge divider by 3. This bridge is automatically enabled
BAT
when VBATSEL is set, to connect V
converted digital value is one third of the V
consumption on the battery, it is recommended to enable the bridge divider only when
needed, for ADC conversion.
Refer to the electrical characteristics of the device datasheet for the sampling time value to
be applied when converting the V
The figure below shows the block diagram of the V
V
1. The VBATSEL bit must be set to enable the conversion of internal channel for V
Figure 151. V
BAT
VBATSEL
V
/3
BAT
, to ensure the correct operation of the ADC, the
DDA
/3 to the ADC input channels. As a consequence, the
BAT
voltage. To prevent any unwanted
BAT
/3 voltage.
BAT
BAT
channel block diagram
BAT
RM0440 Rev 1
Analog-to-digital converters (ADC)
sensing feature.
ADCx
ADC input
/3.
BAT
TS
MSv46151V1
643/3748
683
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?