Question
STM32L452 temperature sensor
I'm using the below to calculate the temperature in STM32L452 CPU:
int16_t temperatureC ;
// ADC VREF is external 3V3
temperature = __HAL_ADC_CALC_TEMPERATURE (3300, ADC_val, ADC_RESOLUTION_12B);
For ADC_val = 1360 - then temperatureC is 164 Celsius, which is surely not the right temperature.
Did anyone do better?
