# Patent

## Title
DC-DC converters having improved current sensing and related methods

## Abstract

An integrated circuit is configured to be coupled to a current sensing element and a set resistor having a resistance Rset. The integrated circuit comprises a sense resistor having a resistance Rsense. The sense resistor is coupled to an input of the integrated circuit such that a first sensed current from the current sensing element flows through the sense resistor. The integrated circuit also comprises a reference resistor having a resistance Rreference which is a fixed multiple of Rsense; and circuitry configured to produce an output current such that the value of the output current is proportional to a value of Rset and a fixed ratio between Rsense and Rreference.

## Background
CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a continuation application of U.S. application Ser. No. 12/869,960 (the '960 Application) filed on Aug. 27, 2010, which is a continuation of U.S. application Ser. No. 12/409,239 (the '239 Application) filed on Mar. 23, 2009 (pending), which is a continuation application of U.S. application Ser. No. 11/528,256 (the '256 Application) filed on Sep. 27, 2006 (abandoned). This application also claims the benefit of U.S. Provisional Application No. 60/808,197 (the '197 Application) filed on May 24, 2006. The '960 Application, '239 Application, '256 Application, and the '197 Application are incorporated by reference in their entirety in the present application.


FIELD OF THE INVENTION
The invention relates to the precise measurement of inductor current, especially for controlling switching in voltage regulator circuits and related power circuits.
BACKGROUND OF THE INVENTION
It is necessary to accurately measure load current in order to accomplish control of a variety of devices including electric current motors, DC-DC converter circuits and voltage regulator circuits. A known circuit 100 for measuring load current via inductor current flow in a DC-DC converter is shown in FIG. 1(a). The portion of circuit 100 to the right of the vertical dashed line between pins ISENSE− and ISENSE+ is typically internal to the IC chip, while the portion including the low pass filter comprising inductor L 110 and CFILTER (output capacitor) that is typically external to the IC chip is to the left of the dashed line between ISENSE− and ISENSE+. External inductor L 110, with an inductance of L having DC resistance DCR, forms part of the low pass filter network with CFILTER that turns an applied pulse width modulated input signal, provided by a pulse width modulator (PWM; not shown) into a steady state voltage output, VOUT, across a load RLOAD. A portion of the voltage drop across L 110 is due to its DC resistance, shown as DCR. A resistor in series with a capacitor, RIND and CIND, is shown placed across inductor 110, RIND/CIND providing a time constant that closely matches the time constant of L/DCR.
The voltage across CIND, shown in FIG. 1(a) as VIND, matches the voltage drop across DCR, and is thus a good indication of inductor current, IIND. An operational amplifier, A1, is placed in circuit 100 to drive the gate of an Nmos transistor, Q1, whose source connects back to the inverting input of A1 at pin ISENSE+. A sense resistor, RSENSE 120, is placed between pin ISENSE+ and VOUT.
A1's non-inverting input, connected to pin ISENSE−, is connected to the junction between RIND and CIND. In this configuration the high gain of A1 drives the voltage at pin ISENSE+ to essentially equal the voltage at pin ISENSE−, so that the voltage across capacitor CIND equal to VIND will be placed across RSENSE. Q1 will then carry a current equal to VIND/ RSENSE, or IIND*DCR/RSENSE. This current, ISENSE, is available at the Q1's Drain, IOUT, and can then be processed and used for, among other things, over current trip or setting a regulated output impedance.
Although Q1 is shown in FIG. 1 as being an Nmos transistor, in an alternate embodiment it could also be a combination of Nmos and Pmos, with the drain currents combined to form bidirectional current sensing. It could also be only an Nmos or Pmos, with offset current added at ISENSE+ and subtracted back out at IOUT to allow bidirectional current sensing.
The RSENSE resistor and ISENSE− pin can also be connected across a synchronous rectifier FET. In that case the RDSON of the FET would be the current sensing element instead of the inductor DCR. Load current sensing by sampling the voltage across the lower MOSFET rDs(ON) when the PWM drives a synchronous rectifier is demonstrated in circuit 140 shown in FIG. 1(b). The PWM 150 drives a gate driver 152 which drives the upper and lower (synchronous rectifier) Nmos FET's 156 and 157, which in turn drive inductor 160. The amplifier A1 is ground-reference by connecting the ISEN− input to the source of the MOSFET 157. The inductor current IL flows from Vin through the FET 156 while FET 156 is on, and flows from ground while the lower FET 157 is on. The inductor current (IL) therefore causes a voltage drop across FET 157 equal to the product of RDSon and the inductor current, which is related to the resistance of sense resistor 170 multiplied by the current sensed (ISEN). Specifically, the resulting current into the ISEN+ pin is proportional to the channel current IL. The ISEN current is then sampled and held after sufficient settling time as known in the art. The sampled current can be used for applications including channel-current balance, load-line regulation, and overcurrent protection.
RSENSE in Circuits 100 and 140 is placed off-chip because RSENSE needs to be adjustable, such as to get the desired value of IOUT for circuit 100 for different combinations of DCR and IIND. For instance, if IOUT is compared to a fixed value of current inside an integrated circuit (IC) to generate an over current trip, and the inductor DCR and desired IIND current trip point are set by system constraints, then the value of RSENSE must be adjusted to achieve the desired IOUT at the desired IIND. For the reason of required adjustability, RSENSE is therefore generally placed external to the IC as shown in FIG. 1. A second reason that RSENSE is usually placed external to the IC is that most integrated circuit processes do not support an accurate and stable, internal resistor.
A problem with an external RSENSE is the susceptibility of the ISENSE+ pin to noise pickup indicated in FIGS. 1(a) and 1(b) as noise coupling through parasitic capacitor 130. Referring again to FIG. 1(a), noise current that is capacitively coupled to pin ISENSE+ appears as the drain current of Q1 including a noise component shown in FIG. 1 as IOUT+Noise. Such noise coupling is known to adversely impact performance and has required very careful printed circuit board layouts to minimize the capacitive coupling at pin ISENSE+. It is not generally feasible to try to bypass ISENSE+, as this would put a pole in the feedback of amplifier A1, possibly making A1 unstable.
Thus, there is a need for an improved switching regulator circuit, and specifically for a current measurement circuit which can be used for precisely measuring load current in a switching regulator circuit, motor controller circuit, or the like, that does not require an external, precise RSENSE at the inverting input of A1 with its attendant noise susceptibility.
SUMMARY
A DC-DC converter includes a chip including an error amplifier and a pulse width modulator (PWM) having an input connected to an output of the error amplifier, and an inductor driven by said PWM in series with an output node (VOUT) of the converter, wherein a load current flows through the inductor. VOUT is fed back through a network including a feedback resistor (RFB) to an inverting input of the error amplifier. A circuit for sensing the load current includes a first operational amplifier, a sense resistor on the chip having resistance RSENSE coupled to an inverting input of the first amplifier; wherein a sense current related to the load current flows through the sense resistor, a dependent current source provides an output current to supply the sense current. A reference resistor is disposed on the chip having a resistance RREFERENCE which is a fixed multiple of RSENSE. A set resistor is provided having a resistance RSET. Tracking circuitry sets a voltage across the reference resistor to be equal to a voltage across the set resistor. A function block is coupled to receive a current through the set resistor and a current through the reference resistor to find their ratio. A current multiplier is provided, wherein an output of the function block is coupled to the current multiplier. The current multiplier provides a measurement current which is proportional to the load current divided by RSET.
The invention can utilize a variety of circuit arrangements for sensing load current. In one embodiment, inductor DCR sensing is utilized, wherein the converter further comprises a resistor in series with a capacitor placed across the inductor having a time constant designed to match a time constant of the inductor and its associated DC resistance (DCR). In another embodiment, MOSFET rDS(ON) sensing is utilized, wherein the converter further comprises a synchronous rectifier connected between an output of the PWM and the inductor.
The sense resistor and said reference resistor are preferably formed from the same material. In one embodiment the converter comprises a current mirror having an output connected the inverting input of the error amplifier and an input for sensing the measurement current, said current mirror converting said measurement current to a sourcing current to flowing through RFB to raise a potential of the inverting input of said error amplifier with increases in the measurement current to control output impedance. In another embodiment, the converter further comprises structure to compare the measurement current to a fixed reference current and generate and apply a reset signal to the PWM to protect the PWM from an over current condition. In this embodiment, the structure to compare can comprise an inverter, an output of the inverter coupled to a reset pin of the converter, wherein if the measurement current is greater than the reference current the PWM becomes disabled.
A method of current sensing in DC-DC converters comprises the steps of providing a DC-DC converter chip comprising an error amplifier coupled to a pulse width modulator (PWM) driving an inductor in series with an output node (VOUT) of the converter adapted for referenced to ground through a load, wherein a load current flows through said inductor. VOUT is fed back through a network including a feedback resistor (RFB) to an inverting input of the error amplifier. A circuit for sensing the load current including a sense resistor is on the chip having a resistance (RSENSE) for generating a sense current which is related to the load current. A dependent current source supplies an output current (IOUT) to supply the sense current. A reference resistor is disposed on the chip having a resistance RREFERENCE which is a fixed multiple of RSENSE. A set resistor having a resistance RSET is provided, tracking circuitry for setting a voltage across the reference resistor equal to a voltage across the set resistor is also provided.
A ratio of current through the set resistor and a current through the reference resistor is determined. A measurement current independent of an actual value of said RSENSE is then determined using the ratio, the measurement current being proportional to the load current divided by RSET.
The circuit for sensing said load current can implement inductor DCR sensing. In another embodiment, the circuit for sensing said load current implements MOSFET rDS(ON) sensing.
The method can further comprise the step of utilizing the measurement current to provide a fixed output impedance. In this embodiment, the utilizing step can comprise converting the measurement current (which is generally a sink current) to a sourcing current, and flowing the sourcing current through the feedback resistor to increase a voltage at the inverting input with respect to VOUT as the inductor current increases.
In another embodiment of the invention the method further comprises the step of utilizing the measurement current to shut down the PWM if the load current increases beyond a predetermined amount to protect the PWM from an over current condition. In this embodiment the utilizing step can comprise comparing the measurement current to a predetermined reference current, and disabling power to said PWM if the measurement current is greater than the reference current. In one embodiment, the measurement current and reference current are both provided as inputs to an inverter with the inverter output coupled to a reset pin of the regulator, wherein if the measurement current is greater than the reference current the PWM is disabled.



BRIEF DESCRIPTION OF THE DRAWINGS
A fuller understanding of the present invention and the features and benefits thereof will be accomplished upon review of the following detailed description together with the accompanying drawings, in which:
FIG. 1(a) is a schematic for a known load current sensing in a DC-DC converter implementing inductor DCR sensing.
FIG. 1(b) is a schematic for a known circuit for load current sensing in a DC-DC converter implementing rDS(ON) sensing when the PWM drives a synchronous rectifier.
FIG. 2 shows a circuit according to an embodiment of the invention having an internal sense resistor for measuring the inductor current flow in a DC-DC converter.
FIG. 3 shows the schematic of an exemplary DC-DC converter that includes a circuit for measuring load current flow using inductor DCR sensing according to another embodiment of the invention used to control the output impedance of the converter.
FIG. 4 shows the schematic of an exemplary DC-DC converter that includes a circuit for measuring load current flow again using inductor DCR sensing according to yet another embodiment of the invention used to protect the PWM supply of the converter with an over current trip action.



DETAILED DESCRIPTION
A circuit according to an embodiment of the invention having an internal sense resistor for load current sensing in a DC-DC converter or other switching regulator circuit implementing inductor DCR sensing is shown in FIG. 2. Circuit 200 includes the same circuit elements shown in circuit 100 shown in FIG. 1(a), but adds additional circuitry 250 (shown within dashed lines) including reference and tracking circuitry that enables inductor current through inductor 110 to be measured independent of the actual value of RSENSE 120. As with circuit 100, circuit 200 includes a portion typically internal to the IC and a portion typically external to the IC (inductor L 110 and CFILTER are generally external to the IC). However, unlike circuit 100 shown in FIG. 1, RSENSE is internal to the IC.
Circuit 200 includes a current multiplier 215 in the path of IOUT, to form an output current IOUT2 which is a multiple of IOUT, equal to M*IOUT. Circuit 200 places a second resistor, RREFERENCE 220 inside the IC. RREFERENCE 220, by reason of placement in proximity to the location of RSENSE 120 on the chip and being of the same electrically conductive material as RSENSE 120, can be made to have a precisely controlled resistance ratio, K, to RSENSE. That is, RREFERENCE=K*RSENSE. K can be made independent of process variation or temperature variation, and can be any convenient value, greater or less than one. Circuit 200 also includes an external resistor, RSET 235. The voltage on the high potential side of RSET 235 is shown coupled to VCC and the low potential side of RSET 235 is driven to an arbitrary reference voltage. As shown in FIG. 2, the arbitrary reference voltage on the low potential side of RSET 235 is set by an exemplary circuit comprising a voltage source V1 which is coupled to the gate of a Pmos source follower, Q2.
As known to those skilled in the art, source and drain electrodes of MOS transistors can interchange roles during operation of the transistor. Therefore, the terms “source” and “drain” as used herein and in the claims to identify the current-carrying electrode of an MOS transistor are not intended to limit the function performed by the current-carrying electrode with respect to whether it is functioning as a source or a drain at a particular time in the circuit operation.
Operational amplifier A2 250 together with Pmos Q3 255 are connected to drive the low potential end of RREFERENCE 220 so that RREFERENCE 220 has essentially the same voltage across it as does RSET 235. RREFERENCE 220 could be driven by other circuitry, such as an NPN/PNP mixed follower, but system accuracy requirements might preclude such methods in certain applications. The current from RREFERENCE 220 and the current from RSET 235 are fed to function block F1 260. F1, through well known analog or digital circuitry, can develop a multiplier factor, M, which is equal to the ratio of current through RSET to current through RREFERENCE. Since the currents through resistors that have equal potentials across them are proportional to the inverse of the respective resistor values, then M is equal to RREFERENCE/RSET. Since RREFERENCE equals K*RSENSE, then M=K*RSENSE/RSET.
As noted above relative to circuit 100 shown in FIG. 1, the output current IOUT is equal to IIND*DCR/RSENSE. IOUT2=M*IOUT=M*IIND*DCR/RSENSE. Substituting K*RSENSE/RSET for M, then:

IOUT2=K*IIND*DCR/RSET  (1)

Significantly, in equation (1) there is no RSENSE term, and IOUT2 is only dependent on the value of external circuit elements (L and RSET, and the DC resistance of L (DCR)). Therefore, there is no requirement for RSENSE to be accurate. RSENSE 120 only needs to be a fixed ratio (K) relative to RREFERENCE 220, the fixed ratio conveniently being provided by the circuit design. Process (or temperature) variation in the resistivity of the electrically conductive material used for RSENSE and RREFERENCE thus do not affect the accuracy of the current measurement provided by circuit 200 because of the resistor ratioing.
Pmos followers (Q2 and Q3) are shown driving both RSET 235 and RREFERENCE 220, and RSET and RREFERENCE are shown terminated at the positive supply, VCC. Although shown as Pmos followers, the drivers could alternatively be NMOS or bipolar transistors of either polarity, and the termination could be ground or another supply. If embodied as NMOS driver transistors, the voltage reference V1 driving the gate of Q2 would switch polarity and termination appropriately.
Although not shown in FIG. 2, RREFERENCE 220 could be driven by the reference voltage V1 and follower Q2, and RSET can be actively driven by A2 and Q3. This is generally less desirable, because parasitic capacitance at RSET places a pole in the feedback of A2 250 which can cause instability for A2.
Circuit 200 can be used to provide improved switching regulator circuits which benefit from precisely measured inductor current, such as DC-DC converters, motor controller circuits, and the like.
FIGS. 3 and 4 show exemplary uses of the sensed current IOUT2 with respect to a pulse width modulated DC-DC converter. FIG. 3 demonstrates controlling output impedance of the converter, while FIG. 4 shows protecting the PWM supply with an over current trip action. However, it is noted that the present invention is not limited to pulse width modulated DC-DC converters, as it applies to other related devices. Moreover, as noted above, load current sensing circuits other than inductor DCR sensing-based circuits can be used with the invention. For example, the arrangement shown in FIG. 1(b) implementing MOSFET rDS(ON) current sensing can instead be used where the sensing connections (ISENSE− and ISENSE+) are connected to the source of the lower FET (which is grounded) and its drain. Other suitable load current sensing circuitry can also be used for the invention.
Referring now to FIG. 3, the schematic of an exemplary PWM DC-DC converter 300 is shown that includes a circuit for measuring inductor current flow according to the invention 310, across pins ISENSE− and ISENSE+ of inductor 110 that together with capacitor CF forms a low pass filter for the load RL. Converter 300 includes an error amplifier 350, which compares an applied reference voltage, VREF, to the regulated output voltage, VOUT. VOUT is fed back to the inverting input of amplifier 350, node FB, through resistor RFB. There are other compensation components, RC1 and CC1 coupled between the output node of error amplifier 350, COMP, and node FB in order to provide a proper system response. Node COMP drives a pulse width modulator, PWM 360 which provides some relationship between its COMP voltage input and the duty cycle output. An ordinary oscillator which provides a clock signal (e.g. sawtooth) to an input of the PWM 360 is not shown. The PWM output signal PWMOUT is low pass filtered by inductor LF 110 and capacitor CF to become output voltage, VOUT. A typical requirement of a DC-DC converter is that the regulator have a specified output impedance. That is, VOUT must decrease at a fixed rate with respect to increasing load current, ILOAD, to provide a fixed specified output impedance.
Circuit for measuring inductor current flow 310 is used in converter 300 shown in FIG. 3 to sense the current through LF 110, which as noted above is essentially the same current, on average, as the current through the load RL. Circuit for measuring current 310 can be embodied as circuit 200 comprising RIND and CIND across LF 110, together with on chip RSENSE between VOUT and the ISENSE+ pin, and the other exemplary circuitry shown attached to the right of pins ISENSE− and ISENSE+ together with RSET shown in circuit 200.
The current IOUT2 generated by circuit for measuring inductor current 310 is applied, with the proper polarity using current mirror 330. The output of current mirror 330 is a sourcing current representation of IOUT2, which flows through RFB, thus increasing the voltage at node FB with respect to VOUT as ILOAD increases. Error amplifier 350 then brings the voltage at VOUT down so that node FB remains equal to VREF, thus providing the desired fixed output impedance.
FIG. 4 shows a second exemplary application for inductor current sensing circuits according to the invention. FIG. 4 shows the schematic of an exemplary PWM DC-DC converter 400 that includes a circuit for measuring inductor current flow according to the invention 310 used to protect the PWM supply with an over current trip action. As mentioned relative to FIG. 3, circuit for measuring current 310 can be embodied as the exemplary measurement circuitry shown in FIG. 2.
In operation, circuit for measuring inductor current flow according to the invention 310 disables power to PWM 360 if the load current ILOAD increases beyond a predetermined current level. In one embodiment, inverter 435 is coupled to a reset pin of PWM 360. IOUT2 is compared to a fixed reference current provided, IREF. For converters which require the reset pin to be high for normal operation, if IOUT2 is greater than IREF, the input of inverter 435 is pulled down, which results in the inverter going high and sending a reset signal to the PWM 360 which disables PWM 360 and thus protects PWM 360 from an over current condition
There are several significant advantages provided by the invention. One advantage is that RSENSE is on chip resulting in the inverting input to A1 being an internal node, and therefore shielded from capacitive coupling of noise. Both ISENSE+ and ISENSE− nodes in circuit 200 are low impedance, so are less susceptible to noise pickup. Another advantage is that the input from RSET, an external resistor, can be DC or a low frequency since it does not affect the bandwidth of the path from ISENSE to IOUT2. RSET can therefore be bypassed (bypass capacitor not shown) to prevent noise pickup.
A further advantage is RSET can be used to control several channels of ISENSE to IOUT2. This saves components compared to using a separate external RSENSE for every channel. Another advantage is that a thermistor could be used to modify the value of RSET with temperature, adjusting the gain of IOUT2 to match the thermal coefficient of the inductor DCR. A positive temperature coefficient thermistor (PTC) or a PTC-resistor network could be used to replace RSET. The PTC or PTC-resistor network could be chosen to have the same temperature coefficient as that of the DCR of the inductor, and would be placed to thermally track the inductor. As the inductor increased in temperature and therefore its DCR value, a like increase in resistance of the PTC or PTC-resistor network would decrease the multiplying gain of the sensing circuit, giving a constant ratio of sensed current to actual inductor current. The thermistor could be bypassed near the IC to prevent noise pickup.
It is to be understood that while the invention has been described in conjunction with the preferred specific embodiments thereof, that the foregoing description as well as the examples which follow are intended to illustrate and not limit the scope of the invention. Other aspects, advantages and modifications within the scope of the invention will be apparent to those skilled in the art to which the invention pertains.

## Claims

1. An integrated circuit configured to be coupled to a current sensing element and a set resistor having a resistance Rset, the integrated circuit comprising:
a sense resistor having a resistance Rsense, the sense resistor coupled to an input of the integrated circuit such that a first sensed current from the current sensing element flows through the sense resistor;
a reference resistor having a resistance Rreference which is a fixed multiple of Rsense; and
circuitry configured to produce an output current such that the value of the output current is proportional to a value of Rset and a fixed ratio between Rsense and Rreference.

2. The integrated circuit of claim 1, wherein the circuitry in the integrated circuit includes tracking circuitry configured to drive the reference resistor such that a voltage across the reference resistor is substantially equal to a voltage across the set resistor.

3. The integrated circuit of claim 2, wherein the tracking circuitry comprises:
a source follower coupled to a low potential side of the reference resistor; and
an operational amplifier having an output coupled to a gate of the source follower.

4. The integrated circuit of claim 1, wherein the reference resistor and the sense resistor are comprised of the same type of material.

5. The integrated circuit of claim 1, wherein the circuitry in the integrated circuit is configured to determine a ratio of current through Rset to current through Rreference and to combine the ratio of current through Rset to current through Rreference with a first measurement current to produce the output current.

6. An integrated circuit comprising:
a first input configured to be coupled to a current sensing element;
a second input configured to be coupled to a set resistor having a first resistance;
a sense resistor having a second resistance, the sense resistor coupled to the first input such that a voltage is placed across the sense resistor to generate a first measurement current based on the second resistance;
a reference resistor having a third resistance, the third resistance being a fixed multiple of the second resistance; and
a current multiplier configured to generate a second measurement current which is indicative of a load current and is independent of the second resistance by combining the first measurement current with a ratio of current at the second input to current through the reference resistor.

7. The integrated circuit of claim 6, further comprising tracking circuitry configured to drive the reference resistor such that a voltage across the reference resistor is substantially equal to a voltage across the set resistor.

8. The integrated circuit of claim 7, wherein the tracking circuitry comprises:
a source follower coupled to a low potential side of the reference resistor; and
an operational amplifier having an output coupled to a gate of the source follower.

9. The integrated circuit of claim 6, wherein the reference resistor and the sense resistor are comprised of the same type of material.

10. The integrated circuit of claim 6, further comprising:
a transistor having a gate, a source and a drain; and
an operational amplifier having an input coupled to the sense resistor and an output coupled to the gate of the transistor;
wherein the drain of the transistor is coupled to the current multiplier to provide the first measurement current to the current multiplier.