This disclosure generally relates to a bandgap reference circuit, and more particularly to predicting a bandgap reference output voltage based on a model to trim a bandgap reference circuit.
A conventional bandgap reference circuit outputs a voltage with a relatively low temperature sensitivity or temperature dependency based on a bandgap principle. The bandgap principle involves adding voltages from a circuit section of the bandgap reference circuit having a positive temperature coefficient and a circuit section of the bandgap reference circuit having a negative temperature coefficient such that the output voltage of the bandgap reference circuit has a relatively low or negligible temperature coefficient. In a particular bandgap reference circuit, a PTAT voltage (positive to absolute temperature) based on a positive temperature coefficient is added to a so-called NTAT voltage (negative to absolute temperature) based on a negative temperature coefficient. In an example, the PTAT voltage is obtained as a voltage difference between two bipolar transistors which are operated with different current densities, whereas the NTAT voltage is obtained as a base-emitter voltage of a bipolar transistor.
The bandgap reference circuit serves as a voltage reference for other electronic circuits such as voltage regulators. The electronic circuits rely on the bandgap reference circuit to provide a constant target voltage over temperature, but the output voltage of the bandgap reference circuit might vary in practice. To reduce this variation, the bandgap reference circuit is trimmed. A trimming process could include adjusting resistance of resistors or current of current sources in the bandgap reference circuit, for example, during a production test of the bandgap reference circuit. The production test involves trimming the bandgap reference circuit at a single temperature to cause the bandgap reference circuit to output the target voltage at the single temperature.
The drawings are for the purpose of illustrating example embodiments, but it is understood that the embodiments are not limited to the arrangements and instrumentality shown in the drawings.
A bandgap reference circuit should output a voltage equal to a target voltage over a temperature range such as −40 degrees Celsius to 150 degrees Celsius. Further, the bandgap reference circuit is trimmed at a single temperature such as 125 or 150 degrees Celsius during a production test. The trimming during the production test reduces an error between the output voltage and the target voltage to substantially zero at the single temperature (where substantially zero depends on a resolution of the output voltage), but in practice the error might not be reduced by such an amount at other temperatures due to a curvature of the bandgap reference output voltage as a function of temperature.
Embodiments disclosed herein are directed to predicting a bandgap reference output voltage based on a model to trim a bandgap reference circuit. In an example, the prediction is based on modeling a curvature of the bandgap reference output voltage as a function of temperature as a second order or higher order model and trimming the bandgap reference circuit in a production test and in actual use. The production test is performed during production of a wafer having the bandgap reference circuit while the actual use is operation of the bandgap reference circuit in a field where temperature of the bandgap reference circuit might vary. During the production test, model parameters are determined such as an error between a bandgap reference output voltage before trimming and the target reference voltage at a production test temperature to determine coefficients of the model. Trim parameters of the bandgap reference circuit are then determined for the bandgap reference circuit operating at a production test temperature so that the bandgap reference circuit outputs the target voltage. The trim parameters are stored in a memory such as a flash memory or one-time programmable memory (OTP). During the actual use, the bandgap reference circuit is initially trimmed with the stored trim parameters. Further, a temperature of the bandgap reference circuit is measured and based on the model parameters and the measured temperature, the bandgap reference circuit uses the model to predict a bandgap reference output voltage of the bandgap reference circuit arranged with the stored trim parameters. The trim parameters determined during the production test procedure are adjusted based on the predicted bandgap reference output voltage to reduce an error between a bandgap reference output voltage of the bandgap reference circuit configured with the adjusted trim parameters and the target voltage. This process is repeated as the temperature of the bandgap reference circuit changes. For example, the process may be repeated if the temperature increases or decreases by a predetermined amount. In another example, the process is repeated periodically such as every three seconds. The bandgap reference circuit uses the model to reduce the error from an original+/−1.5% error to +/−0.45% error based on simulations using the model.
In an example, the bandgap reference circuit 108 may output a bandgap reference output voltage with a relatively low temperature sensitivity or temperature dependency based on a bandgap principle. The bandgap principle involves adding voltages from a circuit section 110 having a positive temperature coefficient and a circuit section 112 having a negative temperature coefficient. In a particular bandgap reference circuit, a PTAT voltage (positive to absolute temperature) based on a positive temperature coefficient is added to a NTAT voltage (negative to absolute temperature) based on a negative temperature coefficient in such a way that the resulting output voltage by the bandgap reference circuit 108 has the relatively low or negligible temperature coefficient.
The bandgap reference output voltage by the bandgap reference circuit 108 should be a constant target voltage despite variations in temperature, but the output voltage of the bandgap reference circuit 108 could actually vary from the target voltage with temperature. The difference is an error between the output voltage and the target voltage which results from process variations in the bandgap reference circuit 108. The production test may have access to a known reference voltage so as to measure the bandgap reference output voltage. To reduce this error, the bandgap reference circuit 108 may be trimmed in a trimming process by adjusting one or more trim parameters of the bandgap reference circuit 108. For example, the bandgap reference circuit 108 may have a trim circuit 114 such as a resistor ladder with programmable resistance for controlling current or voltages in the bandgap reference circuit 108. In an example, a digital code may such as a four bit code may be applied to a control circuit of the resistor ladder to set the resistance of the resistor ladder which causes the bandgap reference circuit to output a voltage based on the digital code. Further, the resistance may be changed in discrete steps where each step causes the bandgap reference output voltage to change by a predetermined voltage. Based on the change, the error between the bandgap reference output voltage and the target voltage and the bandgap reference circuit 108 may be reduced. For example, changing the code by one step from 0001 to 0010 which represents a change in resistance of 7.2 kohm may cause the output voltage to change by 0.004 volts and error to be reduced. The digital code may be an example of a trim parameter of the bandgap reference circuit 108 which is adjusted. The trim parameter may take other forms as well including adjustment of current of a current source. In an example, the trim setting may be stored in the memory 104.
An error between a bandgap reference output voltage and a target voltage may be substantially zero at the temperature where the bandgap reference circuit 108 is trimmed. But the error may increase with other temperatures of the bandgap reference such as from −40 degrees Celsius to 150 degrees Celsius associated with automotive applications for a same trim setting resulting in the error varying with temperature.
Embodiments disclosed herein are directed to predicting a bandgap reference output voltage based on the model 116 to trim the bandgap reference circuit 108. During production of the bandgap reference circuit 108 such as wafer test, the controller 106 may determine an error between a target voltage and a bandgap reference output voltage by the bandgap reference circuit 108. The error may be measured at a production test temperature such as 125 degrees or 150 degrees Celsius. The memory 104 may store the one or more model parameters such as the error in the memory 104 or coefficients of the model determined based on the error. Trim parameters of the bandgap reference circuit 108 may then be determined for the bandgap reference circuit 108 operating at a production test temperature so that the bandgap reference circuit 108 outputs the target voltage at the production test temperature. The trim parameters may be also stored in the memory 104.
During actual use of the bandgap reference circuit 108 in the field, the bandgap reference circuit 108 may be initially trimmed with the stored trim parameters. Further, the controller 106 may receive the model parameters stored in the memory 104. The controller 106 may use the model parameters stored in the memory 104 to define the model 116 which predicts a bandgap reference output voltage as a function of temperature. The model 116 may be used to predict the bandgap reference output voltage as a function of the temperature rather than a direct measurement because there is no known reference voltage available to measure the bandgap reference output voltage. Further, the temperature sensor 102 may measure a temperature of the bandgap reference circuit 108 such as at a PN junction of the bandgap reference circuit 108. The controller 106 may receive the temperature of the bandgap reference from the temperature sensor 102 and use the model 116 to predict a bandgap reference output voltage of the bandgap reference circuit 108 at the temperature. The trim parameters determined during the production test procedure are adjusted based on the predicted bandgap reference output voltage to reduce the error between a bandgap reference output voltage and the target voltage when the bandgap reference circuit 108 is trimmed with the adjusted trim parameters.
The plots 200, 202 show that a bandgap reference output voltage changes with temperature from a target voltage and has a voltage spread as a function of temperature across samples of the bandgap reference circuits. In this example, the target voltage is 900 mV. Plot 200 illustrates the change from the target voltage as function of temperature and the voltage spread before the bandgap reference circuit is trimmed at a production temperature such as 150 degrees Celsius. Plot 202 illustrates the change from the target voltage as function of temperature and voltage spread after the bandgap reference circuit is trimmed at a production temperature such as 150 degrees Celsius. Trimming of the bandgap reference circuit reduces error between a bandgap reference voltage and the target voltage to approximately +/−1.5% from the target voltage of 900 mV. The trimming also results in a worst case voltage spread at −40 degrees Celsius.
Trimming of the bandgap reference circuit based on the model 116 reduces further error between a bandgap reference voltage and the target voltage as a function of temperature. In an example, the model 116 may be a mathematical model which describes the operation of the bandgap reference circuit 108 in terms of a second order or higher order mathematical relationship between a bandgap reference output voltage and the temperature based on a predictor function. The model 116 may be used to predict the bandgap reference output voltage based on a temperature of the bandgap reference circuit 108.
The model 116 may have various model parameters which are unknown but estimated from the simulation of plot 200. For example, the model 116 may be represented by a polynomial model such as a third order non-linear model:
Vout−Vref*(K0(dV)+K1(dV)*Tnorm+K2(dV)*Tnorm2+K2(dV)*Tnorm3)
and model parameters determined by a polynomial regression which represents a mean curvature of the plot 200. The following model parameters may be determined:
The model 116 of curvature of the bandgap reference output voltage by the bandgap reference circuit as a function of temperature may take many forms including a non linear function as described above. In some examples, the model 116 may take the form of a neural network with one or more layers. One or more layers in the neural network may represent non-linear function which in combination with other layers produce results such as a prediction of bandgap reference output voltage by the bandgap reference circuit 108. Model parameters of the neural network may be defined during a training process of the neural network using data from the simulations or actual data collected during operation of the bandgap reference circuit 108.
The model 116 is able to predict the bandgap reference output voltage as a function of temperature. The model 116 may be used to reduce the error between a bandgap reference output voltage and a target voltage over temperature during actual use of the bandgap reference circuit 108 outside of a manufacturing context, e.g., in the field.
In some examples, the bandgap reference circuit 108 may be trimmed during a calibration test instead of during the production test of the bandgap reference circuit 108. The trimming process may still require use of a known reference voltage so as to measure the bandgap reference output voltage and which may not be available during an actual use of the bandgap reference circuit 108.
In one embodiment, a method is disclosed. The method comprises: determining a first error between a bandgap reference output voltage of a bandgap reference circuit at a first temperature and a target voltage; measuring a second temperature of the bandgap reference circuit; predicting a bandgap reference output voltage of the bandgap reference circuit at the second temperature and based on the first error; determining a second error between the predicted bandgap reference output voltage and the target voltage; determining a trim parameter of the bandgap reference circuit based on the second error; and setting the bandgap reference circuit with the trim parameter, wherein a third error between a bandgap reference output voltage of the bandgap reference with the trim parameter is less than the second error. In an embodiment, the bandgap reference circuit is at the first temperature during a test where a known reference voltage is available to trim the bandgap reference circuit and at the second temperature during actual use of the bandgap reference circuit in a field where the known reference voltage is not available to trim the bandgap reference circuit. In an embodiment, the method further comprises trimming the bandgap reference circuit at the first temperature and wherein determining the trim parameter of the bandgap reference circuit based on the predicted bandgap reference output comprises adjusting a trim parameter of the test. In an embodiment, predicting the bandgap reference output voltage comprises inputting the second temperature into a model which outputs the predicted bandgap reference output voltage. In an embodiment, the model comprises a plurality of coefficients as a function of the first error. In an embodiment, the model comprises a nonlinear combination of parameters, where each parameters is a function of the first error and a power of the second temperature. In an embodiment, determining the trim parameter of the bandgap reference circuit comprises determining a number of discrete steps to adjust the trim parameter to cause the third error to be less than a predetermined voltage change associated with a step of the trim parameter. In an embodiment, the first error is measured before trimming the bandgap reference circuit. In an embodiment, the first error is stored in a flash memory or a one-time programmable memory. In an embodiment, the steps of predicting the bandgap reference output voltage of the bandgap reference circuit; determining the second error between the predicted bandgap reference output voltage and the target voltage; determining the trim parameter of the bandgap reference circuit based on the second error; and setting the bandgap reference are steps performed periodically. In an embodiment, the steps of predicting the bandgap reference output voltage of the bandgap reference circuit; determining the second error between the predicted bandgap reference output voltage and the target voltage; determining the trim parameter of the bandgap reference circuit based on the second error; and setting the bandgap reference are steps performed after detecting a change in power consumption or temperature of the bandgap reference circuit.
In another embodiment, a system is disclosed. The system comprises: first circuitry arranged to determine a first error between a bandgap reference output voltage of a bandgap reference circuit at a first temperature and a target voltage; second circuitry arranged to measure a second temperature of the bandgap reference circuit; third circuitry arranged to predict a bandgap reference output voltage of the bandgap reference circuit at the second temperature and based on the first error; fourth circuitry arranged to determine a second error between the predicted bandgap reference output voltage and the target voltage; fifth circuitry arranged to determine a trim parameter of the bandgap reference circuit based on the second error; and sixth circuitry arranged to set the bandgap reference circuit with the trim parameter, wherein a third error between a bandgap reference output voltage of the bandgap reference with the trim parameter is less than the second error. In an embodiment, the bandgap reference circuit is at the first temperature during a test where a known reference voltage is available to trim the bandgap reference circuit and at the second temperature during actual use of the bandgap reference circuit in a field where the known reference voltage is not available to trim the bandgap reference circuit. In an embodiment, the system further comprises seventh circuitry arranged to trim the bandgap reference circuit at the first temperature and wherein the fifth circuitry arranged to determine the trim parameter of the bandgap reference circuit based on the predicted bandgap reference output comprises adjusting a trim parameter of the test. In an embodiment, the third circuitry arranged to predict the bandgap reference output voltage comprises inputting the second temperature into a model which outputs the predicted bandgap reference output voltage. In an embodiment, the model comprises a plurality of coefficients as a function of the first error. In an embodiment, the model comprises a nonlinear combination of parameters, wherein each parameter is a function of the first error and a power of the second temperature. In an embodiment, the fifth circuitry arranged to determine the trim parameter of the bandgap reference circuit comprises determining a number of discrete steps to adjust the trim parameter to cause the third error to be less than a predetermined voltage change associated with a step of the trim parameter. In an embodiment, the first error is measured before trimming the bandgap reference circuit. In an embodiment, the first error is stored in a flash memory or a one-time programmable memory.
A few implementations have been described in detail above, and various modifications are possible. The disclosed subject matter, including the functional operations described in this specification, can be implemented in electronic circuitry, computer hardware, firmware, software, or in combinations of them, such as the structural means disclosed in this specification and structural equivalents thereof: including potentially a program operable to cause one or more data processing apparatus such as a processor to perform the operations described (such as program code encoded in a non-transitory computer-readable medium, which can be a memory device, a storage device, a machine-readable storage substrate, or other physical, machine readable medium, or a combination of one or more of them).
While this specification contains many specifics, these should not be construed as limitations on the scope of what may be claimed, but rather as descriptions of features that may be specific to particular implementations. Certain features that are described in this specification in the context of separate implementations can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous. Moreover, the separation of various system components in the implementations described above should not be understood as requiring such separation in all implementations.
Use of the phrase “at least one of” preceding a list with the conjunction “and” should not be treated as an exclusive list and should not be construed as a list of categories with one item from each category, unless specifically stated otherwise. A clause that recites “at least one of A, B, and C” can be infringed with only one of the listed items, multiple of the listed items, and one or more of the items in the list and another item not listed.
Other implementations fall within the scope of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
5440305 | Signore et al. | Aug 1995 | A |
5629612 | Schaffer | May 1997 | A |
6183131 | Holloway et al. | Feb 2001 | B1 |
8988137 | Furusawa et al. | Mar 2015 | B2 |
10013013 | Wortel | Jul 2018 | B1 |
20060061412 | Molina et al. | Mar 2006 | A1 |
20080106236 | Gaggl | May 2008 | A1 |
20180101190 | Lee | Apr 2018 | A1 |
20180292271 | Ma | Oct 2018 | A1 |
20190181103 | Shieh | Jun 2019 | A1 |
20200183440 | Rasmus | Jun 2020 | A1 |
20220299378 | Yang | Sep 2022 | A1 |
Number | Date | Country | |
---|---|---|---|
20230139554 A1 | May 2023 | US |