ZHCS766B February 2012 – January 2025 INA230
PRODUCTION DATA
Figure 8-1 shows a nominal 10A load that creates a differential voltage of 20mV across a 2mΩ shunt resistor. The bus voltage for the INA230 is measured at the external VBUS input pin, which in this example is connected to the IN– pin to measure the voltage level delivered to the load. For this example, the VBUS pin measures less than 12V because the voltage at the IN– pin is 11.98V as a result of the voltage drop across the shunt resistor.
For this example, assuming a maximum expected current of 15A, the Current_LSB is calculated to be 457.7μA/bit using Equation 2. Using a value for the Current_LSB of 500μA/bit or 1mA/bit significantly simplifies the conversion from the Current register (04h) and Power register (03h) to amperes and watts. For this example, a value of 1mA/bit was chosen for the Current_LSB. Using this value for the Current_LSB does trade a small amount of resolution for having a simpler conversion process on the user side. Using Equation 1 in this example with a Current_LSB value of 1mA/bit and a shunt resistor of 2mΩ results in a Calibration register value of 2560, or A00h.
The Current register (04h) is then calculated by multiplying the decimal value of the Shunt Voltage register (01h) contents by the decimal value of the Calibration register and then dividing by 2048, as shown in Equation 3. For this example, the Shunt Voltage register contains a value of 8,000 (representing 20mV), which is multiplied by the Calibration register value of 2560 and then divided by 2048 to yield a decimal value for the Current register (04h) of 10000, or 2710h. Multiplying this value by 1mA/bit results in the original 10A level stated in the example.
The LSB for the Bus Voltage register (02h) is a fixed 1.25mV/bit, which means that the 11.98V present at the VBUS pin results in a register value of 2570h, or a decimal equivalent of 9584. Note that the MSB of the Bus Voltage register (02h) is always zero because the VBUS pin is only able to measure positive voltages.
The Power register (03h) is then calculated by multiplying the decimal value of the Current register, 10000, by the decimal value of the Bus Voltage register (02h), 9584, and then dividing by 20,000, as defined in Equation 4. For this example, the result for the Power register (03h) is 12B8h, or a decimal equivalent of 4792. Multiplying this result by the power LSB (25 times the [1 × 10–3 Current_LSB]) results in a power calculation of (4792 × 25mW/bit), or 119.82W. The power LSB has a fixed ratio to the Current_LSB of 25. For this example, a programmed 1mA/bit Current_LSB results in a power LSB of 25 mW/bit. This ratio is internally programmed to verify that the scaling of the power calculation is within an acceptable range. A manual calculation for the power being delivered to the load uses a bus voltage of 11.98V (12VCM – 20mV shunt drop) multiplied by the load current of 10A to give a result of 119.8W.
Table 7-1 lists the steps for configuring, measuring, and calculating the values for current and power for this device.
| STEP | REGISTER NAME | ADDRESS | CONTENTS | DEC | LSB | VALUE |
|---|---|---|---|---|---|---|
| Step 1 | Configuration register | 00h | 4127h | — | — | — |
| Step 2 | Shunt register | 01h | 1F40h | 8000 | 2.5µV | 20mV |
| Step 3 | Bus Voltage register | 02h | 2570h | 9584 | 1.25mV | 11.98V |
| Step 4 | Calibration register | 05h | A00h | 2560 | — | — |
| Step 5 | Current register | 04h | 2710 | 10000 | 1mA | 10A |
| Step 6 | Power register | 03h | 12B8h | 4792 | 25mW | 119.82W |