Hi Amit,
BATS already contain internal voltage divider. So, you must multiply measured value (in mV) by 9 for getting VSUP voltage.
According BATS Electrical Specifications in reference manual:
Pin Input Divider Ratio(2)
RatioVSUP = VSUP / VADC=9
Valid for 5.5V < VSUP < 29 V
2. VADC: Voltage accessible at the ADC input channel
Note: Accuracy of such measurement should be typically +/-2% (it is still without error of ADC conversion).
I hope it helps you.
Have a great day,
RadekS
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------