1. Field of the Invention
This invention relates generally to the field of current sense circuits, and more particularly to high-side current sense circuits.
2. Description of the Related Art
There are numerous applications in which it is necessary to measure a particular current in a circuit. For example, it is often desirable to know the current consumed by a circuit. This could be determined by sensing the current on the “high-side” of the circuit—i.e., where a non-zero supply voltage is connected to the circuit, or on the circuit's “low-side”—i.e., where the current returns to its source.
When measuring a high-side current, the signal of interest has a non-zero DC voltage component which can prove problematic for some current measurement circuits. An example of this is illustrated with the circuit shown in
V
o=(Rb/Ra)(V2−V1)=I*Rsense(R2/R1).
The voltage I*Rsense is differentially measured and amplified by Rb/Ra. The common mode voltage at the input of A1 is given by:
V+=V−=V2[Rb/(Ra+Rb)].
Ideally, the voltages V+ and V− at the input of the amplifier are within the range of its power rails VCC and VEE. However, if the voltages V1 and/or V2 are outside the power rails, the ratio Rb/Ra may be forced to be less than 1, which in turn forces the output voltage (Vo) and the measured current value to be reduced. This general approach is used, for example, in the ADM1041 Secondary-Side Controller with Current Share and Housekeeping IC from Analog Devices, Inc., and is also discussed in U.S. Pat. No. 6,617,838 to Miranda et al.
A high-side current sense circuit is presented which overcomes the problems noted above, in that the common-mode voltage applied to the input of a gain stage is reduced as needed to keep it between the stage's power rails, while having little to no impact on the magnitude of the gain stage's output voltage (Vo) or the measured current value.
The present high-side current sense circuit comprises a sense resistor having a resistance Rsense for connection in series with an input signal having an associated current to be measured I and a non-zero DC voltage component. Rsense conducts I, and as a result voltages V1 and V2 are developed on either side of Rsense. The circuit also includes a differential gain stage powered by supply voltages VCC and VEE, which produces an output voltage Vo which varies with the difference between between its input signals.
To keep the common mode portion of the gain stage's input signal between rail voltages VCC and VEE, a voltage modification circuit is employed which subtracts (if the common mode voltage is above VCC) or adds (if the common mode voltage is below VEE) a common mode voltage to or from both V1 and V2. This produces modified voltages V1′ and V2′ at first and second nodes, respectively, to which the inputs of the differential gain stage are coupled. The voltage modification circuit is arranged to ensure that VEE≦V1′ and V2′≦VCC. The current sense circuit is arranged such that the output Vo of the gain stage is proportional to I*Rsense.
The voltage modification circuit preferably comprises a first resistor connected between V1 and a first node and a second resistor connected between V2 and a second node, and first and second current sources connected to conduct respective currents through the resistors. The voltages developed across the resistors are subtracted (or added) to V1 and V2, such that the resulting voltages (V1′ and V2′) are between VCC and VEE. The current sources are preferably made such that their currents vary with the common mode portion of V1 and V2, so that V1′ and V2′ remain between VCC and VEE over time.
These and other features, aspects, and advantages of the present invention will become better understood with reference to the following drawings, description, and claims.
a is block/schematic diagram of one possible embodiment of a high-side current sense circuit in accordance with the present invention.
b is block/schematic diagram of another possible embodiment of a high-side current sense circuit in accordance with the present invention.
The present invention is for use with a sensing element having a resistance Rsense, which conducts a current (I) to be measured. The present current sense circuit provides a means for measuring differential voltage I*Rsense when the common mode portion of the voltages across Rsense are above or below the power rails of the measuring circuit, while having a minimal effect on the measured voltage. This is accomplished by adding or subtracting a common mode voltage from both of the voltages across Rsense.
One way in which this may be accomplished is shown in
In this exemplary embodiment, the concern is that the common mode portion of V1 and V2 may be greater than VCC. To avoid this, a voltage modification circuit 24 is arranged to subtract a common mode voltage from both V1 and V2, to produce modified voltages V1′ and V2′ at first and second nodes (26 and 28), respectively. Differential gain stage 22 is then coupled at its inputs to nodes 26 and 28.
Voltage modification circuit 22 includes first and second resistors having resistances R1 and R2, with R1 connected between V1 and node 26 and R2 connected between V2 and node 28, and first and second current sources 30 and 32 connected to nodes 26 and 28 respectively. Current sources 30 and 32 conduct currents ICM1 and ICM2, which flow through R1 and R2, respectively. R1 and R2 are preferably made equal, as are ICM1 and ICM2. When so arranged, a common mode voltage VCM is subtracted from V2 and V1, as follows:
I*R
sense=(V2−VCM)−(V1−VCM), where VCM=R1*ICM1. Then,
V2′=V2−VCM and V1′=V1−VCM;
I*R
sense=(V2−V1)−VCM+VCM; and
I*R
sense=(V2−V1).
Thus, by subtracting a common mode voltage from both sides of the sensing element, voltages V2′ and V1′ are reduced from V1 and V2 by R1*ICM1. However, the differential voltage measured at the sensing element remains relatively unchanged if I>>ICM1. Thus, V2′−V1′ is also given by I*Rsense.
Gain stage 22 receives V2′ and V1′ at its inputs. When properly arranged, voltage modification circuit 24 ensures that:
The present invention can also be employed when the concern is that the common mode portion of V1 and V2 may be less than VEE. In this case, an embodiment as shown in
In some applications, the current sense circuit might include both the voltage modification circuit of
The common mode portion of voltages V2 and V1 may vary over time. In order to accurately remove this varying common mode voltage, current sources 30 and 32 need to respond to changes in the common mode voltage. Thus, the current sources are preferably made variable; this is illustrated in
One possible implementation which includes variable current sources as described above is shown in
Assuming amplifier 36 is ideal:
V2′=Vref, and
I
CM2=(V2−Vref)*R2.
The current in MN2 (ICM2) is mirrored to MN1, so that ICM2=ICM1=ICM (assuming that MN1 and MN2 are equally sized). Assuming that R1=R2, this results in a common mode voltage of R2*ICM being subtracted equally from V2 and V1, such that V2′−V1′=I*Rsense.
Note that though current sources 30 and 32 are shown as implemented with NMOS FETS, other transistor types, such as bipolar transistors, could also be used. Also note that error amplifier 36 could be connected to nodes other than node 28; it is only necessary that the node to which it is connected varies with the common mode portion of V1 and V2. Reference voltage Vref should be set as needed to ensure that V1′ and V2′ are between the power rails of gain stage 22.
A chopping circuit 40 can be connected between nodes 26, 28 and transistors MN1 and MN2. When the chopping circuit is in a first mode, node 26 is connected to MN1 and node 28 is connected to MN2. When in a second mode, node 28 is connected to MN1 and node 26 is connected to MN2. Chopping circuit 40 is arranged to alternate between its first and second modes so as to reduce errors in the average value of Vo that arise due to mismatches between the first and second transistors.
The output Vo of gain stage 22 is typically fed to the analog input of an analog-to-digital converter (ADC) 42, which converts Vo to a digital value during a conversion cycle. When so arranged, chopping circuit 40 preferably is in its first mode during one conversion cycle, and in its second mode during the subsequent conversion cycle. The average of the two conversions is then computed to cancel out errors due to mismatches between MN1 and MN2, assuming that the sensing signal (I*Rsense) and the common mode voltage do not change considerably between the first and second conversion cycles.
Generally, voltages V2 and V1 have a large DC component and a small differential AC component which is actually dominated by current signal I. As such, it may be desirable to AC couple signal 20 to nodes 26 and 28. This is illustrated in
In the current sense circuit shown in
One way in which this mismatch can be addressed is shown in
Another possible implementation of voltage modification circuit 24 is shown in
This arrangement uses only a single transistor to provide a current source, but increases the number of resistors, making it more sensitive to mismatches between R1//C1 and R2//C2. Chopping switches are preferably included to reduce the mismatch between R3 and R4. As above, a chopping circuit 40 could be inserted between nodes 26,28 and R3,R4 to reduce mismatch errors.
Note that in
With V2′=V1′ and R3=R4, the common mode current is ICM=ICM1=ICM2=(Vref−V54)/R4, and IR1=IR4=ICM, where V54 is the voltage at node 54, and IR1 and IR4 are the currents in R1 and R4, respectively. Then, the gain G is given by:
G=R5/R1=R6/R2.
Thus, the overall output voltage Vo is given by:
Note that, as an alternative to using an ADC, the differential output of amplifier 60 can be fed to a differential to single-ended amplifier and then filtered to remove the ripple from any chopping circuits which are employed.
Note that the embodiments described herein are merely exemplary—there are numerous ways in which a current sense circuit in accordance with the present invention could be implemented. It is only essential that a voltage modification circuit be employed to add or subtract a common mode voltage to or from the voltages (V1,V2) developed on either side of a sense element carrying a current to be measured, with the modified voltages (V1′,V2′) provided to the inputs of a differential gain stage such that VEE≦V1′ and V2′≦VCC, where VEE and VCC are the gain stage's supply voltages.
The embodiments of the invention described herein are exemplary and numerous modifications, variations and rearrangements can be readily envisioned to achieve substantially equivalent results, all of which are intended to be embraced within the spirit and scope of the invention as defined in the appended claims.