I have a board with this MCU and this board is powered from +12V baterry. I use resistor divider to measure its voltage. Voltage on ADC input pin is about 2.42V, but when I run my code, measured value in 12-bit resolution is 0xFFF;
AVREF is connected to 3.28V like VIOs. When I conected potentiometer on ADC input it looks like TOP value be somewhere about 1.5V.
In real-time debug I didnt found any wrong settings of AFEC(I thinked Gain was wrong but it was 1 :/)
I tried to look for AVREF settings but not I didnt found anything in datasheet.
Thanks for help.