Hi Martin,
Before start the ADC sampling operation, the ADC prior to be calibrated under no matter the voltage of the battery surpass the 3.3v or not.
However Id' like to suggest that you can use the ADC and bandage to speculate the voltage of the VDDA, it can notify you when the battery decrease tremendously.
Hope it help.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------