Patent ID: 11946958
Assignee: STMICROELECTRONICS S.R.L.
Field: Measurement (Instruments)
Classification: CPC G | IPC G

Claim 0:
1. A circuit, comprising:
a shunt resistor coupled between an input node configured to have an input signal applied thereto and a load node configured to be coupled to an electrical load, wherein, with the input signal applied to the input node and the load node coupled to the electrical load, a voltage drop across the shunt resistor is indicative of a load current supplied to the electrical load;
a replica resistor replicating the shunt resistor, the replica resistor having a first end and a second end;
gain circuitry configured to produce an output signal that is a function of the voltage drop between a first sensing node and a second sensing node;
a current generator configured to generate a reference current;
a set of electronic switches configured to be switched in:
a first mode, wherein the replica resistor is coupled between the first sensing node and the second sensing node of the gain circuitry, and coupled to the current generator to be traversed by the reference current, alternately, in a first direction and a second direction opposite the first direction, wherein the output signal from the gain circuitry assumes a first value in response to the reference current traversing the replica resistor in the first direction and a second value in response to the reference current traversing the replica resistor in the second direction, and
a second mode, wherein the shunt resistor is coupled between the first sensing node and the second sensing node of the gain circuitry, and the output signal from the gain circuitry assumes a third value; and

calibration circuitry configured to receive the output signal from the gain circuitry and to produce a compensated output signal as a function of the first value, the second value, and the third value.