I have this AMS AS8510 data acquisition IC for battery management with dual ADC (datasheet) that is supposed to measure the current, voltage and/or temperature of a 12 V battery.
I'm having a hard time converting the ADC reading of the current and the voltage measurement. I would like to be able to dynamically use any gain, whereas the shunt resistor's value is 300 μΩ. What would the generic equations be for both voltage and current?
So far, I've calculated the voltage to be:
\$V = (\frac{1.225V}{2^{16 - 1}}) * V_{ADC} * Gain\$