I'm trying to adapt a current limiter design that I found, and I'm having trouble understanding the "current sense" part of it. The current sensing is implemented using a shunt resistor, which is then measured using a current mirror using the circuit below. [![enter image description here][1]][1] The designated output nodes (_OUTA_, _OUTB_) are then fed into a simple amplifier, which in turn drives the a high-side PMOS FET gate. [![enter image description here][2]][2] (Note: V3/V4 are the same in these drawings, and the load would usually be connected after the not shown high-side FET.) In theory this circuit should allow current to pass up-to a limit that is set by _R2_, and afterwards put the high-side FET into linear region to limit the current. I'm trying to understand how the current sense part of this circuit works, and how one would analyze and select the resistor values for a given current limit, input voltage, etc. Most of the designs for current sensing using a current mirror I've seen employ a emitter resistor on Q1 (e.g. [3]), which is used to set the quiescent current based on the maximum sense voltage deviation, but this design does not have this so I'm having trouble to start with the analysis. Any pointers would be highly appreciated. [1]: https://i.sstatic.net/Ho7aQ.png [2]: https://i.sstatic.net/zirmB.png [3]: https://electronics.stackexchange.com/questions/681464/pnp-bjt-current-mirror-across-shunt-resistor-used-as-current-meter