How to measure power supply internally on STM32F107?
Hello community,
I'm working on a STM32F107VCT6 where I have practically (by means of very basic filtering) shorted on the PCB VDD/VDDA/VREF+/VBAT and VSS/VSSA/VREF-.
I've runned out of pins so I was wondering if there were a way to measure the power supply (without using external ADC channels) which supplies the MCU (VDD) for the purpose of evaluating the upstream power supply conversion (done by a DCDC).
An interesting application here on the forum based on STM32L010F4 using VREFINT_CAL solution could have been perfect if only STM32F107 had this register (which actually don't).
As a desperate attempt I was doing Vsupply=3.3V*Vrefint/Vmeas. Where Vrefint=1.20V from datasheet, Vmeas is Vrefint measured by means of ADC1 "Vrefint Channel". But it seems stupid to me because falls in a circular reference thus the Vsupply will always be calculated as 3.30V... Or maybe not?
Any smarter solutions?
Thanks in advance.
