Following your advice, I checked the register and was able to read the internal temperature value as well.ag123 wrote: Thu Jun 02, 2022 4:19 am google search for RM0008 stm32f103
you should get this
https://www.st.com/resource/en/referenc ... ronics.pdf
look in the chapter for ADC, look under temperature sensor section
in libmaple (roger's core) you may need to use the adc library or rather the adc includes in the core for that.
I got the Vsense value through analogRead, and checked the internal temperature according to the following formula.
{(V25 - VSENSE) / Avg_Slope} + 25.
However, the formula related to Vrefint could not be found in the datasheet.
Is there something I'm missing out on?