TECHNICAL FIELD
The present invention relates to a circuit for providing a voltage, and relates particularly, though not solely, to a bandgap reference voltage circuit.
BACKGROUND
It is useful in the field of electronic circuits to provide a constant and stable reference voltage. For example reference voltages of around 1.25V are common as this is close to the theoretical bandgap of silicon at 0 K.
An example prior art system that provides a reference voltage is a “bandgap reference voltage circuit”. Various methods have been proposed including those by Widlar, R., “New Developments in IC Voltage Regulators,” IEEE Journal of Solid-State Circuits, Vol. SC-6, pp. 2-7, February 1971; K. Kuijk, “A Precision Reference Voltage Source,” IEEE Journal of Solid-State Circuits, Vol. SC-8, pp. 222-226, June 1973; and H. Banba, et. al., “A CMOS Bandgap Reference Circuit with sub-1-V Operation,” IEEE Journal of Solid-State Circuits, Vol. 34, pp. 670-674, May 1999.
BRIEF DESCRIPTION OF THE DRAWINGS
Exemplary embodiments will now be described for the sake of example only with reference to the drawings, in which:
FIG. 1 shows a circuit diagram of a bandgap circuit with a trimming circuit according to an example embodiment;
FIG. 2 shows a circuit diagram of a bandgap circuit with a trimming circuit according to a further example embodiment;
FIG. 3 shows a circuit diagram of a bandgap circuit with a trimming circuit according to a still further example embodiment;
FIG. 4 shows a flow diagram for a method of trimming R4 in FIG. 1 or FIG. 2;
FIG. 5 shows a flow diagram for a method of trimming R4 in FIG. 3; and
FIG. 6 shows a flow diagram for a method of trimming R3 in FIG. 3.
DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS
Referring to FIG. 1 a bandgap circuit 100 is shown according to an exemplary embodiment. An operational amplifier OPAMP 102 has a positive input terminal V+ a negative input terminal V and an OPAMP output Vout. A first resistor R1 is connected to the positive input terminal V+. A second resistor R2 is connected to the negative input terminal V−. A third resistor R3 is connected between the negative input terminal V and the first resistor R1. A first PNP bipolar transistor Q1 has the emitter connected to the positive input terminal V+, the collector and the base connected to ground, and emitter current I1. A second PNP bipolar transistor Q2 has the emitter connected to the second resistor R2, the collector and the base connected to ground, and emitter current I2. The OPAMP 102 operates to equalize the voltage at its inputs V+−V−˜0V, as shown in equation 1:
I
1
*R
1
=I
2
*R
3 (1)
I1 and I2 are the currents through the emitter of each bipolar transistor. ΔVEB is the difference between VEBQ1 and VEBQ2, and can be calculated according to equation (2):
Therefore, the temperature stability of the bandgap circuit output voltage Vref without g (i.e R4=0Ω) may be analyzed using equation (3):
In Equation (3), Vt is the thermal voltage (eg:˜26 mV@ 25° C.) and IS is the saturation current coefficient of Q1 and Q2. The bandgap circuit may have an operating configuration, for example equal bias currents (I1=I2 R1=R3) and bipolar device ratio scaling (IS2/IS1=N) or bias current scaling (I1=N*I2, R3/R1=N, IS1=IS2). In those configurations the circuit operation is characterized by Equation (4):
V
ref
=V
EBQ1+(R3/R2)*Vt*Ln(N) (4)
In Equation (4), VBEQ1 (“CTAT component”) is complementary to absolute temperature (CTAT). As such, the voltage reduces with increasing temperature and has approximate proportionally within small operating temperature ranges. The right hand term in Equation (4) (R3/R2*Vt*Ln(N)) (“PTAT component”), the Vt is proportional to absolute temperature (PTAT) so that the voltage increases with increasing temperature and has approximate proportionally within small operating temperature ranges. Thus, if the ratios between the resistor are appropriately designed, the CTAT component and the PTAT component will cancel each other out over a given temperature range, to achieve high temperature stability of Vref eg: zero temperature coefficient.
In practice the precision or accuracy of bandgap circuits may be limited by manufacturing variations eg: variations in VBE, and bipolar and resistor matching.
FIG. 1 shows a trimming circuit 104 connected between the output of the OPAMP Vout and the common point of R1 and R3. In operation the trimming circuit 104 may provide a predetermined trimming resistance that compensates for the voltage magnitude and/or the temperature coefficient.
The trimming circuit 104 comprises a series of trim resistors R4a-R4d connected to the common point between R1 and R3. A series of switch pairs S1-S5 have the first set of switches S1a-S5a connected between the output of the OPAMP Vout and the trim resistors, and the second set of switches S1b-S5b connected between the trim resistors and the output terminal Vref.
The trimming of R4 causes an adjustment of the positive temperature coefficient component according to Equation (5):
In Equation (5), R4 is the value of the resistance between the selected connection point/closed switch and the common point between R1 and R3.
One of the first set of switches S1a-S5a will carry the current that flows through R4. These switches are termed current force switches. The current force switches S1a-S5a do not affect the output voltage since the switches are not in the sense path of the Vref output terminal. By connecting the output terminal Vref to a high impedance load, any parasitic voltage drop across the second set of switches S1b-S1b will be negligible. The second sets of switches are termed the voltage sense switches. The circuit in FIG. 1 is configured so that the output voltage Vref is independent of the resistance and/or the voltage drop across any of the current force and voltage sense switches. The circuit in FIG. 1 is also configured so that the bipolar bias currents I1 and I2 do not become unmatched by trimming R4. In order to ensure correct performance over the operating range of temperatures, R2 is fixed and R1 and R3 are tracking. The voltage supply to the OPAMP, such as OPAMP 102 in FIG. 1, should provide enough headroom for the voltage drop across the current force switches.
Referring to FIG. 2, a bandgap circuit 200 is shown according to a further exemplary embodiment. The bandgap circuit 200 operates similarly to the bandgap circuit 100 shown in FIG. 1. FIG. 2 shows a trimming circuit 204 connected between the output of the OPAMP Vout and the common point of R1 and R3. In operation the trimming circuit 204 may provide a predetermined trimming resistance R4 that compensates for the voltage magnitude and/or the temperature coefficient.
The trimming circuit 204 comprises a series of trim resistors R4a-R4d connected between the common point between R1 and R3 and the output terminal Vref. A series of switches S1-S5 are connected between the output of the OPAMP Vout and the trim resistors. By connecting the output terminal Vref to a high impedance load, any parasitic voltage drop across the non current-carrying R4 resistors, between the output terminal Vref and the selected connection point/closed switch, will be negligible. The circuit in FIG. 2 is configured so that the output voltage Vref is independent of the resistance and/or the voltage drop across any of the switches.
Referring to FIG. 3 a bandgap circuit 300 is shown according to a still further exemplary embodiment. An operational amplifier OPAMP 302 has a positive input terminal V+ a negative input terminal V− and an OPAMP output Vout. A first PMOS transistor M1 has its drain terminal connected to the negative input terminal V−, its source terminal connected to a supply VCC, its gate terminal connected to the OPAMP output Vout, and drain current I1. A first resistance R1 is connected to the negative input terminal V−, with resistor current I1b. A first PNP bipolar transistor Q1 has its emitter terminal connected to the negative input terminal V−, its collector terminal and its base terminal connected to ground, and emitter current I1a. A second PMOS transistor M2 has its source terminal connected to the supply VCC, its gate terminal to connect to the OPAMP output Vout, and drain current I2. A second resistance R2 is connected to the drain terminal of the second PMOS transistor M2 with resistor current I2b. A second PNP bipolar transistor Q2 has its emitter terminal connected to the second end of the third plurality of trimming resistors, its collector terminal and its base terminal connected to ground, and an emitter current I2a. A third PMOS transistor M3 has its source terminal connected to the supply VCC, its gate terminal connected to the OPAMP output Vout, and a drain current I3.
FIG. 3 shows a first trimming circuit 304 connected between the second PMOS transistor M2 and the OPAMP 302. In operation the trimming circuit 304 may provide a predetermined trimming resistance R3 that compensates for the temperature coefficient.
The first trimming circuit 304 comprises a third plurality of trimming resistors R3 that are connected at a first end to the drain terminal of the second PMOS transistor M2. A first plurality of trimming switches S1-S4 is connected between the positive input terminal V+ and a selected connection point between two of the third plurality of trimming resistors R3.
FIG. 3 shows a second trimming circuit 306 connected between the third PMOS transistor M3 and ground. In operation the trimming circuit 306 may provide a predetermined trimming resistance R4 that compensates for the output voltage magnitude.
The second trimming circuit 306 comprises a fourth plurality of trimming resistors R4 that are connected at a second end to ground. A second plurality of trimming switches S5-S8 are connected between the drain terminal of the third PMOS transistor M3 and a selected connection point between two of the fourth plurality of trimming resistors R4.
An output terminal Vref is connected to the first end of the fourth plurality of trimming resistors R4. The trimming of R3 and/or R4 causes an adjustment of the output voltage Vref according to Equations (6) to (9):
In Equation (8) the bipolar transistors Q1 and Q2 have PTAT bias currents. In Equations (6) to (9) R3A is the value of the resistance between selected connected point/closed switch S1-S4 and the second PNP bipolar transistor Q2, and R3B is the value of the resistance between selected connected point/closed switch S1-S4 and the second PMOS transistor M2. In Equation (6) VR2 is the voltage across the second resistor R2. I1-I3 are the currents through each of the PMOS transistors. I1a and I2a are the currents through the bipolar transistors, and I1b and I2b are the currents through R1 and R2 respectively.
In Equation (9) Vt is the thermal voltage (26 mV@ 25 C), IS is the saturation current coefficient of the bipolar devices Q1 and Q2,
The PMOS transistors M1-M3 may have long channel lengths or an output impedance boost to minimize current differences I1-I3 due to different drain voltages and early voltage modulation effect.
According to Equation (9), switches S1-S4 trim the ratios R1/R3A and R3B/R1 to compensate for the temperature coefficient. By connecting switches S1-S4 to high impedance OPAMP input there would be negligible parasitic voltage drop across the switches S1-S4.
Switches S5-S8 trim the ratio R4/R1 to compensate the magnitude of the output voltage Vref. Switches S5-S8 do not affect the output voltage since the switches are not in the sense path of the Vref output terminal. The voltage drop across the switches S5-S8 will not affect the output voltage as long as there is enough supply voltage headroom.
By connecting the output terminal Vref to a high impedance load, any parasitic voltage drop across the portions of R4 between the output terminal Vref and the closed switch S5-S8 will be negligible. The circuit in FIG. 3 is configured so that the output voltage Vref is independent of the resistance and/or the voltage drop across the switches.
Any other errors in the circuit may be compensated for as is known in the art for example OPAMP offset may be handled by chopping.
A possible application for one or more embodiments is in a CMOS circuit. However it will be readily appreciated by the skilled reader that alternative applications are possible. Equally the skilled reader will appreciate the number of resistor sections and/or switches in each trim circuit can be tailored for the application.
The above example embodiments may be manufactured using fabrication techniques appropriate to the application. The trimming process in each case may occur at manufacturing for each circuit. Once the trimming has been completed the desired switch states may be stored in a Read Only Memory (ROM) or may be permanently set using fuses.
Referring to FIG. 4 an example method 400 of trimming R4 is shown, which may be employed during manufacturing of the example embodiment shown in FIG. 1 or FIG. 2. The initially closed switch is near the middle of the trim range eg: S3a (402). The output voltage Vref is measured (404). Based on the deviation ΔVref of the measured voltage Vref from the desired voltage Vdes (ΔVref=Vref−Vdes) (406), a look up table (408, 412) is used to select the correct trim switch to close (410, 414). The output voltage is again measured (416) and if it is within a threshold range Vdes±Vthres around the desired voltage (418), then the trimming process stops (420), otherwise the process is repeated.
Referring to FIG. 5 an example method 500 of trimming R4 is shown, which may be employed during manufacturing of the example embodiment shown in FIG. 3. The initially closed switch is near the middle of the trim range eg: S7 (502). The output voltage Vref is measured (504). Based on the deviation ΔVref of the measured voltage Vref from the desired voltage Vdes (ΔVref=Vref−Vdes) (506), a look up table (512) is used to select the correct trim switch to close (510, 514). The output voltage is again measured (516) and if it is within a threshold range Vdes±Vthres around the desired voltage (518), then the trimming process stops (520), otherwise the process is repeated.
Referring to FIG. 6 an example method 600 of trimming R3 is shown, which may be employed during manufacturing of the example embodiment shown in FIG. 3. The initially closed switch is near the middle of the trim range eg: S3 (602). The output voltage Vref is measured (604). Based on the deviation ΔVref of the measured voltage Vref from the desired voltage Vdes (ΔVref=Vref−Vdes) (606), a look up table (612) is used to select the correct trim switch to close (610, 614). The output voltage is again measured (616) and if it is within a threshold range Vdes±Vthres around the desired voltage (618), then the trimming process stops (620), otherwise the process is repeated.
Many variations of the above example embodiments, are possible within the scope of the following claims, as will be clear to a skilled reader.