AnsweredAssumed Answered

STM32L151 Temperature Sensor

Question asked by Alexander P. on Apr 20, 2015
Latest reply on Apr 30, 2015 by waclawek.jan
Hello everyone,

I want to measure the temperature with the built in temperature sensor in a stm32f151 device. As the application is sleeping most of the time the sensor output shall be near the ambient temperature. I am using the formula from the reference manual with the Calibration values. With my external reference voltage between 3.0 V and 3.3V (slowly changing with temperature and battery lifetime) I recognize a drift of the measured temperature with the voltage. I wonder wether or not I have to compensate this drift of my external reference voltage with measurements of the internal reference voltage.

Does the temperature sensor behave like a temperature dependant resistor with a voltage divider from the reference voltage (in this case I must not compensate with measurement of internal reference voltage) or does it generate a voltage independently of the external reference voltage and I have to compensate with the internal reference voltage?

Thans for your answers