# Patent

## Title
Current sensor including an integrated circuit die including a first and second coil

## Abstract

A current sensor includes a coils located within the integrated circuit die and inductively coupled to a conductor located in the integrated circuit package holding the die. The inductors sense the current in the conductor and supply the sensed signal to an integrator that supplies a voltage indicative of the current in the conductor.

## Background
This application is a continuation of U.S. patent application Ser. No. 11/428,082, now U.S. Pat. No. 7,397,234, entitled “CURRENT SENSOR WITH RESET CIRCUIT,” filed Jun. 30, 2006, naming inventors Donald E. Alfano and Timothy J. Dupuis, which application is hereby incorporated herein by reference.


This application also relates to U.S. patent application Ser. No. 11/311,603, entitled “INTEGRATED CURRENT SENSOR,” filed Dec. 19, 2005, naming inventors Donald E. Alfano and Timothy J. Dupuis; and to U.S. patent application Ser. No. 11/311,517, entitled “INTEGRATED CURRENT SENSOR PACKAGE,” naming inventors Timothy J. Dupuis and John Pavelka, filed Dec. 19, 2005, which applications are incorporated herein by reference.
BACKGROUND
1. Field of the Invention
The present invention relates to current sensors, and more particularly, to a current sensor having an improved reset circuit.
2. Description of the Related Art
Within various circuit implementations, such as power supplies, there is often a need to detect a current provided at a particular point within a circuit. For example, a detected current may be used as feedback for controlling other parts of a circuit. Various techniques are presently used to sense currents within electronic circuits, but each of these techniques have shortcomings. One approach, illustrated in FIG. 1, utilizes a resistor 102 connected across the inputs of an operational amplifier 104 to provide a voltage VSENSE that may be used to determine a current 106. A low value resistor, in the range of 10 mOhms, may be implemented. However, a drawback of this approach is the high loss provided by the circuit. The high loss may be mitigated by reducing the value of the resistor 102, however, this also reduces the signal VSENSE that may be detected. While this type of circuit may be used to sense current in direct current (DC) applications, the resistor 102 has usually not been capable of being readily integrated.
Referring now to FIG. 2, a further prior art system, utilizing a Hall effect device 202, connected across the inputs of an operational amplifier 204, is illustrated. The Hall effect device 202 generates a voltage across the inputs of the operational amplifier 204, responsive to a current 206, to provide an output signal VSENSE. While this approach has a relatively low loss and may be used to detect direct current (DC), the use of the Hall effect device 202 generally provides a circuit having a higher cost. Furthermore, accuracy and noise issues are generally greater in current sensors that implement a Hall device, as the Hall voltage is a relatively small value.
With reference to FIG. 3, a current sensor that uses a magneto resistive sensor is illustrated. The magneto resistive sensor consists of a magneto resistive element 302 connected across the inputs of operational amplifier 304 to detect a current 306. The magneto resistive element 302 has the property that the resistance of the element changes with respect to the magnetic field caused by the current 306. This circuit requires the use of special technology which raises the cost of the device. Additionally, accuracy issues arise even though the current may be sensed with very low loss.
Referring now to FIG. 4, an alternative prior art technique for detecting current, through the use of a current transformer 402, is illustrated. As is shown, the current transformer 402 has a primary side 404 with a single loop and a secondary side 406 with multiple loops. A load resistance 408 is in parallel with the secondary side 406 of the transformer 402. The current transformer 402 is used to detect a current 410. The transformer 402 creates an output current equal to Ip/n, with Ip being the detected current and n being the turns ratio of the transformer 402. In this configuration, the resistance of the secondary side of the transformer is reflected to the primary side with the ratio 1/n2. While current transformers work well for detecting currents, they are large and have a medium loss level and only work with alternating current (AC) circuits.
Another method for measuring currents involves the use of a Rogowski coil. Unfortunately, the voltage induced in a Rogowski coil is very small and easily disturbed when a measured current is less than, for example, 100 Amps. However, a Rogowski current transducer has a number of advantages over the current transformer illustrated in FIG. 4. For example, the Rogowski current sensor is linear, has no core saturation effects, has a wide bandwidth and a wide measurement range and is a relatively simple structure. The Rogowski coil comprises a toroidal winding placed around a conductor being measured. The Rogowski coil is effectively a mutual inductor coupled to the inductor being measured, where the output from the winding is an EMF proportional to the rate of change of current. While the above described techniques provide an indication of a sensed current in certain applications, the techniques, as noted above, individually have a number of short comings.
What is needed is a technique for detecting a current, within, for example, a power electronic circuit, that addresses many of the shortcomings of the prior art techniques described above. It would be desirable for a current sensor configured according to the technique to be capable of being reset without adversely effecting a subsequent output signal provided by the current sensor.
SUMMARY
In one embodiment a current sensor includes an integrated circuit die including a first and second coil formed in the integrated circuit die. An integrated circuit die package holds the integrated circuit die and a conductor located within the integrated circuit die package and outside of the integrated circuit die. The conductor receives a current from an input terminal of the integrated circuit die package and supplies the current to an output terminal of the integrated circuit die package. The conductor and first and second coils are inductively coupled.
In another embodiment a current sensor includes a first and second inductor in an integrated circuit die inductively coupled with a conductor outside the integrated circuit die and located in a package holding the integrated circuit die. An integrator circuit that is coupled to the first and second inductors is configured to generate a sensed voltage responsive to a current in the conductor sensed by the first and second inductors.
In another embodiment a method is provided that includes receiving a first current in a conductor located within an integrated circuit die package and outside of an integrated circuit die. As a result of the first current a signal is induced in a first and second coil in the integrated circuit die. The induced signal is integrated in an integrator circuit in the integrated circuit die and the integrator circuit supplies an integrator output voltage from the integrator circuit indicative of the first current.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention may be better understood, and its numerous objects, features, and advantages made apparent to those skilled in the art by referencing the accompanying drawings.
FIG. 1 illustrates a prior art current sensor.
FIG. 2 illustrates a further prior art current sensor.
FIG. 3 illustrates yet another prior art current sensor.
FIG. 4 illustrates a further prior art current sensor.
FIG. 5a illustrates a coil in close proximity with a large current carrying wire, according to an embodiment of the present invention.
FIG. 5b illustrates a perspective cut away view of an integrated circuit, including a coupled coil and wire.
FIG. 6 is a cross-sectional view of a first embodiment of an integrated current sensor package.
FIG. 7 is a top view of the first embodiment of the integrated current sensor package.
FIG. 8 is a model (equivalent circuit) of the integrated current sensor illustrated in FIGS. 6 and 7.
FIG. 9 is a cross-sectional view of an alternative embodiment of the integrated current sensor package.
FIG. 10 is a top view of the alternative embodiment of the integrated current sensor package of FIG. 9.
FIG. 11 is a model (equivalent circuit) of the alternative embodiment of the integrated current sensor package illustrated in FIGS. 9 and 10.
FIG. 12 is a schematic diagram of an integrated current sensor.
FIG. 13 is a schematic diagram illustrating an integrated current sensor within a switched power supply circuit.
FIG. 14 is a timing diagram illustrating operation of the switched power supply circuit of FIG. 13.
FIG. 15 illustrates a further circuit for controlling a reset switch of an integrated current sensor.
FIG. 16 is a top view of a further embodiment of the integrated current sensor package.
FIG. 17 is a cross-sectional view of the embodiment of the integrated current sensor package in FIG. 16, along the line 17-17.
FIG. 18 is a further cross-sectional view of the embodiment of the integrated current sensor package in FIG. 16, along the line 18-18.
FIG. 19 is an electrical schematic of a circuit that includes a current sensor implemented in a buck converter application.
FIG. 19a is a timing diagram illustrating operation of the circuit of FIG. 19.
FIG. 20 is an electrical schematic of a circuit that includes a current sensor with a reset circuit, configured according to one aspect of the present invention.
FIGS. 20a and 20b are timing diagrams that illustrate operation of the reset circuit of FIG. 20.
FIG. 21a illustrates an embodiment in which two coils are used to sense the current instead of one.
FIG. 21b illustrates another two coil embodiment in which the current carrying wire implemented on the current sensor package is “U” shaped.
FIG. 22 illustrates another view of an embodiment of a dual coil current sensor.
FIG. 23 illustrates of how the dual coils are coupled to the integrator in an exemplary embodiment.



DESCRIPTION OF THE PREFERRED EMBODIMENT(S)
Referring now to the drawings, and more particularly to FIG. 5a, there is illustrated a coil 502 in close proximity with a large current carrying wire (or conductor) 504 such that the coil 502 and current carrying wire 504 act as coupled inductors. The coupled inductors, along with on-chip electronics, which will be discussed herein below, allow for the creation of the VSENSE signal which is proportional to an input current ip in a manner that has very low loss, is very small and is a low cost implementation. This generally provides a better solution than the implementations described with respect to FIGS. 1-4. The current provided through the current carrying wire 504 may be up to, for example, 10 A. The coil 502 is placed near the current carrying wire 504 in order to create inductive coupling between the wire 504 and coil 502. As shown, the wire 504 only overlaps only one side of the coil 502 such that the windings are all going the same way and the magnetic flux adds together. This causes an induced current in the other side of the coil 502 that is not overlapped by the wire 504.
Referring now to FIG. 5b, there is illustrated a perspective cut away view of the coil 502 and wire 504 illustrated in FIG. 5a. In this configuration one of the coupled inductors is placed within a silicon dioxide layer 604 on top of a die 606 of an integrated circuit chip. The coil 502 consists of metal runs in, for example, an M5 layer located within the silicon dioxide layer 604. The wire 504 would rest on the silicon dioxide layer 604 in close enough proximity to the coil 502, such that current passing through the wire 504 would induce another current within the portion of the coil 502 over which the wire 504 was not located.
There are multiple ways for implementing the coupled inductor configuration within a chip package. The first of these comprises an on-chip solution with bumping copper, as illustrated in FIG. 6. Flip chip bump houses can deposit a copper wire 602 on top of a silicon dioxide layer 604 of a die 606. The copper wire 602 may comprise, for example, 15 μm of copper. As is illustrated, the coil 502 is embedded within the silicon dioxide layer 604.
Referring now to FIG. 7, there is illustrated a top view of the package configuration. The copper wire 602 is placed upon the silicon dioxide layer 604 of the die 606 (not shown in FIG. 7). The coil 502 is located within the silicon dioxide layer 604 parallel to the wire 602. Bond wires 702 connect the copper wire 602 on the die 606 with external outputs. The bond wires 702 typically support a maximum current of 1-2 amps, thus many bond wires are required to be connected to the copper wire 602 for higher currents. Additional bond wires 704 connect portions of the die 606 to external pins 706 of the chip. Using the above-described package configuration, a 10 A sensor may be readily constructed.
Referring now to FIG. 8, there is provided a model (equivalent circuit) of the inductive coil package illustrated in FIGS. 6 and 7. The coil 802 on the primary side comprises a 500 pH coil. The coil 804 on the secondary side comprises a 2 μH coil. Connected to a first side of the 500 pH coil 802 is a 1.5 mOhm resistor 808 in series with a 0.5 mOhm resistor 810. Connected to one output side of the 2 μH coil 804 is a 20 kOhm resistor 812. The 0.5 mOhm resistor 810 comprises the resistance provided by the coil 802. Since the copper wire 602 is not too thick and lies very close to the coil 502 of the chip, coupling coefficients between the copper wire 602 and the coil 502 are very good, assuming there is a distance of approximately two microns from the coil 502 (e.g., formed in an M5 layer) to the copper wire 602.
Referring now to FIG. 9, there is illustrated an alternative configuration wherein a package lead frame and flip chip configuration are used. A custom package lead frame may be designed as follows. The die 902 is placed upside down with the silicon dioxide layer 904 suspended a short distance above a large copper slug 906. The copper slug 906 may have a large cross-sectional area for low loss. In this embodiment the slug 906 has a 200×200 μm cross-section. The die 902 is suspended above the copper slug 906 on solder balls 908, which rest on top of a lead frame 910. When heat is applied to the circuit, the solder bumps 908 reflow causing the silicon dioxide layer 904 to rest directly upon the copper slug 906. In this design, the die chip 902 would be bumped and then flipped.
Referring now to FIG. 10, there is illustrated a top view of the embodiment of FIG. 9 with the silicon dioxide layer 904 resting on top of the copper slug 906. Bond wires 1002 may then be connected to appropriate portions of the M5 (or other metal layers) formed within the silicon dioxide layer 904. This design has a very low resistance.
Referring now to FIG. 11, there is illustrated a circuit representation of the embodiment illustrated in FIGS. 9 and 10. In this representation, a 200×200 μm copper slug 906 is utilized that is 3 μm away from the coil 502, and the primary side includes a 520 pH coil 1102 in series with a 0.5 mOhm resistor 1104. The secondary side consists of 2 μH coil 1106 in series with a 20 kOhm resistor 1108. The coupling coefficient is reduced due to the lower current density in the slug.
With reference to FIG. 16 there is illustrated a bottom view of a further configuration wherein a lead on chip configuration is used. The lead frame 1602 is connected to die 1604, by bond wires 1606. The wire 1608 is connected to the die 1604 by, for example, tape 1702. The wire 1608, a current carrying conductor, is inductively coupled to a coil in the die 1604.
Referring now to FIG. 17, there is illustrated a cross-sectional view of FIG. 16, along line 17-17. The die 1604 is connected to the wire 1608, via the tape 1702, as described previously. The lead frame 1602 connects to the die 1604, via bond wires 1606. The tape 1702 may be, for example, approximately 75 μm thick. As is shown, the structure is contained within a mold compound 1704. Referring now to FIG. 18, there is illustrated a cross sectional view of FIG. 16, along line 18-18.
Turning to FIG. 12, there is illustrated a schematic diagram of the electronic circuit necessary for recreating the VSENSE signal when detecting the current ip using the coupled inductors as illustrated in FIGS. 5A and 5B. The coupled inductor 1202 comprises either of the configuration packages described hereinabove or, alternatively, may comprise a different undescribed configuration package that places the coil in close proximity with the wire to inductively couple them together. The primary side is modeled by inductor 1204 in series with resistor 1206. The secondary side is modeled by inductor 1208 which is connected to a resistor 1210. The resistor 1210 is then connected to ground. The other side of inductor 1208, which is connected to the negative (inverting) input of an operational amplifier 1212, outputs the induced current In. The positive (non-inverting) input of operational amplifier 1212 is connected to ground.
The current through the secondary is dominated by the resistive loss of resistor 1210 and is the derivative of the primary current. An integrator circuit 1218 is used to integrate the induced current In. The integrator circuit 1218 includes the operational amplifier 1212, a capacitor 1214 (connected between the output of operational amplifier 1212 and the negative input of operational amplifier 1212) and a reset switch 1216 (connected between the output of operational amplifier 1212 and the negative input of operational amplifier 1212) in parallel with the capacitor 1214. Thus, the current In may be determined according to the equation:

In=(Lm/R1)(dip/dt)

By integrating on the capacitor 1214 an output voltage VSENSE is attained according to the following equation:

VSENSE=1/C∫Indt=(Lm/R1C)ip 

In this case, Lm, the mutual inductance, is well controlled, but can vary from part to part due to assembly variations. The capacitance C will vary from part to part and probably can be controlled to +/−5% accuracy. The capacitor 1214 will generally not have any appreciable temperature coefficient. R1 is dominated by the metal resistance of the coil and will vary from part to part and is equal to the value of the resistor 1210 and also has a large temperature coefficient.

In order to obtain overall accuracy for the capacitance C which varies from part to part, factory calibration using a one time programmable (OTP) memory 1220 can be used. In a preferred embodiment, a low cost 32-bit OTP memory may be utilized. The OTP memory 1220 provides a control variable to a programmable gain amplifier 1222. The first gain stage 1223, consisting of programmable amplifier 1222, programmable resistance 1224 and the OTP memory 1220, compensates for part to part variations of the circuit. The OTP memory 1220 is programmed at the factory based upon measurements made there. The programmable gain amplifier 1222 has its negative input connected to the output of the operational amplifier 1212. A programmable resistance 1224 is connected between the output of the programmable amplifier 1222 and ground. The positive input of programmable amplifier 1222 is connected to the programmable resistance 1224. The value of the programmable resistance 1224, and thus the gain of the first gain stage 1223, is controlled by the values provided from the OTP memory 1220.
A second gain stage 1226 compensates for differences in the resistance caused by temperature variations in the device. A temperature sensor 1228 and an analog-to-digital converter (ADC) 1230 are used to generate a digital temperature value to compensate for the coil resistance temperature coefficient. The temperature sensor 1228 detects the temperature and generates an analog representation of the temperature. The ADC 1230 converts the analog signal into a digital signal. The digital temperature value is provided, via a control bus 1231, to control logic 1232. In one embodiment the control logic 1232 may consist of a look-up table. The look-up table would include various control values associated with particular temperature values. Alternative embodiments may include a microprocessor programmed to control the output according to various temperature levels or other types of digital logic. The control logic 1232 provides a control value to the programmable gain amplifier 1234 and programmable resistance 1236. The negative input of the amplifier 1234 is connected to the output of programmable amplifier 1222. The programmable resistor 1236 is connected between the output of programmable amplifier 1234 and ground. The positive input of the amplifier 1234 is connected to the programmable resistance 1236. The particular value of the programmable resistance 1236, and thus the gain of the second gain stage 1226, is controlled via the output from the control logic 1232. The output of the amplifier 1234 provides the compensated VSENSE signal. The code provided by the control logic 1232 is updated during the phase in which the operational amplifier 1212 is reset responsive to a reset signal applied to switch 1216. The reset signal is applied while the sensed current ip is zero.
The current sensor is designed to be used in, for example, a switched power supply. When the current ip is equal to zero, a reset signal may be applied to switch 1216 to reset the capacitor 1214, and the logic value applied to amplifier 1234, via control logic 1232, is updated responsive to the presently sensed temperature from temperature sensor 1228. Referring now to FIG. 13, there is provided one example of how to apply the reset signal to a current sensor 1302 within a buck converter circuit. In this case, the buck converter circuit control signal φ2 is applied to a transistor 1304 having its drain/source path connected between 12 volts and node 1306. A second transistor 1308 has its drain/source path connected between node 1306 and node 1310. The transistor 1308 is controlled by a second control signal φ1. The current sensor 1302 is connected between node 1310 and ground to detect current ip and provide a control signal VSENSE. An inductor 1312 is connected between node 1306 and node 1314. A capacitor 1316 is connected between node 1314 and ground. A load 1318 is also connected between node 1314 and ground. In one embodiment, the reset signal to switch 1216 of the current sensor 1302 may be configured to be the control signal φ2.
As illustrated in FIG. 14, the current ip is zero when signal φ1 goes low and when signal φ2 goes high at, for example, time t1. Integrator 1218 is reset during phase two when signal φ2 goes high and the current sensor would accept signal φ2 as an input to drive the reset signal to switch 1216, since the current ip is zero during this time. As can be seen each time the signal φ2 goes high, the current ip is zero enabling the reset signal to be applied to the integrator circuit 1218.
Referring now to FIG. 15, there is illustrated an alternative embodiment wherein the reset signal to the reset switch 1216 is generated responsive to a one-shot circuit consisting of negative glitch detect circuit 1502 and one-shot circuit 1504. When the current ip goes low as illustrated, for example, at t1 in FIG. 14, the negative glitch detect circuit 1502 will detect the negative edge of current ip. In response to this detection, the negative glitch detect circuit 1502 generates a pulse to the one-shot circuit 1504. The one-shot circuit 1504 then generates the reset signal to the reset switch 1216 responsive to the pulse from the negative glitch detect circuit 1502. Other methods for detecting when the sensed current ip goes to zero may also be utilized for generating the reset signal to reset switch 1216. The examples illustrated in FIGS. 13-15 are merely provided as examples of some embodiments thereof.
With reference to FIG. 19, a relevant portion of a buck power converter 1900 is depicted that includes a current sensor 1902 that senses a current provided by a power source +V. Referring to FIG. 19a, a timing diagram 1970 depicts various waveforms used in conjunction with the converter 1900. In this application, a signal φ1 drives switch 1904 to cause a current ‘i’ to flow (from the power source +V through an inductor 1920) and power to be provided to a load 1912, through an inductor L1 and a capacitor C1. The current ‘i’ that flows through the inductor 1920 induces a current that flows through the inductor 1922 and resistor 1924, charging capacitor 1926. When the switch 1904 is conducting, switch 1906 is in a non-conducting state. Similarly, when the switch 1904 is in a non-conducting state, a signal φ2 drives switch 1906 into a conducting state. The switches 1904 and 1906 may be, for example, implemented as enhancement-mode field-effect transistors (FETs).
As is also shown, the signal φ2 may also function as a reset signal to drive a switch 1908 which, when conducting, shorts the capacitor 1926 of integrator 1910 and resets the integrator 1910 of the current sensor 1902. It should be appreciated that it is desirable for the reset signal to be turned off prior to a time when the current ‘i’ again flows through inductor 1920 in order to not adversely affect an output signal VOUT provided by the integrator 1910. In modern power converters this requirement can be difficult to meet as the falling edge of the signal φ2 and the rising edge of the signal φ1 may slightly overlap. In this event, the integrator 1910 may still be in a reset state when the current ‘i’ again begins flowing through the inductor 1920. As a result, the output signal VOUT (provided by the integrator 1910) will not provide an accurate indication of the current ‘i’ that flows through the inductor 1920. This is particularly true for a current, such as the current ‘i’ shown in FIG. 19a, where the induced current is proportional to di/dt and the change in ‘i’ is most pronounced at the start of φ1.
Turning to FIG. 20, a reset circuit 1950, configured according to one aspect of the present invention, is shown implemented in conjunction with the current sensor 1902 of FIG. 19. A control signal, as is shown in timing diagrams 1980 and 1990 of FIGS. 20a and 20b, respectively, corresponds to the signal φ2 of FIG. 19a. It should, however, be appreciated that the control signal may be a different signal having, for example, a different polarity. The reset circuit 1950 includes a one-shot multivibrator 1960 and an AND gate (or one or more logic gates) 1962. As is used herein, the term “one-shot circuit” or “one-shot multivibrator” is a device with one stable state that, responsive to an input signal, provides an output signal for a period of time before returning to the stable state. A reset signal is provided by the AND gate 1962, responsive to the control signal and a reset_one signal provided at the output of the multivibrator 1960. A pulse width of the reset signal corresponds to a pulse width of the shortest one of the reset and reset_one signals. As such, except for the case of extremely short pulse widths of control signals φ1 and φ2, depending upon the implementation, the reset circuit 1950 ensures that the reset of the integrator shorter than the control signals and thus the integrator reset is released before the current rises substantially above zero, thus allowing accurate sensing the current. It should be appreciated that the above-described reset circuit can be readily incorporated within the same integrated circuit that includes the current sensor and the use of φ2 (or other signal) readily allows for external timing control. Thus, one of the external pins 706 (FIG. 7) can be supplied with an appropriate φ1 or φ2 control signal for use to generate the reset signal, depending upon the location of the current sensor. Exemplary placements of the current sensor for a buck converter are illustrated in FIGS. 13 and 19.
In another embodiment, two coils are used instead of one to sense the current. Referring to FIG. 21a a top view of two coils 2101 and 2103 are seen in die 2105 vertically displaced from the current carrying wire 2107. The coils 2101 and 2103, shown as single turns for ease of illustration, may be multiple turn coils. In an exemplary embodiment the width of the current carrying wire is 0.75 mm. The use of two coils allows significant cancellation of stray fields from external sources, and thus more accurate current sensing in certain environments. In another embodiment illustrated in FIG. 21b, the current carrying wire 2109 has a different configuration and is shaped as a “U”. Potential interferers, wires 2111 and 2115, are also illustrated. In both embodiments, the current carrying wires 2107 and 2109 may be copper and formed as part of the lead frame package housing the die with the dual coils. FIG. 22 illustrates another view of an embodiment of a dual coil current sensor implementation.
FIG. 23 illustrates an exemplary embodiment of how the dual coils are coupled to the integrator. For ease of illustration, the reset circuit and the calibration and temperature compensation circuits are omitted from the figure. As shown in FIG. 23, the direction of current in coil 2301 and 2303 causes the flux direction in the two coils to be in the opposite direction (one into the page and one out of the page), thus resulting in a substantial improvement in cancellation of interference over a single coil embodiment in certain applications. Note also that in FIG. 23 single turn coils are illustrated. In other embodiments the coils may be implemented with the appropriate number of turns to adequately provide the current sensing capability.
Accordingly, a reset circuit for an integrator has been described herein that ensures that a reset input of an integrator is released before a sensed current rises to a value that would adversely affect an output signal provided by the integrator in response to the sensed current.
Although various embodiments have been described in detail, it should be understood that various changes, substitutions and alterations can be made therein without departing from the scope of the invention as defined by the appended claims.

## Claims

1. A current sensor, comprising:
a first and second inductor in an integrated circuit die inductively coupled with a conductor outside the integrated circuit die and located in a package holding the integrated circuit die;
an integrator circuit coupled to the first and second inductors and configured to generate a sensed voltage corresponding to a current in the conductor sensed by the first and second inductors;
a first compensation circuit for compensating the sensed voltage according to a first control value;
a second compensation circuit for compensating the sensed voltage responsive to a sensed temperature; and
wherein the first compensation circuit includes,
a first programmable gain stage including an amplifier, for compensating the sensed voltage responsive to the first control value, the first control value configuring the first programmable gain stage to compensate for part to part differences in the integrator circuit; and
a memory for storing the first control value.

2. The current sensor of claim 1, further including a lead frame for supporting the integrated circuit die.

3. The current sensor as recited in claim 1 wherein the integrator includes an operational amplifier having an inverting input, a non-inverting input and an output and a capacitor having a first terminal and a second terminal, and wherein the inverting input of the operational amplifier is coupled to the first and second inductors and the first terminal of the capacitor, and the second terminal of the capacitor is coupled to the output of the operational amplifier, which provides the sensed voltage.

4. The current sensor of claim 1, wherein the integrator circuit further comprises:
an operational amplifier; and
a capacitor connected between an input of the operational amplifier and an output of the operational amplifier.

5. The current sensor of claim 1, wherein a first end of the first inductor is coupled to the integrator circuit and a second end of the first inductor is coupled to a first end of the second inductor and a second end of the second inductor is coupled to ground.

6. The current sensor of claim 1, wherein the second compensation circuit further comprises:
a second programmable gain stage including a second amplifier for compensating the sensed voltage responsive to a second control value, the second control value configuring the second programmable gain stage to compensate for temperature differences;
a temperature sensor for generating a temperature signal; and
control logic responsive to the temperature signal for generating the second control value.

7. The current sensor as recited in claim 1 further comprising a tape disposed between the conductor and the integrated circuit.

8. The current sensor as recited in claim 1 wherein the conductor is configured such that the conductor does not supply current to the integrated circuit die.

9. The current sensor as recited in claim 1 wherein the conductor is vertically displaced from the first and second inductors.

10. A method comprising:
receiving a first current in a conductor located within an integrated circuit die package and outside of an integrated circuit die;
inducing a signal in a first and second coil in the integrated circuit die that corresponds to the first current;
integrating the induced signal in an integrator circuit in the integrated circuit die;
supplying an integrator output voltage from the integrator circuit indicative of the first current;
compensating the integrator output voltage in a first compensation circuit according to a control value stored in a non-volatile memory by configuring a programmable gain stage according to the control value, thereby compensating for part to part differences in the integrator circuit; and
compensating the integrator output voltage in a second compensation circuit responsive to a sensed temperature.