How to use ADC3 temperature sensor for STM32H723ZG if VDD=VDDA=VREFP=1.8V?
Hi,
I'm using a Nucleo-H723ZG board with 1.8V VDD.
According the schematic, VDDA and VREFP is same as VDD
(verified VREFP to be 1.8V using multi-meter).
If I use the ADC3 analog temperature senor I get strange values.
I get values like -33°C while the DTS reports 38°C.
float temperature = (float)__HAL_ADC_CALC_TEMPERATURE(1800,ADCValue,ADC_RESOLUTION_16B));If I modify the code above for 3.3V (__VREFANALOG_VOLTAGE__ = 3300) and change the board VDD to 3.3V then its working fine.
(reporting similar values to DTS)
I also tried the classical temperature calculation with tcal1 and tcal2 values: It works for 3.3V but no luck with 1.8V.
Of course the formula cannot work with 1.8V since the tcal values are obtained with VREFP=3.3V, if I scale the ADC value obtained at 1.8V to a 3.3V equivalent, I get similar negative results as with _HAL* macro.
Has anyone an idea how to use the ADC temperature sensor with 1.8V?
Thanks!
