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\$$

• Not sure you're doing voltage right. You're supposed to use a resistor-divider externally per the datasheet (page 3.8). If I understand the chip right, you set this divider such that your max battery voltage yields 1.225V (or less) at the divider. After you reply to this, I'll help you out a little more. But first we gotta know what you're doing there. Apr 21 '20 at 4:35
• The chip's gain is probably fixed in silicon. What specific part number are you using (for the AS8510) and do you have a link to its datasheet? Apr 21 '20 at 15:10