SLYS025B January 2021 – May 2025 INA238
PRODUCTION DATA
For the INA238 device to report current values in Ampere units, a constant conversion value must be written in the SHUNT_CAL register that is dependent on the maximum measured current and the shunt resistance used in the application. The SHUNT_CAL register is calculated based on the first equation in this section. The term CURRENT_LSB is the LSB step size for the CURRENT register where the current in Amperes is stored. The value of CURRENT_LSB is based on the maximum expected current as shown in the second equation in this section. This value directly defines the resolution of the CURRENT register. While the smallest CURRENT_LSB value yields highest resolution, selecting a higher round-number (no higher than 8x) value for the CURRENT_LSB is common for simplifying the conversion of the CURRENT.
The RSHUNT term is the resistance value of the external shunt used to develop the differential voltage across the IN+ and IN– pins. Use the following equation for ADCRANGE = 0. For ADCRANGE = 1, the value of SHUNT_CAL must be multiplied by 4.
where
Note that the current is calculated following a shunt voltage measurement based on the value set in the SHUNT_CAL register. If the value loaded into the SHUNT_CAL register is zero, the current value reported through the CURRENT register is also zero.
After programming the SHUNT_CAL register with the calculated value, the measured current in Amperes can be read from the CURRENT register. The final value is scaled by CURRENT_LSB and calculated in the following equation:
where
The power value can be read from the POWER register as a 24-bit value and converted to Watts by using the following equation:
where
For a design example using these equations refer to Section 7.2.2.