Do you know if STM23F1 (Maple Mini) has an internal source for voltage reference - like Arduino Pro Micro:
Code: Select all
// an built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328P
//and 2.56 volts on the ATmega32U4 and ATmega8 (not available on the Arduino Mega)
analogReference(INTERNAL);
UPDATE: There is VREFINT at ADC17. This link https://www.eevblog.com/forum/microcont ... msg1910771 has a code for stm32duino that allows accurately measure VDD, then you can use accurate VDD value as a reference
to measure any other ADC input by analogRead (x) as usual.
Could someone help with porting the code to LibMaple core please?
Thanks in advance, i998