A 12 V battery system must measure both charging and discharging current.
Using the provided R_SHUNT = 0.1 Ω, design a high-side current measurement circuit so that:
V_DIFF.V_DIFF.I_DRIVE controls the test current. Negative I_DRIVE represents battery discharge.
Example test cases:
I_DRIVE | Expected V_DIFF | Condition |
|---|---|---|
| −1 A | ≈+100 mV | Discharging |
| 0 A | ≈0 mV | No current |
| +1 A | ≈−100 mV | Charging |