METHODS AND APPARATUS FOR IMPROVING TEMPERATURE DRIFT OF REFERENCES

Abstract: Methods and apparatus for improving the temperature drift of references by providing temperature compensation trimmable after packaging of the integrated circuit. In accordance with the method, first, second and third trim parameters are generated and trimmed at wafer sort so that the first parameter is substantially independent of temperature, and at a nominal temperature, the second and third parameters are zero, with the second being proportional to the temperature rise above nominal and the third being proportional to temperature decrease below nominal. After packaging, a component of the first parameter is combined with the output of the reference to obtain the desired output at the nominal temperature, after which a component of the second parameter is combined with the output of the reference to obtain the desired output at a temperature above the nominal temperature, and a component of the third parameter is combined with the output of the reference to obtain the desired output at a temperature below the nominal temperature. The compensation is made permanent by blowing fuses. Various embodiments are disclosed.

Description: METHODS AND APPARATUS FOR IMPROVING TEMPERATURE DRIFT OF REFERENCES BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of integrated circuits, and more particularly to temperature stabilization of circuits providing some form of reference to other circuits. 2. Prior Art In many systems, it is required to generate one or more references which maintain predetermined accurate values, system to system and over the desired operating temperature range of the system. In many applications, it is desired to generate the reference on an integrated circuit for use by other circuits on the same chip. In other applications, it is desired to generate the reference on an integrated circuit for use by other integrated circuits, or alternatively, for use by other integrated circuits and also for use by other circuits on the same chip as the circuit generating the reference. Such references include, but are not necessarily limited to, voltage references, current references and frequency references. The preferred embodiment of the present invention described herein relates specifically to voltage references. In general, it is difficult to make high precision voltage references since these require a tight tolerance on the reference voltage and a low drift with temperature. Normally, to achieve better precision, the room temperature reference voltage is trimmed at wafer sort. This can be easily done to ±0.1% of the nominal desired voltage. But after packaging, the reference voltage can shift. This shift is a function of process, layout and packaging (and probably some other factors) . To achieve accuracy better than around ±0.5%, one usually needs some form of post-package trim. This adjusts the reference voltage to the nominal value at room temperature; however, it doesn't guarantee low temperature drift. One very commonly used voltage reference is the bandgap reference. This type of reference combines two components of voltage, one of a positive temperature coefficient and one of a negative temperature coefficient, to achieve a combined voltage reasonably temperature insensitive. In particular, the base -emitter voltage of a junction transistor is given by the following equation: where: T = temperature To = an arbitrary reference or starting temperature I- = the transistor collector current I c o = collector current for which VBEO was determined V g0 = semiconductor bandgap voltage extrapolated to a temperature of absolute zero VBEO = base to emitter voltage V at To and I~o q = electron charge n = structure factor K = Boltzmann's constant The dominant terms are the first two terms : and since V go is larger than VBEO * the net result is a negative temperature coefficient. If one subtracts the VBEs of two identical transistors Q and Q 2 operating with different collector currents, there results: or: This usually is expressed in terms of current densities Ji and J 2 in the two transistors as follows A bandgap reference takes advantage of these two components by adding a VBE (or a forward biased diode voltage drop) to a properly weighted VBE difference of two transistors operating at different current densities. The temperature drift of bandgap references is a strong function of the reference voltage. Minimal temperature drift usually occurs around a bandgap voltage of 1.23V. A 1% change in this reference voltage can easily shift the temperature drift by 30ppm/°C. Even if the reference voltage is trimmed to the ideal value, there is variability due to process, device matching, circuit design, and (possibly) packaging effects. The result is that it's difficult to make precision references (< ±0.1% initial accuracy, < ±10ppm/°C) without very careful trimming, etc. Even if the tolerance is tight and average drift is low, references tend to have nonlinear temperature drift (curvature) that constitutes a major error. BRIEF SUMMARY OF THE INVENTION Methods and apparatus for improving the temperature drift of references by providing temperature compensation trimmable after packaging of the integrated circuit are disclosed. In accordance with the method, first, second and third trim parameters are generated and trimmed at wafer sort so that the first parameter is substantially independent of temperature, and at a nominal temperature, the second and third parameters are zero, with the second being proportional to the temperature rise above nominal and the third being proportional to temperature decrease below nominal . After packaging, a component of the first parameter is combined with the output of the reference to obtain the desired output at the nominal temperature, after which a component of the second parameter is combined with the output of the reference to obtain the desired output at a temperature above the nominal temperature and a component of the third parameter is combined with the output of the reference to obtain the desired output at a temperature below the nominal temperature. The compensation is made permanent by such means as blowing fuses. Various embodiments are disclosed. BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 illustrates the typical temperature drift characteristics of the MAX 874 lOμA, Low-Dropout, Precision Voltage Reference manufactured by Maxim Integrated Products and correction signals for a commercial temperature range of 0 to 70°C. Figure 2 illustrates the typical temperature drift characteristics of the MAX 874 10μA, Low-Dropout, Precision Voltage Reference using the present invention post-package trim scheme to improve drift over a commercial temperature range of 0 to 70°C. Figure 3 illustrates the typical temperature drift characteristics of the MAX 874 10μA, Low-Dropout, Precision Voltage Reference and correction signals for an extended temperature range of -40°C to 85°C. Figure 4 illustrates the typical temperature drift characteristics of the MAX 874 10μA, Low-Dropout, Precision Voltage Reference using the present invention post-package trim scheme to improve drift over the extended temperature range of -40°C to 85°C. Figure 5 is a circuit diagram for generating the three compensating current sources lo, IH and Ic- Figure 6 is a block diagram illustrating three programmable current DACs to generate the error corrections based on IQ, IH and Ic- Figure 7 is a circuit diagram for generating three compensating current sources Iosq, i H sq and Ic sq having a square law current variation with temperature. Figure 8 is a block diagram illustrating five programmable current DACs and associated circuitry to generate the error corrections based on I 0 , IH l IH 2 and lc 2 • Figure 9 is a circuit diagram of an exemplary square law DAC for trimming at wafer sort . Figure 10 is a block diagram illustrating the shift register 30 and the PROMs and DACs controlled by the output of the shift register. Figure 11 is a circuit diagram for a typical DAC of Figure 10. DETAILED DESCRIPTION OF THE INVENTION The preferred embodiment of the present invention is used as a post packaging trim of bandgap references to adjust both the nominal room temperature output of the references and to reduce the temperature sensitivity of such references. In the preferred embodiment, a post-package trim is made at three temperatures: room, hot and cold. In effect, three trims are made: 1) an offset adjustment to give the nominal reference voltage at room temperature, NCM; 2 ) a temperature coefficient adjustment for temperatures greater than T NOM ; and 3) a temperature coefficient adjustment for temperatures lower than TNC M - Then an error correction voltage increment V er r is determined to provide a piece-wise linear temperature sensitivity correction: Verr = V os + K H * (T - T N0M ) for T > T NOM V err = V os + K c * (T N0M - T) for T < T N0M where: V os is the room temperature offset adjust KH is the adjustable temperature coefficient for T > T N0 M Kc is the adjustable temperature coefficient for T < T N OM K H and Kc (units are in mV/°C) can be either positive or negative. To illustrate the improvement in performance achievable, consider the temperature drift of a MAX 874 lOμA, Low-Dropout, Precision Voltage Reference manufactured by Maxim Integrated Products, assignee of the present invention. Figure 1 illustrates the typical temperature drift characteristics of the MAX 874. Figure 1 also shows the 25°C output of the reference V out to be at the nominal 4.096 volts, when in practice typical units after packaging will vary within a range of variance centered at or close to 4.096 volts. If the present invention post-package trim scheme is used to improve drift over a commercial temperature range of 0 to 70°C, the final drift, shown in Figure 2, is about l/15 h of the original error. (This trim includes the trim of any deviation from 4.096 volts at 25°C, though none is shown in Figure 1.) This drift, corresponding to the deviation of the actual temperature drift curve from the linear piece-wise approximation thereof shown in Figure 1, corresponds to an error of 300μV or less from 0°C to +70°C. Note that for a 4.096V reference, lmV corresponds to 1 LSB (least significant bit) for a 12 bit A/D converter, so 0.3mV gives 3/10 LSB over this range. This sort of error is equivalent to a drift specification of about 2ppm/°C. Shown in Figure 3 are the correction signals for the extended temperature range of -40°C to 85°C. Because of the large amount of curvature from 0°C to -40°C, one gets a fairly large maximum error (== 1.3mV) after using the present invention post-packaging trim scheme, as shown in Figure 4. However this still gives about 5ppm/°C in this region ( (1.3mV/4.096V) /65°C) . Dramatic improvements can be made using the present invention with simple bandgap references. By way of example, the MAX 921-924 family of Ultra Low-Power Comparators uses a PTAT (proportional to absolute temperature) current source driving a resistor in series with a diode. The resulting performance is ~ 50ppm/°C. Using the proposed post-package trimming scheme, it is anticipated that all 10 of these units can have their drift reduced to < ImV over the temperature range -25°C to +85°C (industrial range) . This suggests that the parts could meet a 0.2% spec over this range. If a more accurate bandgap reference is built (with curvature correction) , it should be possible to get high yield to 10ppm/°C drift specs. In order to implement the post-package trim scheme of the preferred embodiment, three current sources are need: lo = a "constant" current source IH = C H * (T - T NOM ) for T > T NO M = 0 for T < T NO M lc = Cc * (T N0 M - T) for T < T NOM _ 0 for T > T NO M The constant current source is derived from the current flowing through a resistor with V B G (the bandgap voltage) across the resistor. I H (hot) and I c (cold) come from the difference between IQ and a PTAT (proportional to absolute temperature) current source. These currents will exhibit a small deviation from their desired temperature sensitivity, some or most of which will be nonlinear. However, as shall be shown, these current sources are used to make small error corrections in the bandgap source to be temperature compensated, so that the small deviation of a small correction becomes negligible in the end result. A circuit that provides all three current sources is shown in Figure 5. In this circuit, resistors Rl, R2 and R3 are thin film (temperature independent) resistors. Transistors PI and P2 are connected as a current mirror, so that the current through transistors PI and Q3 is mirrored to transistors P2, QI and Q4. Transistor Q3 is eight times larger than Q4, so that transistor Q4 operates at eight times the current density of transistor Q3. The actual current level is set by resistor Rl as: The voltage VBE across diode connected transistor Q 4 provides a negative temperature coefficient dependence (see the discussion in the prior art section) , with the voltage across resistor R2 = I 2 2 providing an appropriate positive temperature coefficient component to yield the substantially temperature independent bandgap voltage V BG at node 1. This constant voltage is mirrored by transistors QI and Q2 to resistor R3, which sets a constant current lo through transistors P3 and Q2. Transistor P3 mirrors the current lo to transistor P5 to provide the temperature insensitive trim current IQ, and also mirrors the current IQ to transistor P4. Transistors Q6 and Q7 have their bases coupled together and to an intermediate voltage VDD/2, and their emitters connected to the drain of transistor P4 and the collector of transistor Q5. To the extent that the positive temperature coefficient current IPTAT through transistor Q5, as mirrored from transistor Q4, equals the temperature independent current lo through transistor P4 at TNO transistors Q6 and Q7 will both be off and the current components IH and I will both be zero. At temperatures above this condition, the positive temperature coefficient current in transistor Q5 will increase so as to exceed the current lo, pulling the voltage of the emitter of transistor Q6 down to turn the same on, so that IH + lo = I P TAT- Thus, I H starts from a zero value at the temperature at which IPTAT equals lo, and increases therefrom with increasing temperature at a rate proportional to the increase in temperature over the temperature at which lo equaled IPT AT - During this time, transistor Q7 is off and I- is zero. Similarly, when the temperature decreases from the temperature at which lo equals I P TAT the magnitude of IPTAT will decrease below lo. Thus, lo will pull the emitter of transistor Q7 higher to turn the same on so that Ic equals IQ - IP T transistor Q6 now being turned off and IH remaining at zero. Thus, for temperatures below the temperature at which lo equals IP AT a current Ic will be provided having a magnitude proportional to how much lower the temperature is than the temperature for which lo equals IPT A T- Transistors P8 and P9, connected as a current mirror, mirror the current to provide an IH source. Accordingly, a first output current lo is provided which is substantially independent of temperature. At some nominal temperature, typically selected to be room temperature for convenience, IQ will equal IPTAT SO that I H and Ic are both zero. To achieve this, resistors Rl and R2 may be trimmed at the time of wafer sort. An increase in the resistance of resistor R2 will increase the voltage on node 1 as a result of the higher voltage drop across resistor R2 from the current flowing there through. An increase in the resistance of resistor Rl, on the other hand, decreases the current through transistors Q3 and PI, reducing the current mirrored to transistor P2 flowing through resistor R2 to reduce the voltage on node 1, allowing adjustment of the voltage on node 1 at wafer sort up or down to reach the desired bandgap voltage. Trimming of resistor R3 at wafer sort allows the reduction of the constant current lo, nominally designed to be somewhat high at room temperature, to equal IPTAT at room temperature (or any other "nominal" temperature selected) . The three currents lo, IH and Ic can be fed to three programmable current DACs to generate the required error correction voltage, as shown in Figure 6. In a preferred embodiment, the DACs each respond to a digital input, such as a six bit trim signal, and for each of 5 bits, generate a corresponding current component of, or proportional to, the respective current lo, IH and Ic weighted in a binary progression in accordance with the respective bit position. This provides a selection of correction currents in a binary progression, which can be made permanent by blowing fuses or programming other, non-volatile storage devices. DACs of this type are well known in the prior art and, accordingly, the details thereof need not be provided herein. Also, on the assumption that corrective components of either sign may be required, each DAC in this exemplary embodiment would include incremental current sourcing and current sinking capability to the node V COMP hy either steering a respective component of compensating current from the positive power supply into the node, or alternatively, sinking a current from the node to ground, depending upon the respective bit in the digital compensation signal. In that regard, in any particular instance only a positive or a negative compensating signal is required, not both at the same time, so that the sixth bit of the multi-bit compensating signals may be used for selection of the sign of the correction. In Figure 6, positive and negative temperature correction capabilities are shown for both the corrective current components Ic and I H . In many applications, both positive and negative correction capabilities will not be required, as frequently the variation of the reference with temperature is a predictable residual left over from whatever compensation is included in the basic circuit. See, for instance, Figures 1 and 3 for the MAX 874 10μA, Low- Dropout, Precision Voltage Reference previously discussed. For the correction of the nominal setting, obviously one could set the output on one side of the desired nominal output at the time of wafer sort so that the sign of the correction required to achieve the nominal output voltage at the selected reference temperature would also be known ahead of time. This, however, in general is not preferred, as it substantially increases the average correction required and in many instances care will have been taken to provide greater stability in the circuit being compensated than in the compensation circuit itself. However, the sign of the Ic and IH correction components can be predicted in many instances, so that only one polarity of each set of correction components will need to be provided. The actual implementation one would use may depend on the bandgap reference itself, as various known reference circuits include additional circuitry for compensation with which the present invention may be adapted to interface. As a specific example, note that in the circuit of Figure 5, the bandgap voltage appears at node 1, and across resistor R3 at node 2. Thus appropriate correction currents lo, IH and Ic into and/or out of node 1 will correct the room temperature error and most of the hot and cold drift in the bandgap voltage. Also note that if a different bandgap reference circuit is used, then that circuit may well have a constant current and/or an I P TAT component of current that can be easily mirrored for use in the correction circuit, negating the need for much of the circuitry of Figure 5. The actual trim procedure may use an internal counter that drives the DACs, as subsequently described. Each DAC would have a fuse for each digit and a master fuse that, once blown, prevents the DACs (programmed) code from being altered again. Thus, a typical trim procedure would be as follows: 1. Measure the output voltage of the reference VREF at TN OM (probably +25°C, preferably as close to the same temperature as used for trimming at wafer sort as conveniently possible) and program the I Q DAC to get VR F = VN OM the desired reference voltage. Then blow the fuses for this DAC. 2. Go to the hot temperature and select the IH DAC. Program it to get VREF = VN O M at this temperature. Then blow the fuses for this DAC. 3. Go to the cold temperature, select the Ic DAC and program it to get VREF = V NO M- Then blow the fuses for this DAC. Of course, one typically would also test the other specs of the reference at these three temperatures. Thus one not only gets a calibrated reference, but also one that's been tested at three temperatures. Also, while step 1 above is generally done first, either step 2 or step 3 may be done before the other, and no particular order in this regard is to be implied in this disclosure or the claims that follow. If further piece-wise linear compensation is needed or desired, one or more additional compensating current components may be generated based on other "nominal" temperatures. By way of example, much of the basic circuit of Figure 5 could be replicated two times, with the basic circuit being trimmed at wafer sort so that IPTAT = lo at 25°C, the first replication trimmed at wafer sort so that IPTAT = lo at 75°C and the second replication trimmed at wafer sort so that IPTAT = lo at -10°C. Only the IH component of the first replication and the Ic component of the second replication would be generated and used. This provides five distinct points at which the nominal output of the reference may be uniquely and independently adjusted: 1. At 25°C to set the temperature insensitive adjustment of the basic circuit 2. Then at 75°C and -10°C to set I H and I c respectively of the basic circuit 3. Then at still higher and lower temperatures, such as 125°C and -55°C to set I H and I c for the second and third replications of the basic circuit, respectively. Note also that in some instances, references are to be trimmed so as to always be within as narrow a ± range around the nominal reference output as possible, in which case the best compensation setting at each of the compensation setting temperatures may be something predictably slightly different than directly at the nominal reference output . In the previously described embodiments, temperature compensation was achieved by providing one or more temperature correction components which varied linearly with temperature above one or more nominal temperatures and were zero otherwise, and/or which varied linearly with temperature below one or more nominal temperatures and were otherwise zero. However, there may be other variations with temperature which will more accurately compensate for the temperature variation in the reference output. By way of specific example, one might consider a square law or quadratic compensation, given the output voltage temperature variation of the bandgap reference of Figures 1 and 3. Such a square law current variation with temperature may be provided by the circuit of Figure 7. In this Figure, IRE F would typically be a substantially constant current, and could be a current mirrored from the substantially temperature independent current lo of Figure 5. The current source Ii, on the other hand, would typically be a current having a known and desired temperature sensitivity. More particularly, in the present invention, Ii could be proportional to I H , or alternatively, to Ic- Additionally, two separate square law circuits could be used, one for hot (Ii = IH) and one for cold (Ii = Ic) . Assu e transistors Qi and Q 3 match, and transistors Q 2 and Q 4 match. Also of course, all transistors are at the same temperature, the circuit being realized in integrated circuit form. In this circuit, transistor Q 7 mirrors the current in transistor Q 3 to transistor Qg, with transistor QQ mirroring the same back to transistor Q 5 so that the current in transistor Q 3 does not go into the emitter of transistor Q 4 . Thus: Vi = V τ I — — + f x (T) = (VBE) Q1 IsNPN KT where V = and fι(T) = other temperature q dependent terms (see the full equation for VBE i the prior art section) V 2 = V τ In + In + f.(T) + f 2 (T) -SNPN also: LREF V 3 = V τ In + f 2 ( T ) = (VBE), 0- (Q 2 and Q 4 Is PNP matched) V 2 - V 3 = V τ ln-Ϊ 2 _ + f.(T) = (VBE) IsNPN Q3 (Qi and Q 3 matched) V 2 = V τ + f.(T) + f,(T) ) Therefore, using the two equations for V 2 : J Consequently if I is IH, then: Verr = V os + K Hsg * (T - T N0M ) 2 for T > T NOM and if Ii = Ic, then: Verr = V os + K Cs q * ( T N0M - T) 2 for T < T N0M where: V os = room temperature offset adjust κ H sq = adjustable temperature coefficient for T > T N OM Kc s q = adjustable temperature coefficient for T < T N OM Other temperature difference dependencies may be easily generated as desired. Finally, the temperature difference dependence above the nominal temperature may be purposely made to be different from that below the nominal temperature if desired to better match the temperature compensation needed. Referring again to Figure 1 and particularly Figure 3, it will be noted that for this device, the remaining temperature sensitivities are nonlinear with temperature, and can be approximated on each side of the nominal temperature TNOM (25°C in the exemplary embodiment) by a straight line tangent to the respective temperature sensitivity curve segment at T NOM plus an increasing deviation from the straight line as temperatures move away from T NO M, which deviation can be reasonably well approximated by a square law deviation. Further, the general shape of the deviation curves are quite well defined for the type of device illustrated, as will be the case for many different devices. Consequently, the use of a square law correction as well as the linear correction already described can further greatly reduce the residual temperature sensitivity. By way of specific example, consider Figure 8. Here, corrections to the output of the bandgap reference are shown being made for I 0 , I H , l IH 2 an d Ic 2 . The corrections for I H and Ic 2 are shown as always being positive corrections only, as the concave downward shape of the curve of Figures 1 and 3 will always require a positive square law component correction of the temperature sensitivity curve segments or Figures 2 and 4 from a tangent to the respective curve segments at TN O M- Further, the temperature sensitivity curve shape is sufficiently predictable that the square law correction may be made at wafer sort by trimming the same to provide a predetermined amount of square law correction for each temperature sensitivity curve segment. Then after packaging, the linear temperature compensation would be adjusted as described to take out the linear components of temperature sensitivity, and to the first order, take out the error between the predetermined amount of square law correction used and the actual amount of square law correction that would have been ideal for that specific integrated circuit. Since the square law DACs in this embodiment are to be trimmed at wafer sort, they can be of the general type illustrated in Figure 9. Here a series of p- channel devices Qg ' and Qχo through QN are shown, Qg ' being connected to the circuit of Figure 7 as shown for, and in place of, Qg of Figure 7. Devices Q ' and Qχo through Q N are each connected with their gates in common and their sources connected to VD D through a respective fuse link F comprising a thin film metal link. The devices Q 9 ' and Q 10 through Q are sized in a binary progression, so that selectively opening the fuse links by laser provides the desired adjustment of the respective square law current to provide +KH Sq *lH 2 - The circuits of Figures 7 and 9 would of course be replicated once to provide +Kc S q*Ic 2 by using I = I in the replication of Figure 7 to provide Ic 2 as the input to the circuit of Figure 9. There are various ways of providing the temperature compensation information to each DAC. One approach, which requires three pins, is to use an up/down counter to drive the binary sequence of compensation components in the DACs. A pin is then needed for the clock, a tri- state pin to select one of the three DACs, and a tri- state pin for down/up/blow. Using this approach, one need not know scaling factors, but can instead just count up or down until VOUT = VN O M and then blow the programming fuses for that DAC. As an alternate to the above, a shift register could be incorporated in the integrated circuit . By way of example, an 8 bit shift register together with a clock signal could be used to shift in an 8 bit code, 5 bits providing the five bit binary magnitude of the correction desired, one bit indicating the sign of the correction and two bits indicating the applicable correction - hot, cold or temperature insensitive, the fourth indicting no DAC at all. This too avoids a need to calibrate the scale factors of the corrections at wafer sort, as a first loading of the shift register can be made after packaging using an approximate scale factor for the correction, and upon measuring the real effect of the first correction attempt, the scale factor is in essence known, so that the second or third loading should be right on, after which the data contents of the shift register can be frozen. The foregoing is illustrated in Figures 10 and 11, Figure 10 showing shift register 30 and Figure 11 showing one DAC controlled thereby. As shown in Figure 10, shift register 30 receives the 8 bit code, outputting six bits thereof to programmable ROMs (PROMs), one for each of DAC 1, DAC 2 or DAC 3, depending on the decoding of the remaining 2 bits by decoder 32. The PROMs temporarily hold an output of the shift register coupled to them, but can permanently retain their contents upon a programming signal to blow the fuses therein (or set whatever other permanent programming device is used) . Figure 10 specifically illustrates lo, IH and Ic, though the circuit is of course equally useful with other temperature dependencies. As shown in Figure 11, a typical DAC is comprised of n-channel transistors Q30, Q31 and Q32, and p-channel transistors Q33 through Q38. The input current to the DAC, lo, I H or Ic, is mirrored by transistor Q30 to transistors Q31 and Q32, with the current in transistor Q31 being in turn mirrored to transistors Q33 through Q38. Transistors Q34 through Q38, however, are sized in a binary progression. Thus the current I in transistor Q31 is mirrored to transistor Q33 to set the gate-source voltage for all of transistors Q33 through Q38. Transistor Q34, being half the size of transistor Q33, therefore provides a current source for the current 1/2. Transistor Q35, being one-half the size of transistor Q34, provides a current source 1/4, etc. These current sources may be individually selected or disconnected from the DAC output current IOUT by control of individual switches S2 through S6. Thus, if all switches S2 through S6 are on, the DAC output current will be 31/32 I. If, on the other hand switch SI, controlled by the sign bit, is on, a current I is sinked from the DAC output current. Now, if all of switches S2 through S6 are off, a total current sinking equal to I is provided. At the other extreme, if all of switches S2 through S6 are on when switch SI is on, the net current sinking from the DAC output current will be I minus the total current sourcing through switches S2 through S6 of 31/32 I, giving a net sinking of 1/32. A zero DAC output current is provided by having all switches SI through S6 open. In some instances, extra pins may be required on the integrated circuit as packaged. In other instances, however, adequate numbers of pins may already exist, some or all of which may be adapted for dual function (as is well known in the prior art) , at least until the fuses are blown. By way of specific example, in a conventional digital to analog converter having an onboard voltage reference and pins to receive a parallel input signal, the parallel input pins, or at least some of them, could be adapted for dual function so that the digital correction word for each DAC may be input in parallel. Here too, scaling factors for the correction would not need to be known. It was previously mentioned that if further piece- wise linear compensation was desired, one or more additional compensating current components may be generated based on other "nominal" temperatures. This has the disadvantage that trimming at the other nominal temperatures at the time of wafer sort would be needed. If the temperature sensitivity of the device to be compensated has a relatively smooth curving characteristic, and preferably free of inflection points in the temperature range of interest, then adjustment of multiple compensation components can be made at multiple temperatures after packaging with trimming at wafer sort being done only at one temperature. For instance consider the compensation components of Figure 8, but in a system wherein all DACs can be adjusted after packaging. In this system one might use a longer shift register so that all DACs could be altered at any time prior to burn in of the desired correction code. Here one would trim at wafer sort at one temperature, namely so that I H and l c = 0 (= I H 2 = Ic 2 ) at T O M- Then after packaging, measurements could be taken at five temperatures across the temperature range, such as at T OM two different temperatures above T NOM and two different temperatures below T OM to determine the corrections needed at all five temperatures and to determine the scale factors of each correction component. Now a simple calculation can be made to determine the correction code to set all five correction components to compensate the reference output at all five temperatures, after which the code can be permanently set. The foregoing has advantages over the use of piecewise linear compensation components adjusted at five temperatures in that not only is trimming at wafer sort needed only at one temperature, but both first and second order corrections are made above and below TN O M- For many systems, a much higher degree of compensation might be achieved this way than a corresponding multiple piecewise linear correction system will provide. Also of course, while correction components of linear and square law characteristics have been described in detail herein, both above and below TN O M- other temperature dependencies can readily be generated and used, such as (T - TNOM) 0 - 5 - (T - OM) 1 - 5 - (T - T N OM) 3 . etc. as best compensates the characteristic temperature dependence of the respective temperature range segment of the reference being compensated. The present invention has been described herein with respect to preferred embodiments as applied to voltage references. Clearly, however, the application of the present invention is not exclusively limited to such references, but may be used for compensation of other references as desired. By way of example, obviously current references could be compensated by merely using the current components like those generated by the preferred embodiments described herein. Also, another exemplary type of reference which may be compensated by the methods and apparatus of the present invention are frequency references, as such references generally have or can be made to have a circuit parameter which can be affected by a compensating current or voltage as desired. For instance, Maxim Integrated Products, Inc. produces a frequency reference operative on a saw tooth type current waveform, wherein the frequency would be readily compensatable by injecting compensating current components into that waveform. Further, making the compensation permanent or semi-permanent may be done by other than blowing fuses or fuse links, such as by way of example, by using well known floating gate programmable cell technology, though whatever technology is used should preferably be fully compatible with the fabrication technology of the reference itself so as to avoid the necessity of extra fabrication steps to incorporate the present invention. Finally, while compensating current components, and/or voltage components which may be generated by passing the compensating current components through a resistor, have been described herein and are believed to be the easiest parameters to generate for temperature compensation purposes, other electrical parameters might also be considered, depending upon the specific application of the present invention. Thus, while the present invention has been disclosed and described with respect to certain preferred embodiments thereof, it will be understood by those skilled in the art that the present invention may be altered in various ways and realized in various other embodiments without departing from the spirit and scope thereof.

Claims: CLAIMS: I claim: 1. A method of temperature compensating the output of a reference circuit to better achieve the desired output of the reference circuit over temperature comprising the steps of: a) generating a first electrical parameter having a value which is substantially independent of temperature; b) generating a second electrical parameter having a value which has a substantially constant value below a first reference temperature and which has a value which varies with temperature in a predetermined manner at temperatures above the first reference temperature, the first and second electrical parameters being generated by an integrated circuit on the same integrated circuit substrate as at least part of the reference circuit; c) adjusting the output of the reference circuit when at the first reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the first electrical parameter to the reference circuit; and d) adjusting the output of the reference circuit when at a second temperature substantially above the first reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the second electrical parameter to the reference circuit. 2. A method of temperature compensating the output of a reference circuit to better achieve the desired output of the reference circuit over temperature comprising the steps of: a) generating a first electrical parameter having a value which is substantially independent of temperature; b) generating a second electrical parameter having a value which has a substantially constant value below a first reference temperature and which has a value which varies with temperature in a predetermined manner at temperatures above the first reference temperature; c) generating a third electrical parameter having a value which has a substantially constant value above a first reference temperature and which has a value which varies with temperature in a predetermined manner at temperatures below the first reference temperature, the first, second and third electrical parameters being generated by an integrated circuit on the same integrated circuit substrate as at least part of the reference circuit; d) adjusting the output of the reference circuit when at the first reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the first electrical parameter to the reference circuit; e) adjusting the output of the reference circuit when at a second temperature substantially above the first reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the second electrical parameter to the reference circuit; and f) adjusting the output of the reference circuit when at a third temperature substantially below the first reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the third electrical parameter to the reference circuit . 3. The method of claim 2 wherein the second electrical parameter is substantially zero at temperatures below the first reference temperature and the third electrical parameter is substantially zero at temperatures above the first reference temperature. 4. The method of claim 3 wherein the electrical parameters are currents. 5. The method of claim 3 wherein the electrical parameters are voltages. 6. A method of temperature compensating the output of a reference circuit realized at least in part in integrated circuit form to better achieve the desired output of the reference circuit over temperature comprising the steps of: providing temperature compensation circuitry: for generating a first electrical parameter having a value which is substantially independent of temperature; for generating a second electrical parameter having a value which has a substantially constant value below a first temperature and which has a value which varies with temperature in a predetermined manner at temperatures above the first temperature; for generating a third electrical parameter having a value which has a substantially constant value above a second temperature and which has a value which varies with temperature in a predetermined manner at temperatures below the second temperature; the compensation circuitry being on the same integrated circuit substrate as at least part of the reference circuit; adjusting at the time of wafer sort, the second and third electrical parameters so that the first and second temperatures defining the characteristics of the second and third electrical parameters are both a predetermined reference temperature; adjusting after packaging the integrated circuit: the output of the reference circuit when at the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the first electrical parameter to the reference circuit; adjusting the output of the reference circuit when at a third temperature substantially above the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the second electrical parameter to the reference circuit; and adjusting the output of the reference circuit when at a fourth temperature substantially below the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the third electrical parameter to the reference circuit. 7. The method of claim 6 wherein at wafer sort, the second and third electrical parameters are adjusted so that the second electrical parameter is substantially zero at temperatures below the reference temperature and the third electrical parameter is substantially zero at temperatures above the first reference temperature. 8. The method of claim 6 wherein the electrical parameters are currents. 9. The method of claim 6 wherein the electrical parameters are voltages. 10. A method of temperature compensating the output of a reference circuit realized at least in part in integrated circuit form to better achieve the desired output of the reference circuit over temperature comprising the steps of: providing temperature compensation circuitry: for generating a first electrical parameter having a value which is substantially independent of temperature; for generating a second electrical parameter having a value which has a substantially constant value below a first temperature and which has a value which varies with temperature in a first predetermined manner at temperatures above the first temperature; for generating a third electrical parameter having a value which has a substantially constant value above a second temperature and which has a value which varies with temperature in a second predetermined manner at temperatures below the second temperature; for generating a fourth electrical parameter having a value which has a substantially constant value below a third temperature and which has a value which varies with temperature in a third predetermined manner at temperatures above the third temperature; for generating a fifth electrical parameter having a value which has a substantially constant value above a fourth temperature and which has a value which varies with temperature in a fourth predetermined manner at temperatures below the fourth temperature; the compensation circuitry being on the same integrated circuit substrate as at least part of the reference circuit; adjusting at the time of wafer sort, the second, third, fourth and fifth electrical parameters so that the first, second, third and fourth temperatures defining the characteristics of the second, third, fourth and fifth electrical parameters are all a predetermined reference temperature, and applying a predetermined amount of the fourth and fifth electrical parameters to the output of the reference circuit; adjusting after packaging the integrated circuit: the output of the reference circuit when at the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the first electrical parameter to the reference circuit; adjusting the output of the reference circuit when at a third temperature substantially above the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the second electrical parameter to the reference circuit; and adjusting the output of the reference circuit when at a fourth temperature substantially below the reference temperature to obtain a desired output of the reference circuit at that temperature by applying a weighted portion of the third electrical parameter to the reference circuit . 11. The method of claim 10 wherein at wafer sort, the second, third, fourth and fifth electrical parameters are adjusted so that the second and fourth electrical parameters are substantially zero at temperatures below the reference temperature and the third and fifth electrical parameters are substantially zero at temperatures above the first reference temperature. 12. The method of claim 10 wherein the fourth electrical parameter is generated from the second electrical parameter and the fifth electrical parameter is generated from the third electrical parameter. 13. The method of claim 10 wherein the electrical parameters are currents. 14. The method of claim 10 wherein the electrical parameters are voltages.

Inventors: SCHAFFER GREGORY L, SCHAFFER, GREGORY, L.
Applicants: MAXIM INTEGRATED PRODUCTS, MAXIM INTEGRATED PRODUCTS, INC.
Application year: 1997
Main classification: G05F3
IPC codes: G05F3