Current sensing circuit
In accordance with an embodiment, a method of measuring a load current flowing through a current measurement resistor coupled between a source node and a load node includes: measuring a first voltage across a replica resistor when a first end of the replica resistor is coupled to the source node and a second end of the replica resistor is coupled to a reference current source; measuring a second voltage across the replica resistor when the second end of the replica resistor is coupled to the source node and the first end of the replica resistor is coupled to the reference current source; measure a third voltage across the current sensing resistor; and calculating a corrected current measurement of the load current based on the measured first voltage, the measured second voltage and the measured third voltage.
Latest STMicroelectronics S.r.l. Patents:
- METHOD FOR MANUFACTURING A GATE TERMINAL OF A HEMT DEVICE, AND HEMT DEVICE
- Microfluidic dispenser device for delivering inhalable substances
- Calibration method, corresponding circuit and apparatus
- Silicon carbide vertical conduction MOSFET device for power applications and manufacturing process thereof
- Piezoelectric micromachined ultrasonic transducer comprising a lobed membrane element and methods of manufacturing thereof
This application claims the benefit of Italian Patent Application No. 102021000010766, filed on Apr. 28, 2021, which application is hereby incorporated herein by reference.
TECHNICAL FIELDEmbodiments are directed to current sensing circuits.
BACKGROUNDAccurate estimation of absorbed power is a desirable feature in RX/TX (receiver/transmitter) wireless charger devices. Such estimation is facilitated by integrated circuits that provide an accurate current sensing feature.
Various conventional solutions proposed to that effect include a (high-side) shunt resistor (briefly, “shunt”) followed by an analog front end (amplifier, filter), an analog-to-digital converter (ADC) and digital back-end processing.
Shunt accuracy and stability have direct consequences on measurement accuracy.
Conventional solutions to address these issues can be ascribed to two different approaches.
A first approach involves using external “discrete” shunt resistors, which can be accurate and stable.
Drawbacks possibly associated to such an approach include cost, package complexity and difficulty in calibrating the chip alone.
Another approach involves using integrated shunt resistors and applying temperature calibration.
An issue related to such other approach lies in that temperature calibration involves accurate temperature sensing and may not be able to compensate drifts, which may occur after in-factory calibration. Accuracy over the expected lifetime of the circuit and the associated device is correspondingly reduced.
SUMMARYOne or more embodiments may relate to a corresponding device. A wireless charging device may be exemplary of such a device.
One or more embodiments may be related to a corresponding method.
One or more embodiments facilitate achieving a high overall accuracy over the whole lifetime of a high-side current sensor based on an integrated shunt resistor with a run-time self-calibration capability.
One or more embodiments involve features which can be added to basic current sensor architecture, namely: an accurate current reference, based on a switched/capacitor approach, for instance, a scaled replica of the shunt resistor which can comprise a set of resistance elements like the elements used for the shunt resistor, with the shunt resistor and the replica forming an interdigitated structure, and a set of (high-voltage, HV) switches configured to switch the inputs of an amplifier stage between coupling to the output pins of the shunt resistor and coupling to the output pins of the shunt replica, and a digital signal processing circuit block which can be used to apply runtime calibration coefficients to a digital output from the measurement function.
In one or more embodiments, a replica shunt can be provided which is adequately matched with the shunt resistor (e.g., by being co-located, that is arranged at the same location, possibly with mutually interdigitated structures) and the same analog front end circuitry (amplifier, advantageously followed by an analog-to-digital converter) can be used during a self-test phase and a current measurement phase. This facilitates relying on the assumption that the offset and sensitivity drifts of the self-test chain are the same as the offset and the sensitivity drifts of the measurement chain. Accordingly, the output of the current sensor can be calibrated at runtime using information acquired during a self-test phase.
In one or more embodiments, shunt and analog front-end inaccuracies can be tracked and compensated continuously.
Advantageously, in one of more embodiments, a self-test reference current which is stable (over the circuit lifetime) can be provided using a switched-capacitor reference generator capable of producing a current which is dependent on a bandgap voltage, a clock frequency and a capacitance. It is noted that such elements may be (much) more stable than shunt resistors and are currently available in production.
One or more embodiments may offer advantageous features such as: an accurate current reference, based on switched-capacitor approach; a scaled replica of the shunt resistor is provided which includes a set of resistance elements equal to the elements used for the shunt resistor with interdigitated architecture; a set of (high-voltage, HV) switches can be used to periodically switch the input of the amplifier from the shunt output pins to the shunt replica output pins; a digital signal processing block can be used to apply runtime calibration coefficients to the measurement digital output; and a temperature sensor and a temperature compensation circuitry (as commonly used in conventional solutions) can be dispensed with.
One or more embodiments will now be described, by way of example only, with references to the annexed figures, wherein:
In the ensuing description, various specific details are illustrated, aimed at providing an in-depth understanding of examples of embodiments of this description. The embodiments may be obtained without one or more of the specific details, or with other methods, components, materials, etc. In other cases, known structures, materials, or operations are not illustrated or described in detail so that certain aspects of embodiments will not be obscured.
Reference to “an embodiment” or “one embodiment” in the framework of the present description is intended to indicate that a particular configuration, structure, or characteristic described in relation to the embodiment is comprised in at least one embodiment. Hence, phrases such as “in an embodiment” or “in one embodiment” that may be present in one or more points of the present description do not necessarily refer to one and the same embodiment.
Moreover, particular conformations, structures, or characteristics may be combined in any adequate way in one or more embodiments.
The headings/references used herein are provided merely for convenience and hence do not define the extent of protection or the scope of the embodiments.
Also, throughout this description a same designation (VRECT, or VLOAD, for instance) may be used for simplicity to refer both to a certain circuit node/element signal and to a signal which may occur at that node/element.
In the area of wireless charging, accurate measurement of the current absorbed by both the transmission circuit and the receiver circuit plays a significant role.
Together with voltage measurement, current measurement provides an indication of the power transmitted and received by a system. Information related to power transmitted and received is significant insofar as specifications introduced in standard protocols used in wireless charging context rely on such information.
The capability of measuring accurately a current in a system such as a high-voltage system (particularly at the high side thereof) may benefit from the availability of efficient sensor elements such as a shunt resistor.
The capability of “reading” with high accuracy a current (and the capability of maintaining such accuracy over the whole lifetime of a certain device) are generally appreciated beyond the area of wireless charging.
Consequently, embodiments as discussed herein are not limited to possible use in the area of wireless charging: one or more embodiments can be applied, in general, to a variety of current measurement circuits including a sensitive element of a resistive type (shunt) integrated in a same chip with an associated front-end readout circuitry with such circuits expected to exhibit a high degree of accuracy over time, particularly in solutions operating under high voltage conditions (high-side sensing topology).
Various practical applications (wireless charging in consumer electronics may again be referred to as a non-limiting example of such an application) use a shunt resistor (briefly referred to as a “shunt”) as a sensitive element for measuring a current based on Ohm's Law.
According to Ohm's Law, V=R*I, a current of intensity I flowing through a resistor produces a voltage drop V across the resistor which is proportional to the resistance value R of the resistor. Such a voltage drop can be possibly converted into digital and thus provide a “reading” of the current intensity.
Such an approach may be advantageous for various reasons, including low-cost, integrability on a semiconductor material (silicon, for example) using standard processes, and direct measurement of the current.
However, such an approach may exhibit certain drawbacks related to accuracy. In fact, current measurement obtained via a shunt resistor is (linearly) dependent on the resistance value of the shunt resistor.
Resistors integrated on, e.g., silicon, using standard processes, may exhibit inaccurate resistance values due to reasons such as process spread during silicon diffusion, thermal drift, and sensitivity to mechanical stresses and ageing. Moreover, if the circuit where an (absorbed) current is measured is an H bridge with a high-voltage supply (this may be the case of a transmitter or receiver for wireless charging), the shunt resistor may be arranged in series with the supply path to the bridge. As a result, the voltage drop across the resistor may exhibit a common mode near the bridge supply, which may be as high as tens of volts.
Another constraint deriving from using a shunt resistor is related to the resistance value being desired to be kept small in order to have a reduced impact on the efficiency of the H bridge. The voltage value that can be read across the shunt resistor is thus correspondingly reduced, usually in the order of a few mV. This almost inevitably involves using a low-offset, low-noise amplifier stage to amplify such a weak voltage signal. This in turn involves other factors having to be taken into account, namely the common-mode rejection ratio (CMRR) of the amplifier and the offset of the amplifier (and an analog-to-digital converter, ADC, possibly associated therewith).
To sum up, the main factors, which adversely affect accuracy, involve: as regards the shunt resistor, process spread, thermal drift, drift due to mechanical stress and ageing; and as regards the amplifier, CMRR and offset.
Various approaches have been proposed in order to deal with these possible sources of inaccuracy. While effective, some of these approaches may exhibit various drawbacks.
For instance, process spread issues related to the shunt resistor can be addressed via in-factory calibration of each individual device; this is inevitably a time-consuming process, which adversely affects cost.
Amplifier offset and its drift over time can be countered using chopping or self-zeroing techniques, which facilitate obtaining amplifiers exhibiting low offset values. Issues related to the amplifier CMRR can be addressed resorting to architectures involving components exhibiting good matching at a cost of a certain increase of the area occupied on silicon. Thermal drift of the shunt resistors can be addressed via in-factory calibration at different temperatures.
All these measures are however fairly expensive to implement and are hardly suited for wireless chargers as extensively used in the consumer market where cost and simplicity are important factors.
Solutions based on automatic compensations can be considered as possible alternatives.
Sensitivity of the shunt resistor to mechanical stresses and various ageing phenomena is a largely unresolved problem, which places strong limitations on the overall accuracy of a current measuring system. After-solder drift or after-thermal cycles represent other limiting factors for the accuracy of current measurement systems based on integrated shunt resistors.
The circuit diagram of
The current sensing circuit 12 provides an output voltage VOUT1 to a linear regulator 16, sensitive to the voltage Vdd that provides an output voltage VOUT.
A system as illustrated in
This solution may provide a good degree of accuracy. It is otherwise hardly attractive for cost reasons, due to factors such as: the inherent cost of the discrete resistor; increased package and board complexity due to at least four additional pads involved in connecting the external components; and intrinsic difficulty in performing in-factory system calibration, which almost inevitably involves system calibration performed after assembly of the whole application board.
The diagram of
A bandgap reference generator 24 produces a reference signal VRef which is applied to the analog-to-digital converter 22 as well as to a further analog-to-digital converter 26. The output signals from the two converters 22, 26 (namely μI and μT, respectively) are applied to a digital backend circuit 28 which produces a resulting output signal DOUT based on the signals from the converters 22 and 26.
An arrangement as illustrated in
Issues related to the thermal variation of the resistance value of the shunt resistor 20 are addressed by thermal compensation implemented via an integrated digital algorithm. That algorithm performs compensation based on information on temperature (as sensed via the bandgap generator 24 and the analog-to-digital converter 26) and the thermal coefficient of the shunt resistor 20.
It is found that such a thermal compensation may not be adequate for two main reasons. First, thermal compensation is based on a pre-determined thermal coefficient which is fixed and may be inaccurate. In any case, thermal compensation does not track possible variations of the shunt resistance value and its thermal coefficient as resulting, for instance, from soldering and ageing, Second, a temperature sensor capable of detecting with a high degree of accuracy the exact temperature of the shunt resistor is not easy to implement: in the presence of a high current flowing in a localized manner in the shunt resistor, appreciable thermal gradients may develop between the location of the shunt resistor and the location of the temperature sensor, even if both of them are located on a same chip.
The diagrams of
The voltage across the “+” and “−” terminals of the shunt resistor 30 (with the negative end coupled to a load 34 referenced to ground) is applied to a (high-voltage) analog-to-digital converter 36.
A reference voltage generator 38 supplies a signal ΔVBE of the Proportional to Absolute Temperature, PTAT type to the converter 36 as well as to a further analog-to-digital converter 40 which also receives a reference bandgap voltage VBG from the generator 38.
As in the case illustrated in
As illustrated in
The arrangement of
The arrangement exemplified in
Again, an issue with such type of thermal compensation lies in the inability to follow variations in the shunt resistor and its thermal coefficient occurring after device calibration (post-solder drift and ageing).
An arrangement as exemplified in
It is again noted that reference to a possible use in wireless power supply transmitter/receivers is merely exemplary and not limiting of the possible applications of the embodiments.
As noted, the current intended to be measured in an arrangement as illustrated in
It is otherwise noted that the electrical load EL may be a distinct element from the embodiments, which is an element intended to be coupled to the circuitry illustrated in
In a circuit 100 as illustrated in
Advantageously, such resistive elements of the shunt resistor RSHUNT and the replica resistor RREPLICA are co-located (that is integrated at the same location or in close proximity to each other) and/or exhibit mutually interdigitated layout.
This facilitates achieving conditions where both the main shunt resistor RSHUNT and the replica resistor RREPLICA are exposed to the same environmental conditions. This option may be advantageous in so far as it facilitates reproducing in the replica resistor RREPLICA the same behavior of the shunt resistor RSHUNT in respect of phenomena such as thermal drift, post-solder drift and ageing.
That is, the replica resistor RREPLICA and the shunt resistor RSHUNT can be assumed to exhibit substantially equal relative variations of their resistance values resulting from those phenomena.
Reference 102 in
The signal output from the analog front-end circuitry 102 (which is a function of the voltage applied between the input nodes 102A, 102B) is supplied to an analog-to-digital converter 104, configured to convert to digital the output signal from the analog front-end circuitry 102 and provide a (digital) output signal OUTADC (n-bit for instance).
Briefly,
As illustrated in
The gain circuitry 102 illustrated in
A replica resistor RREPLICA is provided replicating the shunt resistor RSHUNT, wherein the replica resistor RREPLICA and the shunt resistor RsHUNT are configured to exhibit substantially equal relative (e.g., percentage) variations of their resistance values due to factors such as process spread, thermal drift, drift due to mechanical stress and ageing. The replica resistor RREPLICA has a first end and a second end.
As illustrated in
Reference current generator 108 shown in
Likewise, unless the context discussed in the following indicates otherwise, the analog front-end circuitry 102 and the analog-to-digital converter 104 can be regarded as conventional in the art, which makes it unnecessary to provide a more detailed description herein.
This also applies to the digital calibration block 106, which calculates and applies calibration coefficients to the digital output signal OUTADC from the converter 104.
In that respect, it will be appreciated the embodiments are primarily concerned with the way these calibration coefficients can be derived (exploiting, e.g., the provision of the replica resistor RREPLICA and the associated switching circuitry discussed in the following), rather than with the way these coefficients can be applied to the signal OUTADC In fact, one or more embodiments may be largely “transparent” with respect to the way these coefficients are applied to the signal OUTADC to produce the compensated output signal OUTCOMP
One or more embodiments as illustrated in
Circuitry as illustrated in
To that effect, a circuit as illustrated in
The controller circuit no can be configured (in a manner known per se to those of skill in the art) in order to implement operation sequences as exemplified in connection with the flow-chart of
Briefly, as illustrated in
It is noted that such coupling of the main resistor RSHUNT and the replica resistor RREPLICA to the input of the differential amplifier 1021 is with homologous polarities, that is with the same sign.
Also, as illustrated in
The flowchart of
During the STp phase of block 1000: the switches R are non-conductive and the switches ST conductive and the replica resistor RREPLICA is coupled across the differential input of the differential amplifier 1021 in the analog front-end circuitry 102; and the switches STp are conductive (with the switches STn non-conductive) and the replica resistor RREPLICA is traversed by a current with intensity IST flowing from the first end to the second end, that is, from left to right n in the representation of
During the STn phase of block 1002: the switches R are non-conductive and the switches ST conductive and the replica resistor RREPLICA is again coupled across the differential input of the differential amplifier 1021 in the analog front-end circuitry 102; and the switches STn are conductive (with the switches STp non-conductive) and the replica resistor RREPLICA is traversed by a current with intensity LT flowing from the second end to the first end, that is, from right to left in the representation of
That is, during the first mode of operation represented by blocks 1000 and 1002 in
During the R phase of block 1004, the switches R are conductive and the switches ST non-conductive (with the switches STp and STn similarly non-conductive to avoid unnecessary power absorption in the replica resistor RREPLICA) so that the shunt resistor RSHUNT is coupled across the differential input of the differential amplifier 1021 in the analog front-end circuitry 102, to sense the voltage across the resistor RSHUNT coupled intermediate the node VRECT and the load EL. In the R phase of block 1004 the output OUTADC from the converter 104 is designated OUTADCR.
That is, during the second mode of operation represented by block 1004, the shunt resistor RSHUNT is coupled between the first sensing node 102A and the second sensing node 102B of the gain circuitry 102 and the output signal OUTADC from the gain circuitry 102 assumes a third value, OUTADCR.
The following formulas describe operation of the circuit 100 along the lines of the flow-chart of
The following definitions facilitate reading and understanding the formulas reproduced below:
VOFFAFE: offset of AFE 102 (e.g., amplifier 1021 and filter 1022);
VCMAFE: error due to finite CMRR in the AFE block;
VOFFADC: offset of ADC 104;
RSHUNT0: initial value of the shunt resistance Rshunt (this can be measured during in-factory calibration);
RREPLICA0: initial value of the replica resistance RREPLICA (this can be measured during in-factory calibration)
G0: initial value of the gain G (this can be measured during in-factory calibration) of AFE 102;
IST0: initial value of the reference current Ist (this can be measured during in-factory calibration); and
SENSST0: output from the phase ‘ST’ at “zero time” (this can be measured during in-factory calibration and stored in a memory, e.g., in the controller 110).
The formulas are as follows: Output in the R phase (block 1004)
Output in the phases ‘STp’ and ‘STn’ of blocks 1000 and 1002:
The calculation performed in the digital calibration circuit block 106 in order to calculate the compensated output OUTCOMP may comprise:
That is, in the possible implementation discussed herein, the calibration circuitry 106 is configured to: produce an average value,
of the first value, OUTADCSTp and the second value, OUTADCSTn; and produce the compensated output signal OUTCOMP as a function of the difference (OUTADCR-OFFST) between the third value, OUTADCR and the aforesaid average value, OFFST of the first value, OUTADCSTp and the second value, OUTADCSTn.
Also, in the possible implementation discussed herein, the calibration circuitry 106 is configured to: produce a normalization value,
which is a function of a difference
between the first value, OUTADCSTp and the second value, OUTADCSTn, and normalize the compensated output signal OUTCOMP with respect to the normalization value, SENSDRIFT.
As illustrated in
Considering the expression for the compensated output:
The resistor RREPLICA is a scaled replica of the resistor RSHUNT. Also, it is exposed to the same thermal and mechanical stresses and to the same process-related variations (e.g., due to being co-located, possibly in an interdigitated arrangement). One may thus reasonably assume that the resistor RREPLICA will undergo relative variations
of its resistance value with respect to the initial value RREPLICA0, that likewise replicate the relative variations
of the resistance value of RSHUNT with respect to the initial value RSHUNT0 of RSHUNT, namely:
that is, by referring to the expression for the compensated output:
Assuming IST is produced (in a manner known to those of skill in the art) by a switched-capacitance reference generator 108, IST can be expressed as:
IST−Vbg·C·fck
where Vbg is a bandgap voltage, C is a capacitance, and fck is a clock frequency.
All these parameters can be regarded as essentially stable with respect to the value for Rshunt, and one can assume:
By way of conclusion, the output after digital compensation corresponds to the expected output, without error contribution
OUTCOMP=IIN·RSHUNT0·G0.
During the phases designated STp and STn (blocks 1000 and 1002 in
As discussed, the replica resistor RREPLICA is a scaled replica of the shunt resistor RSHUNT. Advantageously, the resistor RREPLICA and the shunt resistor RSHUNT comprise modules that are physically identical in an interdigitated arrangement. Consequently, one may reasonably assume that that the replica resistor RREPLICA undergoes the same variations occurring in the shunt resistor RSHUNT (thermal drift, mechanical stress and ageing).
Also, the analog front-end circuitry 102 and the analog-to-digital converter 104 are the same throughout all the phases of the blocks 1000, 1002 and 1004 of
Consequently, the overall variations measured during the phases STP and STn can be used to compensate the offset and gain variations in the chain comprising the shunt resistor RSHUNT, the analog front-end circuitry 102 and the analog-to-digital converter 104.
During the phase designated R (block 1004 in
The digital calibration circuit 106 may exploit data acquired during the phases designated STp and STn of the blocks 100 and 1002 (primarily OFFST and SENSDRIFT) to compute the entity OUTCOMP.
As demonstrated, this corresponds to a reading (measurement) of the input current where all the error sources due to RSHUNT, the analog front-end 102 and the analog-to-digital converter 104 are removed.
The flowchart of
For instance, in those applications where a high level of accuracy is desirable and/or for which relevant (thermal or mechanical) stress phenomena are expected to evolve rapidly over time, the steps of blocks 1000 and 1002 can be repeated before each step of measuring the current as represented by the block 1004.
This option is represented by a possible positive outcome (Y) of a check carried out in a step 1006 (high accuracy desired and/or significant, rapidly varying stresses expected). In that case, the steps of blocks 1000 and 1002 can be repeated after each current measurement step of block 1004.
A negative outcome (N) of the check of block 1006 can be regarded as indicative of conditions where a lower degree of accuracy is desired and/or stress sources are expected to evolve less rapidly over time.
In that case, a negative outcome (N) of a further check as represented by block 1008 may lead to a new measuring R phase being performed without going through a repetition of the STp and STn steps represented by the blocks 1000 and 1002.
Conversely, a positive outcome (Y) of the check of block 1008 may be exemplary of a threshold number of measuring steps R having been performed without self-calibration (as possibly indicated in an internal counter in the step 1004). Such a positive outcome of the check of block 1008 may thus result in calibration of blocks 1000 and 1002 being repeated prior to a new measuring step of block 1004.
That is, operation of a circuit 100 as discussed herein may comprise an alternation of the first mode (STp, and STn: blocks 1000, 1002 in
It is noted that arrangement as discussed herein benefit from precise matching of the shunt resistor RSHUNT and the replica resistor RREPLICA.
High resolution of the analog-to-digital converter 104 and accurate trimming of the gain of the cascaded arrangement of the analog front-end circuit 102 and the analog-to-digital converter 104, as well as reduced variations of the capacitance and the bandgap source used to generate the reference current IST may represent other advantageous factors in facilitating adequate operation of an arrangement as exemplified in
Simulation results show that, even taking into account possible non-idealities in the factors discussed in the foregoing, one or more embodiment can reduce the error affecting a compensated output such as OUTCONF as a function of temperature and other sources of error within a very narrow band around zero.
One or more embodiments therefore facilitate obtaining current measurement in a high-side arrangement, for instance, taking advantage of an integrated shunt resistor such as RSHUNT with the capability of compensating the main sources of error over the whole useful lifetime of the related device. This can be achieved via self-calibration, which can be repeated periodically in the field during operation of the device.
An advantage lies in the capability of compensating also those errors related to variations of the electrical parameters of the components in the circuit, which may occur after initial in-factory calibration.
In a device (by way of non-limiting example, a wireless charging device) including a circuit 100 as discussed herein having an electrical load EL coupled with the load node VLOAD the compensated output signal OUTCOMP is indicative—with high accuracy—of the intensity of the load current supplied to the electrical load EL.
In an embodiment, a circuit comprises gain circuitry configured to produce an output signal, which is a function of the voltage drop across a shunt resistor traversed by a current applied to an electrical load. A replica resistor of the shunt resistor is provided which exhibit relative variations of the resistance value substantially equal to the relative variations of the resistance value of the shunt resistor. Switching circuitry is provided which is controllable in a first mode, wherein the replica resistor is coupled to the input of the gain circuitry and caused to be traversed in opposite directions by a reference current so that the output signal from the gain circuitry assumes a first value, OUTADCSTp and a second value, OUTADCSTn, respectively, in a second mode, wherein the shunt resistor is coupled to the input of the gain circuitry the output signal from the gain circuitry assumes a third value, OUTADCR. Calibration circuitry receives the output signal from the gain circuitry and produces as a function of the first, OUTADCSTp, second, OUTADCSTn, and third, OUTADCR, value a compensated output signal, which provides an accurate measurement of the current applied to the electrical load.
Without prejudice to the underlying principles, the details and embodiments may vary, even significantly, with respect to what has been described by way of example only without departing from the extent of protection.
Claims
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.
2. The circuit of claim 1, wherein the replica resistor and the shunt resistor exhibit substantially equal relative variations of their resistance values.
3. The circuit of claim 1, further comprising:
- first switching circuitry configured, when conductive, to couple the shunt resistor between the first sensing node and the second sensing node;
- second switching circuitry configured, when conductive, to couple the replica resistor between the first sensing node and the second sensing node;
- third switching circuitry configured, when conductive, to couple the first end and the second end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the first direction; and
- fourth switching circuitry configured, when conductive, to couple the second end and the first end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the second direction, opposite the first direction; and
- switching control circuitry configured to control the first, second, third and fourth switching circuitry: in the first mode, wherein the second switching circuitry is made conductive to couple the replica resistor between the first sensing node and the second sensing node of the gain circuitry, and the third switching circuitry and the fourth switching circuitry are alternately made conductive, wherein the output signal from the gain circuitry assumes the first value in response to the third switching circuitry being made conductive and the second value in response to the fourth switching circuitry being made conductive, respectively, and in the second mode, wherein the first switching circuitry is made conductive to couple the shunt resistor between the first sensing node and the second sensing node of the gain circuitry, and the output signal from the gain circuitry assumes the third value.
4. The circuit of claim 3, wherein:
- the first switching circuitry comprises a first pair of electronic switches configured, when conductive, to couple opposite ends of the shunt resistor to the first sensing node and the second sensing node of the gain circuitry; and
- the second switching circuitry comprises a second pair of electronic switches configured, when conductive, to couple the first end and the second end of the replica resistor to the first sensing node and the second sensing node of the gain circuitry.
5. The circuit of claim 4, wherein:
- the third switching circuitry comprises a respective pair of electronic switches configured, when conductive, to couple the first end and the second end of the replica resistor to the input node and to the current generator, respectively; and
- the fourth switching circuitry comprises a further respective pair of electronic switches configured, when conductive, to couple the second end and the first end of the replica resistor to the input node and to the current generator, respectively.
6. The circuit of claim 1, wherein the current generator comprises a switched- capacitance reference generator configured to produce a reference current as a function of a product of a bandgap voltage, a capacitance and a clock frequency.
7. The circuit of claim 1, further comprising analog-to-digital conversion circuitry coupled between the gain circuitry and the calibration circuitry, the analog-to-digital conversion circuitry configured to convert to digital the output signal from the gain circuitry, wherein the calibration circuitry comprises digital circuitry configured to calculate the compensated output signal as a function of the first value the second value and the third value with the first, second, and third values converted to digital.
8. The circuit of claim 1, wherein:
- the gain circuitry comprises a differential amplifier wherein the first sensing node and the second sensing node provide a differential input to the differential amplifier; or
- the gain circuitry comprises a low-pass filter at an output of the gain circuitry.
9. The circuit of claim 1, wherein the replica resistor is co-located with the shunt resistor, wherein the replica resistor and the shunt resistor comprise mutually interdigitated structures.
10. The circuit of claim 1, wherein the calibration circuitry is configured to:
- produce an average value of the first value and the second value; and
- produce the compensated output signal as a function of a difference between the third value and the average value of the first value and the second value.
11. The circuit of claim 1, wherein the calibration circuitry is configured to:
- produce a normalization value, which is a function of a difference between the first value and the second value; and
- normalize the compensated output signal with respect to the normalization value.
12. A device, comprising:
- an electrical load; and
- a circuit, comprising: a shunt resistor coupled between an input node and a load node, the input node configured to have an input signal applied thereto, the load node configured to be coupled to the electrical load, wherein 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, wherein the compensated output signal is indicative of the load current supplied to the electrical load.
13. The device of claim 12, wherein the replica resistor and the shunt resistor exhibit substantially equal relative variations of their resistance values.
14. The device of claim 12, wherein the circuit further comprises:
- first switching circuitry configured, when conductive, to couple the shunt resistor between the first sensing node and the second sensing node;
- second switching circuitry configured, when conductive, to couple the replica resistor between the first sensing node and the second sensing node;
- third switching circuitry configured, when conductive, to couple the first end and the second end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the first direction; and
- fourth switching circuitry configured, when conductive, to couple the second end and the first end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the second direction, opposite the first direction; and
- switching control circuitry configured to control the first, second, third and fourth switching circuitry: in the first mode, wherein the second switching circuitry is made conductive to couple the replica resistor between the first sensing node and the second sensing node of the gain circuitry, and the third switching circuitry and the fourth switching circuitry are alternately made conductive, wherein the output signal from the gain circuitry assumes the first value in response to the third switching circuitry being made conductive and the second value in response to the fourth switching circuitry being made conductive, respectively, and in the second mode, wherein the first switching circuitry is made conductive to couple the shunt resistor between the first sensing node and the second sensing node of the gain circuitry, and the output signal from the gain circuitry assumes the third value.
15. The device of claim 14, wherein:
- the first switching circuitry comprises a first pair of electronic switches configured, when conductive, to couple opposite ends of the shunt resistor to the first sensing node and the second sensing node of the gain circuitry; and
- the second switching circuitry comprises a second pair of electronic switches configured, when conductive, to couple the first end and the second end of the replica resistor to the first sensing node and the second sensing node of the gain circuitry.
16. The device of claim 15, wherein:
- the third switching circuitry comprises a respective pair of electronic switches configured, when conductive, to couple the first end and the second end of the replica resistor to the input node and to the current generator, respectively; and
- the fourth switching circuitry comprises a further respective pair of electronic switches configured, when conductive, to couple the second end and the first end of the replica resistor to the input node and to the current generator, respectively.
17. A method, comprising:
- applying an input signal to an input node, a shunt resistor coupled between the input node and a load node coupled to an electrical load, wherein a voltage drop across the shunt resistor is indicative of a load current supplied to the electrical load;
- replicating, by a replica resistor, the shunt resistor, the replica resistor having a first end and a second end;
- producing, by a gain circuitry, an output signal that is a function of the voltage drop between a first sensing node and a second sensing node;
- generating, by a current generator, a reference current;
- switching, a set of electronic switches, 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;
- switching, the set of electronic switches, in 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;
- receiving, by a calibration circuitry, the output signal from the gain circuitry;
- producing a compensated output signal as a function of the first value, the second value, and the third value; and
- alternating the set of electronic switches between the first mode and the second mode, wherein, selectively, an occurrence of the first mode takes place at each second mode, or the first mode is repeated after several occurrences of the second mode.
18. The method of claim 17, wherein the replica resistor and the shunt resistor exhibit substantially equal relative variations of their resistance values.
19. The method of claim 17, further comprising:
- coupling, a first switching circuitry, when conductive, the shunt resistor between the first sensing node and the second sensing node;
- coupling, a second switching circuitry, when conductive, the replica resistor between the first sensing node and the second sensing node;
- coupling, a third switching circuitry, when conductive, the first end and the second end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the first direction; and
- coupling, a fourth switching circuitry, when conductive, the second end and the first end of the replica resistor to the input node and to the current generator, respectively, wherein the replica resistor is traversed by the reference current flowing therethrough in the second direction, opposite the first direction,
- wherein, in the first mode, the second switching circuitry is made conductive to couple the replica resistor between the first sensing node and the second sensing node of the gain circuitry, and the third switching circuitry and the fourth switching circuitry are alternately made conductive, wherein the output signal from the gain circuitry assumes the first value in response to the third switching circuitry being made conductive and the second value in response to the fourth switching circuitry being made conductive, respectively, and
- wherein, in the second mode, the first switching circuitry is made conductive to couple the shunt resistor between the first sensing node and the second sensing node of the gain circuitry, and the output signal from the gain circuitry assumes the third value.
20. The method of claim 19, further comprising:
- coupling, a first pair of electronic switches of the first switching circuitry when conductive, opposite ends of the shunt resistor to the first sensing node and the second sensing node of the gain circuitry; and
- coupling, a second pair of electronic switches of the second switching circuitry, when conductive, the first end and the second end of the replica resistor to the first sensing node and the second sensing node of the gain circuitry.
20060097731 | May 11, 2006 | Taylor |
20190379270 | December 12, 2019 | Pullen |
20210048453 | February 18, 2021 | Chao |
- Cheng, Yaping, et al., “A High-Sensitivity Current-Shunt Monitor with Extended Input Common-Mode Voltage Range”, 2nd International Conference on Integrated Circuits and Microsystems, Nov. 8-11, 2017, pp. 14-17.
- Shalmany, Saleh Heidary, et al., “A 36-A Integrated Current-Sensing System With a 0.3% Gain Error and a 400-uA Offset From -55° C. to +85° C.”, IEEE Journal of Solid-State Circuits, vol. 52, No. 4, Apr. 2017, pp. 1034-1043.
- Shalmany, Saleh Heidary et al., “±5 A Integrated Current-Sensing System With ±0.3% Gain Error and 16 μA Offset From—-55° C to +85° C”, IEEE Journal of Solid-State Circuits, vol. 51, No. 4, Apr. 2016, 9 pages.
- Witte, Johan F., et al., “A Current-Feedback Instrumentation Amplifier With 5 μV Offset for Bidirectional High-Side Current-Sensing”, IEEE Journal of Solid-State Circuits, vol. 43, No. 12, Dec. 2008, 7 pages.
- Xie, Peng et al., “A Low-Noise, Low-Power, and Chopper-Stabilized, Current-Feedback Instrumentation Amplifier for Current Sensing Application”, The 4th International Conference on Integrated Circuits and Microsystems, Oct. 25-27, 2019, pp. 162-165.
- Xu, Shalmany et al., “A +/-12A High-Side Current Sensor With 25V Input CM Range and 0.35% Gain Error From -40C to 85C”, IEEE Solid-State Circuits Letters, vol. 1, No. 4, Apr. 2018, 4 pages.
- Xu, Long et al., “A ±4-A High-Side Current Sensor With 0.9% Gain Error From -40° C. to 85° C. Using an Analog Temperature Compensation Technique”, IEEE Journal of Solid-State Circuits, vol. 53, No. 12, Dec. 2018, 9 pages.
Type: Grant
Filed: Mar 22, 2022
Date of Patent: Apr 2, 2024
Patent Publication Number: 20220357375
Assignee: STMicroelectronics S.r.l. (Agrate Brianza)
Inventor: Paolo Angelini (Bologna)
Primary Examiner: Tung X Nguyen
Assistant Examiner: Robert P Alejnikov, Jr.
Application Number: 17/655,891
International Classification: G01R 19/25 (20060101); G01R 15/14 (20060101);