Abstract:
A bandgap reference circuit 30 includes a current generation circuit 32, a voltage generation circuit 34 connected to current generation circuit 32, and a compensation circuit connected to current generation circuit 32 and voltage generation circuit 34. Current generation circuit 32 sources a current to voltage generation circuit 34 which translates the current into a voltage. Compensation circuit 36 monitors current generation circuit 32 and provides a supplemental current to voltage generation circuit 34. Voltage generation circuit 34 receives the supplemental current and translates it into a supplemental voltage. The summation of the voltage produced by the current received by current generation circuit 32 and the supplemental voltage produced by the supplemental current received by compensation circuit 36 produces a stable reference voltage.

Description:
FIELD OF THE INVENTION 
     This invention relates to electronic circuits and more particularly relates to voltage and current reference circuits. 
     BACKGROUND OF THE INVENTION 
     Voltage and current reference circuits find many applications in electronic circuit applications. The bandgap reference circuit is a common circuit solution for supplying a voltage or current reference. FIG. 1 is a prior art bandgap circuit 10 and operates as described in &#34;New Developments in IC Voltage Regulators&#34;, Widlar, Robert J., IEEE Journal of Solid State Circuits, Vol. sc-6, No. 1, Feb. 1971. M1 and M2 act as a standard MOS current mirror providing current to Q1 and Q2 which are configured as a bipolar current mirror. Q1 and Q2 are sized differently; therefore, although they conduct the same current, they have different current densities. Therefore, there will be a difference in their V bc  voltages and the difference will be reflected in the current through R1. V out  is a voltage reference that is a function of the current through R2 and the base-emitter voltage V be  of Q3. Since the current through R2 is mirrored from M2 it is seen that the current through M3 is a function of ΔV be  between Q1 and Q2 and R1. Therefore, V out  is a function of the ΔV bc  between Q1 and Q2, the ratio in resistor values R1 and R2, and V be  of Q3 as seen below: 
     
         V.sub.out =I(M3)*R2+V.sub.be (Q3) 
    
     and, 
     
         I(M3)=I(M2)=I.sub.c (Q2)≈I.sub.c (Q2)=ΔV.sub.be /R1 
    
     where 
     
         ΔV.sub.be =V.sub.be (Q2)-V.sub.be (Q1). 
    
     Substituting ΔV be  /R1 for I(M3) you get 
     
         V.sub.out =(R2R1)*ΔV.sub.be +V.sub.be (Q3). 
    
     If the ratios of R1 and R2 are set appropriately V out  will have zero temperature coefficient. This ratio is determined by taking the equation for V out  that incorporates all temperature dependencies, differentiating with respect to temperature, and setting the equation equal to zero. This is well known by those skilled in the art of bandgap reference circuits. The above explanation of prior art circuit 10 assumes that the gain (or h FE ) of Q1 and Q2 are sufficiently high such that I c  (Q2) is approximately I c  (Q2). However, in many cases, this is not a valid assumption. In integrated circuits, h FE  mary vary by an order of magnitude for a given process. Additionally, h FE  is a strong function of temperature and may increase by 4×from -55° C. to 125° C. Taking into account low h FE , the following equations represent circuit 10: 
     
         V.sub.out =I(M3)*R2+V.sub.be (Q3) 
    
     and, 
     
         I(M3)=I(M2)=I.sub.c (Q2) 
    
     and, 
     
         I.sub.c (Q2)=I.sub.c (Q2)-I.sub.b (Q2) 
    
     therefore, 
     
         I.sub.c (Q2)=ΔV.sub.be /R1-I.sub.b (Q2) 
    
     and, 
     
         V.sub.out =(R2/R1)*ΔV.sub.be +V.sub.be (Q3)-R2*I.sub.b (Q2). 
    
     Therefore, it can be seen that an error term exists and further, this error term is a function of temperature since I b  (Q2) will vary as h FE  varies over temperature. This error term deteriorates the performance of circuit 10 as a voltage reference. 
     FIG. 2 is a prior art bandgap circuit 20 that incorporates an NMOS transistor M4 as a &#34;beta-helper&#34; and is well known by those skilled in the art. M4 decreases the dependance upon beta (h FE ) to achieve accurate &#34;mirroring&#34; of current between Q1 and Q2 by minimizing the current needed from the collector terminal of Q1 to supply base drive to Q1 and Q2. Although M4 is effective in that regard it does not eliminate the error term in V out  associated with a low h Fe  in Q2. 
     The same error phenomena is also present in bandgap current reference circuits. That is, when bipolar transistors exhibit low gain there is a significant current difference between their collector current and their emitter current. Since the emitter current is what is used to establish the current reference stabilization, a difference between the collector current and emitter current due to low gain causes significant error in establishing a stable current reference. 
     It is an object of this invention to provide a compensation method and circuit that reduces the negative effect of low gain bipolar transistors in bandgap voltage and current reference circuits. Other objects and advantages of the invention will become apparent to those of ordinary skill in the art having reference to the following specification together with the drawings herein. 
     SUMMARY OF THE INVENTION 
     A bandgap reference circuit 30 includes a current generation circuit 32, a voltage generation circuit 34 connected to current generation circuit 32, and a compensation circuit connected to current generation circuit 32 and voltage generation circuit 34. Current generation circuit 32 sources a current to voltage generation circuit 34 which translates the current into a voltage. Compensation circuit 36 monitors current generation circuit 32 and provides a supplemental current to voltage generation circuit 34. Voltage generation circuit 34 receives ! the supplemental current and translates it into a supplemental voltage. The summation of the voltage produced by the current received by current generation circuit 32 and the supplemental voltage produced by the supplemental current received by compensation circuit 36 produces a stable reference voltage. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic diagram illustrating a prior art bandgap circuit 10. 
     FIG. 2 is schematic diagram illustrating another prior art bandgap circuit 20. 
     FIG. 3 is a schematic diagram illustrating the preferred embodiment of the invention, a compensated bandgap voltage reference circuit 30. 
     FIG. 4 is a schematic diagram illustrating an alternative embodiment of the invention, a compensated bandgap current reference circuit 40. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENT 
     FIG. 3 is a schematic diagram illustrating the preferred embodiment of the invention, a low gain compensated bandgap voltage reference circuit 30. Circuit 30 has a PMOS transistor M1 having a source connected to Vcc and a gate connected to a gate of a PMOS transistor M2. M1 has a drain connected to a collector of a bipolar transistor Q1 and to a gate of an NMOS transistor M4. M4 has a source connected to a base of Q1 and to a base of a bipolar transistor Q2. Q 1 has an emitter connected to circuit ground and Q2 has an emitter connected to a resistor R1 which in turn is also connected to circuit ground. Q2 has a collector connected to a drain of M2. The gate of M2 is connected to its drain and is also connected to a gate of a PMOS transistor M3. M3 has a source connected to Vcc and a drain connected to a first terminal of a resistor R2. A second terminal of R2 is connected to a collector of a bipolar transistor Q3. The collector of Q3 is connected to its gate and an emitter of Q3 is connected to circuit ground. A drain of M4 is connected to a drain of a PMOS transistor M5. M5 has its drain connected to its gate and to a gate of a PMOS transistor M6. M5 has a source connected to Vcc and M6 has a source connected to Vcc. M6 has a drain connected to the first terminal of R2 and forms the output terminal V out  of circuit 30. 
     FIG. 4 is a schematic diagram illustrating an alternative embodiment of the invention, a low gain compensated bandgap current reference circuit 40. Circuit 40 has a PMOS transistor M7 having a source connected to Vcc and a gate connected to a gate of a PMOS transistor M8. M7 has a drain connected to a collector of a bipolar transistor Q4 and to a gate of an NMOS transistor M12. M12 has a source connected to a base of Q4 and to a base of a bipolar transistor Q5. Q4 has an emitter connected to circuit ground and Q5 has an emitter connected to a resistor R3 which in turn is also connected to circuit ground. Q5 has a collector connected to a drain of M8. The drain of M8 is also connected to its gate. The gate of M8 is also connected to a gate of a PMOS transistor M9. M9 has a source connected to Vcc. A drain of M12 is connected to a drain of a PMOS transistor M10. M 10 has its drain connected to its gate and to a gate of a PMOS transistor M11. M10 has a source connected to Vcc and M11 has a source connected to Vcc. M11 has a drain connected to the drain of M9 and forms the output terminal of circuit 40. 
     The functionality of circuit 30 of FIG. 3 is now described. M1 and M2 form a current mirror. Since they have the same W/L transistor size ratios they source the same amount of current. Q1 and Q2 also form a current mirror. However, Q1 and Q2 are sized differently (Q1, in this embodiment, is four times larger than Q2) to provide different current densities. Thus the current density J2 of Q2 is four times larger than the current density J 1 in Q1. The difference in current density provides a difference in the base-emitter voltage (V bc ) of Q1 and Q2. Since 
     
         V.sub.b (Q1)=V.sub.b (Q2), 
    
     then 
     
         V.sub.be (Q1)=V.sub.be (Q2)+I.sub.c (Q2)*R1 
    
     or, 
     
         ΔV.sub.be =V.sub.be (Q1)-V.sub.be (Q2)=I.sub.c (Q2)*R1. 
    
     Therefore, the difference in base-emitter voltages of Q1 and Q2 (V be  (Q1)-V be  (Q2)) is shown by the voltage existing across R1. 
     The current supplied by M2 to Q2 is mirrored to M3. Since, in this particular embodiment, M3 and M2 have the same W/L size ratios, they conduct the same amount of current. M3 feeds R2 and Q3 which provide a voltage drop across R2 and a V bc  (Q3) voltage drop across Q3 because Q3 is biased as a diode. 
     M4 is a &#34;beta-helper&#34; that provides base drive for Q1 and Q2 without substantially affecting the collector current magnitude of Q1. M4, however, is not connected to Vcc as in prior art beta-helper configurations, but rather is connected to M5. M5 and M6 act as a current mirror and play a crucial role in low gain compensation. Since M5 supplies the current to M4 for the base drive it indirectly senses the beta (h FE ) or gain of Q1 and Q2 at any one time because 
     
         I(M4)=I.sub.b (Q1)+I.sub.b (Q2). 
    
     If I b  (Q1) and I b  (Q2) are large currents then it can be concluded that the h FE  or gain of Q1 and Q2 are small because I b  =I c  /h FE . However, if I b  (Q1) and I b  (Q2) are small currents it can, from the same relation, be concluded that the h FE  of Q1 and Q2 is large. In either case it is known that an error term exists that is proportional to h FE  and is a strong function of temperature. This error term is approximately: 
     
         V(error)≈-I.sub.b (Q2)*R2. 
    
     Since M4 provides I b  (Q1) and I b  (Q2) and since Q1 and Q2 conduct approximately the same current, I b  (Q1)=I b  (Q2) and the current through M4 can be represented as 2*I b  (Q2). M5 is designed to be twice the size of M6 in W/L size ratios, therefore M6 conducts half the current of MS. Since M5 conducts 2*I b  (Q2) M6 conducts I b  (Q2). M6 supplies this current to R2, supplementing the current from M3. The current in M6 (of a magnitude I b  (Q2)) provides an additional voltage drop across R2 of the following amount: 
     
         V(supplemental)≈I.sub.b (Q2)*R2. 
    
     Note this additional voltage drop cancels the error term (-I b  (Q2)*R2) caused by the low h FE  of Q2. Further since the h FE  of Q2 varies with temperature or with semiconductor processing the base drive needed for Q1 and Q2 also varies. M4 dynamically provides the needed base drive from M5. Since M6 constantly provides a current one-half the magnitude of M5, M6 dynamically adjusts to provide the current needed to cancel the error term. In this manner, circuit 30 is not optimized for one process or a nominal temperature, but rather dynamically adjusts to provide low gain compensation across process and temperature variations. 
     From the discussion of FIG. 3 it follows that M1, M2, M4, Q1, Q2, and R1 acts as a current generation circuit 32 with the current formed in M2 being the current generated by the current generation circuit. It also follows that M3, R2, and Q3 act as a voltage generation circuit 34 which takes the current from current generation circuit 32 and translates it into a voltage. Further, it follows that M5 and M6 form a compensation circuit 36 that measures the base drive of Q1 and Q2 in current generation circuit 32 and creates a supplemental current that is a ratio of the base currents of Q1 and Q2 and supplies the supplemental current to voltage generation circuit 34 which takes the supplemental current and translates it into a supplemental voltage. The supplemental voltage cancels the error provided by current generation circuit 32 due to low gain bipolar transistors Q1 and Q2. It should be noted that even with high gain bipolar transistors at small errors will exist due to the gain of bipolar transistors being finite. In high performance applications such as voltage regulators this compensation methodology will eliminate the error associated with finite gain bipolar transistors in voltage and current reference circuits. 
     The functionality of alternative embodiment circuit 40 of FIG. 4 is now described. M7 and M8 form a current mirror. Since they both have the same W/L transistor ratios they conduct the same current. Q4 and Q5 also form a bipolar transistor current mirror. Q4 and Q5, however, are different sizes. Since they both conduct the same current, but are different sizes, they have different current densities. Since Q5, in this embodiment, is four times larger than Q4, the current density J4 in Q4 is four times greater than the current density J5 in QS. This difference in current densities creates a difference in base-emitter voltages. This base-emitter voltage difference is seen as the voltage drop across R3. M9 is connected to M7 and M8 and form a current mirror with them. Since M9 has the same W/L size ratio as M7, M9 conducts the same current. The drain of M9 forms the output of circuit 40 I out  and provides a stable reference current. 
     M12 is a beta-helper device that helps diminish the negative effect of low gain bipolar transistors by significantly decreasing the current taken from the collector of Q4 to provide sufficient base drive for Q4 and Q5. However, M12 does not have its drain connected to Vcc as in prior art configurations, but rather is connected to M10. M10 and M11 form a current mirror with M10 providing the current needed by M12 to supply sufficient base drive to Q4 and Q5. Since Q4 and Q5 are matched and are conducting the same currents, the base current being supplied by M12 is evenly split to Q4 and Q5. Therefore I b  (Q4)=I b  (Q5) and the current through M12 can be represented as: 
     
         I(M10)≈I(M12)≈2*I.sub.b (Q5) 
    
     M11 is designed having one-half the W/L size ratio at M10. Therefore, M11 conducts one-half the current of M10. Since, 
     
         I(M10)=2*I.sub.b (Q5) 
    
     then, 
     
         I(M11)=I.sub.b (Q5) 
    
     Since M9 mirrors the current in M8 and I(M8)=I c  (Q5) it is evident that for low gain transistors a significant deviation will exist between I c  (Q5) and I c  (Q5) and since I c  (Q5) is the desired current to be reflected as the reference current, I b  (Q5), which reflects the error between I c  (Q5) and I c  (Q5), must be added to the current conducting in M9 to eliminate the error. M11 provides I b  (Q5) to I out  and compensates for the error in low gain bipolar transistor Q5. Additionally, since I b  (Q5) is a strong function of temperature it is crucial to have a mechanism that dynamically reacts to the changes and provides appropriate compensation. Since M10 dynamically varies its current to M12 depending on the needed base drive of Q4 and Q5, the current in M11 also varies to provide a dynamic I b  (Q5) such that circuit 40 provides effective compensation over temperature or process variation. 
     Although the invention has been described with reference to the preferred embodiment herein, this description is not to be construed in a limiting sense. Various modifications of the disclosed embodiment as well as other embodiments of the invention, will become apparent to persons skilled in the art upon reference to the description of the invention. It is therefore contemplated that the appended claims will cover any such modifications or embodiments as fall within the true scope of the invention.