Bidirectional current sensing uses the sign of a small voltage across a shunt resistor to distinguish two directions of flow. An analog current sense amplifier can report both directions through a single output. Its reference input sets the output level associated with zero differential input, leaving space for the output to rise or fall around that level.
A shunt is a resistor placed in the current path. Its differential voltage is proportional to the current through it. Define positive current as the direction from the side sensed by IN+ toward the side sensed by IN−. The voltage at IN+ then rises above IN−. Reversing the current reverses the differential sign even though both sense pins may remain positive relative to ground.
That sign convention matters in a parts record. A battery system may describe current as positive when it charges, while another system may choose discharge as positive. The amplifier's response follows the way its inputs are assigned. A diagram or data column therefore needs to state the intended sign and which shunt terminal goes with each input.
The TI INA185-Q1 bidirectional mode section explains that the voltage on REF establishes the output at zero differential input. When IN+ is higher than IN−, the output increases above REF. When IN+ is lower, the output decreases below REF. The output voltage can remain in the ordinary positive supply range while still representing either direction.
Within the amplifier's linear operating region, the ideal relationship is REF plus the differential input multiplied by gain. For a hypothetical illustration, suppose the reference is one volt and two equal opposite differential inputs produce changes of four tenths of a volt at the output. The two outputs are 1.4 volts and 0.6 volts. The sign is determined by the difference from the reference. Both outputs are positive voltages relative to ground.
Because REF sets the baseline, a change in the reference can move the output even when current is unchanged. If a later reader subtracts an old baseline, part of that voltage change can be mistaken for a current change. Keeping the actual reference with the reading makes the sign convention reproducible.

The allowable output voltage interval determines how much of that ideal relationship can be used. Headroom above REF is the difference between the upper output limit and the reference. Headroom below REF is the difference between the reference and the lower output limit. A reference near the midpoint of the usable interval gives similar room for positive and negative changes. Moving it toward one end trades room in one direction for room in the other.
The INA185-Q1 input differential overload section explains that an ideal output demand outside the specified swing drives the actual output close to the supply or ground. Beyond that point the output can no longer give an accurate measure of the differential voltage. A flat output near a limit may therefore reflect saturation while the shunt current continues to change.

TI's current sense amplifier article distinguishes high-side and low-side shunt placement. On the high side the shunt sits between the supply and load, so both sense inputs can sit near the bus voltage. On the low side it sits between load and ground, so both inputs are near ground. The average of the two input voltages is the common-mode level. Their difference is the small signal used to infer current.
Checking common mode answers whether the input stage can handle the voltages it sees. Checking output swing answers whether the amplified signal can fit around the chosen reference. A small differential signal can still arrive at a common-mode voltage outside a part's permitted range. Conversely, an acceptable common-mode level does not prevent the output from reaching a limit if the differential signal and gain call for too much swing.
For a component comparison, record the shunt polarity, amplifier gain, output reference and allowable output interval along with the input common-mode conditions. The ideal relation then shows how a given output level maps to a direction within the linear region. A separate observation can capture whether the output approached a limit and whether the reading still represents the current accurately.
The two diagrams show the sign convention and the available space around REF with hypothetical axes. They identify two questions for a parts comparison: where zero current appears at the output and how far each direction can move before reaching a limit. Related explanations appear in the robot component section and the technical article directory.