SBOA551 June 2022 INA240
Figure 3-4 shows the block diagram of the INA170. Bidirectional current measurement is accomplished by output offsetting through amplifier A2. The offset voltage level is defined by an external resistor and voltage reference. This setup permits measurement of a bidirectional shunt current while using a single supply. Applying a positive reference voltage to reference (pin 3) causes a current to flow through ROS, forcing output current to be offset from zero. The transfer function is written as Equation 4.
Driving the reference pin is straightforward. A simple voltage divider will suffice due to the high input impedance of amplifier A2. A filtering cap close to the reference pin may help limit noise contribution. Resistor sizing and VREFVref voltage should fit the operating range of amplifier A2.