User:John R. Brews/WP Import: Difference between revisions
imported>John R. Brews No edit summary |
imported>John R. Brews No edit summary |
||
Line 1: | Line 1: | ||
A '''current mirror''' is a circuit designed to copy a [[current (electricity)|current]] through one [[active device]] by controlling the current in another active device of a circuit, keeping the output current constant regardless of loading. The current being 'copied' can be, and sometimes is, a varying signal current. Conceptually, an ideal current mirror is simply an ideal current amplifier. The current mirror is used to provide bias currents and [[active load]]s to circuits. | |||
A ''' | |||
==Mirror characteristics== | |||
\ . </math> | There are three main specifications that characterize a current mirror. The first is the current level it produces. The second is its AC output resistance, which determines how much the output current varies with the voltage applied to the mirror. The third specification is the minimum voltage drop across the mirror necessary to make it work properly. This minimum voltage is dictated by the need to keep the output transistor of the mirror in active mode. The range of voltages where the mirror works is called the '''compliance range''' and the voltage marking the boundary between good and bad behavior is called the '''compliance voltage'''. There are also a number of secondary performance issues with mirrors, for example, temperature stability. | ||
That is, | |||
==Practical approximations== | |||
For small-signal analysis the current mirror can be approximated by its equivalent [[Norton's theorem| Norton impedance]] . | |||
In large-signal hand analysis, a current mirror usually is approximated simply by an ideal current source. However, an ideal current source is unrealistic in several respects: | |||
*it has infinite AC impedance, while a practical mirror has finite impedance | |||
*it provides the same current regardless of voltage, that is, there are no compliance range requirements | |||
*it has no frequency limitations, while a real mirror has limitations due to the parasitic capacitances of the transistors | |||
*the ideal source has no sensitivity to real-world effects like noise, power-supply voltage variations and component tolerances. | |||
== Circuit realizations of current mirrors == | |||
[[Image:Simple bipolar mirror.PNG|thumbnail|200px|Figure 1: A current mirror implemented with npn bipolar transistors using a resistor to set the reference current I<sub>REF</sub>; V<sub>CC</sub> = supply voltage]] | |||
===Basic bipolar transistor mirror=== | |||
The simplest bipolar current mirror consists of two transistors connected as shown in Figure 1. Transistor Q<sub>1</sub> is connected so its collector-base voltage is zero. Consequently, the voltage drop across Q<sub>1</sub> is ''V''<sub>BE</sub>, that is, this voltage is set by the [[Diode_modelling#Shockley_diode_model| diode law]] and Q<sub>1</sub> is said to be '''diode connected'''. (See also [[Bipolar_transistor#Ebers.E2.80.93Moll_model|Ebers-Moll model]].) It is important to have Q<sub>1</sub> in the circuit instead of a simple diode, because Q<sub>1</sub> sets ''V<sub>BE</sub>'' for the transistor Q<sub>2</sub>. If Q<sub>1</sub> and Q<sub>2</sub> are matched, that is, have substantially the same device properties, and if the mirror output voltage is chosen so the collector-base voltage of Q<sub>2</sub> also is zero, then the ''V<sub>BE</sub>''-value set by Q<sub>1</sub> results in an emitter current in the matched Q<sub>2</sub> that is the same as the emitter current in Q<sub>1</sub>. Because Q<sub>1</sub> and Q<sub>2</sub> are matched, their β<sub>0</sub>-values also agree, making the mirror output current the same as the collector current of Q<sub>1</sub>. | |||
The current delivered by the mirror for arbitrary collector-base reverse bias ''V''<sub>CB</sub> of the output transistor is given by (see [[bipolar transistor]]): | |||
::<math> I_\mathrm{C} = I_\mathrm{S} \left( e^{\frac{V_\mathrm{BE}}{V_\mathrm{T}}}-1 \right) \left(1 + \begin{matrix} \frac{V_\mathrm{CB}}{V_\mathrm{A}} \end{matrix} \right) </math>, | |||
where ''V<sub>T</sub>'' = [[Boltzmann constant#Role in semiconductor physics: the thermal voltage|thermal voltage]], ''I<sub>S</sub>'' = reverse saturation current, or scale current; ''V<sub>A</sub>'' = [[Early voltage]]. This current is related to the reference current ''I<sub>REF</sub>'' when the output transistor ''V<sub>CB</sub>'' = 0 V by: | |||
::<math> I_{REF} = I_C \left( 1+ \frac {2} {\beta_0} \right) \ , </math> | |||
as found using [[Kirchhoff's current law]] at the collector node of Q<sub>1</sub>. The reference current supplies the collector current to Q<sub>1</sub> and the base currents to both transistors — when both transistors have zero base-collector bias, the two base currents are equal. Parameter β<sub>0</sub> is the transistor β-value for ''V''<sub>CB</sub> = 0 V. | |||
====Output resistance==== | |||
If V<sub>CB</sub> is greater than zero in output transistor Q<sub>2</sub>, the collector current in Q<sub>2</sub> will be somewhat larger than for Q<sub>1</sub> due to the [[Early effect]]. In other words, the mirror has a finite output (or Norton) resistance given by the ''r<sub>O</sub>'' of the output transistor, namely (see [[Early effect]]): | |||
::<math> R_N =r_O = \begin{matrix} \frac {V_A + V_{CB}} {I_C} \end{matrix} </math>, | |||
where ''V<sub>A</sub>'' = Early voltage and ''V<sub>CB</sub>'' = collector-to-base bias. | |||
====Compliance voltage==== | |||
To keep the output transistor active, ''V<sub>CB</sub>'' ≥ 0 V. That means the lowest output voltage that results in correct mirror behavior, the compliance voltage, is ''V<sub>OUT</sub>'' = ''V<sub>CV</sub>'' = ''V<sub>BE</sub>'' under bias conditions with the output transistor at the output current level ''I<sub>C</sub>'' and with ''V<sub>CB</sub>'' = 0 V or, inverting the ''I-V'' relation above: | |||
::<math>\ V_{CV}= {V_T}</math> <math>\ \mathrm {ln} </math> <math> \left(\begin{matrix}\frac {I_C}{I_S}\end{matrix}+1\right) \ , </math> | |||
where ''V<sub>T</sub>'' = [[Boltzmann constant#Role in semiconductor physics: the thermal voltage|thermal voltage]] and ''I<sub>S</sub>'' = reverse saturation current (scale current). | |||
====Extensions and complications==== | |||
When Q<sub>2</sub> has ''V<sub>CB</sub>'' > 0 V, the transistors no longer are matched. In particular, their β-values differ due to the Early effect, with | |||
::<math>{\beta}_1 = {\beta}_{0} \ \operatorname{and} \ {\beta}_2 = {\beta}_{0}\ (1 + \frac{V_{CB}}{V_A})</math> | |||
where V<sub>A</sub> is the [[Early effect|Early voltage]] and β<sub>0</sub> = transistor β for V<sub>CB</sub> = 0 V. Besides the difference due to the Early effect, the transistor β-values will differ because the β<sub>0</sub>-values depend on current, and the two transistors now carry different currents (see [[Gummel–Poon model|Gummel-Poon model]]). | |||
Further, Q<sub>2</sub> may get substantially hotter than Q<sub>1</sub> due to the associated higher power dissipation. To maintain matching, the temperature of the transistors must be nearly the same. In [[integrated circuit]]s and transistor arrays where both transistors are on the same die, this is easy to achieve. But if the two transistors are widely separated, the precision of the current mirror is compromised. | |||
Additional matched transistors can be connected to the same base and will supply the same collector current. In other words, the right half of the circuit can be duplicated several times with various resistor values replacing R<sub>2</sub> on each. Note, however, that each additional right-half transistor "steals" a bit of collector current from Q<sub>1</sub> due to the non-zero base currents of the right-half transistors. This will result in a small reduction in the programmed current. | |||
An example of a mirror with emitter degeneration to increase mirror resistance is found in [[Two-port network#Impedance parameters (z-parameters)|two-port network]]s. | |||
For the simple mirror shown in the diagram, typical values of <math>\beta</math> will yield a current match of 1% or better. | |||
=== Basic MOSFET current mirror === | |||
[[Image:Simple MOSFET mirror.PNG|thumbnail|200px|Figure 2: An n-channel MOSFET current mirror with a resistor to set the reference current I<sub>REF</sub>; V<sub>DD</sub> is the supply voltage]] | |||
The basic current mirror can also be implemented using MOSFET transistors, as shown in Figure 2. Transistor ''M''<sub>1</sub> is operating in the [[MOSFET#Modes of operation|saturation or active]] mode, and so is ''M''<sub>2</sub>. In this setup, the output current ''I''<sub>OUT</sub> is directly related to ''I''<sub>REF</sub>, as discussed next. | |||
The drain current of a MOSFET ''I''<sub>D</sub> is a function of both the gate-source voltage and the drain-to-gate voltage of the MOSFET given by ''I''<sub>D</sub> = ''f'' (''V''<sub>GS</sub>, ''V''<sub>DG</sub>), a relationship derived from the functionality of the [[MOSFET]] device. In the case of transistor ''M''<sub>1</sub> of the mirror, ''I''<sub>D</sub> = ''I''<sub>REF</sub>. Reference current ''I''<sub>REF</sub> is a known current, and can be provided by a resistor as shown, or by a "threshold-referenced" or "self-biased" current source to insure that it is constant, independent of voltage supply variations.<ref name=Gray-Meyer/> | |||
Using ''V''<sub>DG</sub>=0 for transistor ''M''<sub>1</sub>, the drain current in ''M''<sub>1</sub> is ''I''<sub>D</sub> = ''f'' (''V''<sub>GS</sub>,''V''<sub>DG</sub>=0), so we find: ''f'' (''V''<sub>GS</sub>, 0) = ''I''<sub>REF</sub>, implicitly determining the value of ''V''<sub>GS</sub>. Thus ''I''<sub>REF</sub> sets the value of ''V''<sub>GS</sub>. The circuit in the diagram forces the same ''V''<sub>GS</sub> to apply to transistor ''M''<sub>2</sub>. If ''M''<sub>2</sub> also is biased with zero ''V''<sub>DG</sub> and provided both transistors ''M''<sub>1</sub> and ''M''<sub>2</sub> have good matching of their properties, such as channel length, width, threshold voltage ''etc.'', the relationship ''I''<sub>OUT</sub> = ''f'' (''V''<sub>GS</sub>,''V''<sub>DG</sub>=0 ) applies, thus setting ''I''<sub>OUT</sub> = ''I''<sub>REF</sub>; that is, the output current is the same as the reference current when ''V''<sub>DG</sub>=0 for the output transistor, and both transistors are matched. | |||
The drain-to-source voltage can be expressed as ''V''<sub>DS</sub>=''V''<sub>DG</sub> +''V''<sub>GS</sub>. With this substitution, the Shichman-Hodges model provides an approximate form for function ''f'' (''V''<sub>GS</sub>,''V''<sub>DG</sub>):<ref name=Gray-Meyer2/> | |||
:::<math> | |||
\begin{alignat}{2} | |||
I_{d} & = f\ (V_{GS},V_{DG}) | |||
= \begin{matrix} \frac{1}{2}K_{p}\left(\frac{W}{L}\right)\end{matrix}(V_{GS} - V_{th})^2 (1 + \lambda V_{DS}) \\ | |||
& =\begin{matrix} \frac{1}{2}K_{p}\left(\frac{W}{L}\right)\end{matrix}(V_{GS} - V_{th})^2 \left( 1 + \lambda (V_{DG}+V_{GS}) \right) \\ | |||
\end{alignat}</math> | |||
where, <math>{K_{p}}</math> is a technology related constant associated with the transistor, ''W/L'' is the width to length ratio of the transistor, ''V''<sub>GS</sub> is the gate-source voltage, ''V''<sub>th</sub> is the threshold voltage, λ is the [[channel length modulation]] constant, and ''V''<sub>DS</sub> is the drain source voltage. | |||
====Output resistance==== | |||
Because of channel-length modulation, the mirror has a finite output (or Norton) resistance given by the ''r<sub>O</sub>'' of the output transistor, namely (see [[channel length modulation]]): | |||
::<math> R_N =r_O = \begin{matrix} \frac {1/\lambda + V_{DS}} {I_D} \end{matrix} </math>, | |||
where ''λ'' = channel-length modulation parameter and ''V<sub>DS</sub>'' = drain-to-source bias. | |||
====Compliance voltage==== | |||
To keep the output transistor resistance high, ''V<sub>DG</sub>'' ≥ 0 V.<ref name=Note1/> See Baker. <ref name=Baker/> That means the lowest output voltage that results in correct mirror behavior, the compliance voltage, is ''V<sub>OUT</sub>'' = ''V<sub>CV</sub>'' = ''V<sub>GS</sub>'' for the output transistor at the output current level with ''V<sub>DG</sub>'' = 0 V, or using the inverse of the ''f''-function, ''f<sup> −1</sup>'': | |||
::<math> V_{CV}= V_{GS} (\mathrm{for}\ I_D\ \mathrm{at} \ V_{DG}=0V) = f ^{-1} (I_D) \ \mathrm{with}\ V_{DG}=0 </math>. | |||
For Shichman-Hodges model, ''f<sup> -1</sup>'' is approximately a square-root function. | |||
====Extensions and reservations==== | |||
A useful feature of this mirror is the linear dependence of ''f'' upon device width ''W'', a proportionality approximately satisfied even for models more accurate than the Shichman-Hodges model. Thus, by adjusting the ratio of widths of the two transistors, multiples of the reference current can be generated. | |||
It must be recognized that the Shichman-Hodges model<ref name=NanoDotTek/> is accurate only for rather dated technology, although it often is used simply for convenience even today. Any quantitative design based upon new technology uses computer models for the devices that account for the changed current-voltage characteristics. Among the differences that must be accounted for in an accurate design is the failure of the square law in ''V''<sub>gs</sub> for voltage dependence and the very poor modeling of ''V''<sub>ds</sub> drain voltage dependence provided by λ''V''<sub>ds</sub>. Another failure of the equations that proves very significant is the inaccurate dependence upon the channel length ''L''. A significant source of ''L''-dependence stems from λ, as noted by Gray and Meyer, who also note that λ usually must be taken from experimental data.<ref name=Gray-Meyer3/> | |||
===Feedback assisted current mirror=== | |||
[[Image:Gain-assisted current mirror.PNG|thumbnail|300px|Figure 3: Gain-boosted current mirror with op amp feedback to increase output resistance]] | |||
[[Image:WIde-swing MOSFET mirror.PNG|thumbnail|300px|Figure 4: MOSFET version of wide-swing current mirror; M<sub>1</sub> and M<sub>2</sub> are in active mode, while M<sub>3</sub> and M<sub>4</sub> are in Ohmic mode and act like resistors]] | |||
Figure 3 shows a mirror using [[negative feedback]] to increase output resistance. Because of the op amp, these circuits are sometimes called '''gain-boosted current mirrors'''. Because they have relatively low compliance voltages, they also are called '''wide-swing current mirrors'''. A variety of circuits based upon this idea are in use,<ref name=Baker2/><ref name=Ivanov/><ref name=Sansen/> particularly for MOSFET mirrors because MOSFETs have rather low intrinsic output resistance values. A MOSFET version of Figure 3 is shown in Figure 4 where MOSFETs ''M<sub>3</sub>'' and ''M<sub>4</sub>'' operate in [[MOSFET#Modes_of_operation|Ohmic mode]] to play the same role as emitter resistors ''R<sub>E</sub>'' in Figure 3, and MOSFETs ''M<sub>3</sub>'' and ''M<sub>4</sub>'' operate in active mode in the same roles as mirror transistors ''Q<sub>1</sub>'' and ''Q<sub>2</sub>'' in Figure 3. An explanation follows of how the circuit in Figure 3 works. | |||
The operational amplifier is fed the difference in voltages ''V<sub>1</sub> - V<sub>2</sub>'' at the top of the two emitter-leg resistors of value ''R<sub>E</sub>''. This difference is amplified by the op amp and fed to the base of output transistor ''Q<sub>2</sub>''. If the collector base reverse bias on ''Q<sub>2</sub>'' is increased by increasing the applied voltage ''V<sub>A</sub>'', the current in ''Q<sub>2</sub>'' increases, increasing ''V<sub>2</sub>'' and decreasing the difference ''V<sub>1</sub> - V<sub>2</sub>'' entering the op amp. Consequently, the base voltage of ''Q<sub>2</sub>'' is decreased, and ''V<sub>BE</sub>'' of ''Q<sub>2</sub>'' decreases, counteracting the increase in output current. | |||
If the op amp gain ''A<sub>v</sub>'' is large, only a very small difference ''V<sub>1</sub> - V<sub>2</sub>'' is sufficient to generate the needed base voltage ''V<sub>B</sub>'' for ''Q<sub>2</sub>'', namely | |||
::<math> V_1-V_2 = \frac {V_B}{A_v} \ .</math> | |||
Consequently, the currents in the two leg resistors are held nearly the same, and the output current of the mirror is very nearly the same as the collector current ''I<sub>C1</sub>'' in ''Q<sub>1</sub>'', which in turn is set by the reference current as | |||
::<math> I_{ref} = I_{C1} (1 + 1/ { \beta}_1) \ ,</math> | |||
where β<sub>1</sub> for transistor ''Q<sub>1</sub>'' and β<sub>2</sub> for ''Q<sub>2</sub>'' differ due to the [[Early effect]] if the reverse bias across the collector-base of ''Q<sub>2</sub>'' is non-zero. | |||
[[Image:Mirror output resistance.PNG|thumb|350px|Figure 5: Small-signal circuit to determine output resistance of mirror; transistor Q<sub>2</sub> is replaced with its [[hybrid-pi model]]; a test current ''I''<sub>X</sub> at the output generates a voltage ''V''<sub>X</sub>, and the output resistance is ''R''<sub>out</sub> = ''V''<sub>X</sub> / ''I''<sub>X</sub>.]] | |||
====Output resistance==== | |||
An idealized treatment of output resistance is given in the footnote.<ref name=outputR/> A small-signal analysis for an op amp with finite gain ''A''<sub>v</sub> but otherwise ideal is based upon Figure 5 (β, r<sub>O</sub> and ''r<sub>π</sub>'' refer to ''Q<sub>2</sub>''). To arrive at Figure 5, notice that the positive input of the op amp in Figure 3 is at AC ground, so the voltage input to the op amp is simply the AC emitter voltage ''V''<sub>e</sub> applied to its negative input, resulting in a voltage output of −''A''<sub>v</sub> ''V''<sub>e</sub>. Using [[Ohm's law]] across the input resistance r<sub>π</sub> determines the small-signal base current ''I''<sub>b</sub> as: | |||
:<math> I_b = \frac {V_e} {r_{\pi} / ( A_v+1) } \ . </math> | |||
Combining this result with Ohm's law for ''R''<sub>E</sub>, ''V''<sub>e</sub> can be eliminated, to find:<ref name=limit/> | |||
:<math> I_b = I_X \frac {R_E} {R_E +\frac {r_{\pi}} {A_v+1} } \ . </math> | |||
[[Kirchhoff's voltage law]] from the test source ''I''<sub>X</sub> to the ground of ''R''<sub>E</sub> provides: | |||
:<math> V_X = (I_X + \beta I_b) r_O + (I_X - I_b )R_E \ . </math> | |||
Substituting for ''I''<sub>b</sub> and collecting terms the output resistance ''R''<sub>out</sub> is found to be: | |||
:<math>R_{out} = \frac {V_X} {I_X} = r_O \left( 1+ \beta \frac{R_E} {R_E+r_{\pi}/(A_v+1)} \right) +R_E\|\frac {r_{\pi}} {A_v+1} \ .</math> | |||
For a large gain ''A<sub>v</sub> >> r<sub>π</sub> / R<sub>E</sub>'' the maximum output resistance obtained with this circuit is | |||
::<math>R_{out} = ( \beta +1) r_O \ ,</math> | |||
a substantial improvement over the basic mirror where ''R<sub>out</sub> = ''r<sub>O</sub>''. | |||
The small-signal analysis of the MOSFET circuit of Figure 4 is obtained from the bipolar analysis by setting β = ''g<sub>m</sub> r<sub>π</sub>'' in the formula for ''R<sub>out</sub>'' and then letting ''r<sub>π</sub>'' → ∞. The result is | |||
::<math> | ::<math>R_{out} = r_O \left( 1+ g_m R_E(A_v+1) \right) +R_E \ .</math> | ||
This time, ''R<sub>E</sub>'' is the resistance of the source-leg MOSFETs M<sub>3</sub>, M<sub>4</sub>. Unlike Figure 3, however, as ''A<sub>v</sub>'' is increased (holding ''R<sub>E</sub>'' fixed in value), ''R<sub>out</sub>'' continues to increase, and does not approach a limiting value at large ''A<sub>v</sub>''. | |||
====Compliance voltage==== | |||
For Figure 3, a large op amp gain achieves the maximum ''R<sub>out</sub>'' with only a small ''R<sub>E</sub>''. A low value for ''R<sub>E</sub>'' means ''V<sub>2</sub>'' also is small, allowing a low compliance voltage for this mirror, only a voltage ''V<sub>2</sub>'' larger than the compliance voltage of the simple bipolar mirror. For this reason this type of mirror also is called a ''wide-swing current mirror'', because it allows the output voltage to swing low compared to other types of mirror that achieve a large ''R<sub>out</sub>'' only at the expense of large compliance voltages. | |||
With the MOSFET circuit of Figure 4, like the circuit in Figure 3, the larger the op amp gain ''A<sub>v</sub>'', the smaller ''R<sub>E</sub>'' can be made at a given ''R<sub>out</sub>'', and the lower the compliance voltage of the mirror. | |||
===Other current mirrors=== | |||
There are many sophisticated current mirrors that have higher [[output impedance|output resistances]] than the basic mirror (more closely approach an ideal mirror with current output independent of output voltage) and produce currents less sensitive to temperature and device parameter [[Design for manufacturability (IC)|variations]] and to circuit voltage fluctuations. These multi-transistor mirror circuits are used both with bipolar and MOS transistors. | |||
These circuits include: | |||
* the [[Widlar current source]] | |||
* the [[Wilson current source]] | |||
* the [[Cascode|cascoded current sources]] | |||
==References== | ==References== | ||
{{reflist|refs= | {{reflist|refs= | ||
<ref name= | <ref name=Gray-Meyer> | ||
{{cite book | |||
|author=Paul R. Gray, Paul J. Hurst, Stephen H. Lewis, Robert G. Meyer | |||
|title=Analysis and Design of Analog Integrated Circuits | |||
|year= 2001 | |||
|page=pp. 308–309 | |||
|edition=Fourth Edition | |||
|publisher=Wiley | |||
|location=New York | |||
|isbn=0471321680 | |||
|url=http://worldcat.org/isbn/0471321680}} | |||
</ref> | |||
<ref name=Gray-Meyer2> | |||
{{cite book | |||
|author=Gray ''et al.'' | |||
|title=Eq. 1.165, p. 44 | |||
|isbn=0471321680 | |||
|url=http://worldcat.org/isbn/0471321680}} | |||
</ref> | |||
<ref name=Note1>Keeping the output resistance high means more than keeping the MOSFET in active mode, because the output resistance of real MOSFETs only begins to increase on entry into the active region, then rising to become close to maximum value only when ''V<sub>DG</sub>'' ≥ 0 V. </ref> | |||
<ref name=Baker> | |||
{{cite book | |||
|author=R. Jacob Baker | |||
|title=CMOS Circuit Design, Layout and Simulation | |||
|edition=Revised Second Edition | |||
|year= 2008 | |||
|pages=p. 297, §9.2.1 and Figure 20.28, p. 636 | |||
|publisher=Wiley-IEEE | |||
|location=New York | |||
|isbn=978-0-470-22941-5 | |||
|url=http://worldcat.org/isbn/0-471-70055-X }} | |||
</ref> | |||
<ref name=NanoDotTek> | |||
NanoDotTek Report NDT14-08-2007, 12 August 2007 [http://www.nanodottek.com/NDT14_08_2007.pdf] | |||
</ref> | |||
<ref name= | <ref name=Gray-Meyer3> | ||
{{cite book | {{cite book | ||
|author= | |author=Gray ''et al.'' | ||
|title= | |title=p. 44 | ||
|isbn=0471321680 | |||
|url=http://worldcat.org/isbn/0471321680}} | |||
|isbn= | |||
|url=http:// | |||
</ref> | </ref> | ||
<ref name= | <ref name=Baker2> | ||
{{cite book | {{cite book | ||
|author= | |author=R. Jacob Baker | ||
|title= | |title=§ 20.2.4 pp. 645–646 | ||
|isbn=978-0-470-22941-5 | |||
|url=http://worldcat.org/isbn/0-471-70055-X }} | |||
|isbn= | |||
|url=http:// | |||
</ref> | </ref> | ||
<ref name= | <ref name=Ivanov> | ||
{{cite book | {{cite book | ||
|author= | |author=Ivanov VI and Filanovksy IM | ||
|title= | |title=Operational amplifier speed and accuracy improvement: analog circuit design with structural methodology | ||
|year= | |edition=The Kluwer international series in engineering and computer science, v. 763 | ||
|publisher= | |year= 2004 | ||
|location= | |page=§6.1, p. 105-108 | ||
|isbn= | |publisher=Kluwer Academic | ||
|location=Boston, Mass. | |||
|url=http:// | |isbn=1-4020-7772-6 | ||
|url=http://books.google.com/books?id=IuLsny9wKIIC&pg=PA110&dq=gain+boost+wide++%22current+mirror%22&lr=&as_brr=0&sig=bnTLU_pFGG82g9N5x3urxIPqCzA#PPA107,M1}} | |||
</ref> | </ref> | ||
<ref name=Sansen> | |||
{{cite book | |||
|author=W. M. C. Sansen | |||
|title=Analog design essentials | |||
|year= 2006 | |||
|page=§0310, p. 93 | |||
|publisher=Springer | |||
|location=New York ; Berlin | |||
|isbn=0-387-25746-2 | |||
|url=http://worldcat.org/isbn/0387257462}} | |||
</ref> | |||
<ref name=outputR>An idealized version of the argument in the text, valid for infinite op amp gain, is as follows. If the op amp is replaced by a [[nullor]], voltage ''V''<sub>2</sub> = ''V''<sub>1</sub>, so the currents in the leg resistors are held at the same value. That means the emitter currents of the transistors are the same. If the ''V''<sub>CB</sub> of Q<sub>2</sub> increases, so does the output transistor β because of the [[Early effect]]: β = β<sub>0</sub> ( 1 + ''V''<sub>CB</sub> / ''V''<sub>A</sub> ). Consequently the base current to Q<sub>2</sub> given by ''I''<sub>B</sub> = ''I''<sub>E</sub> / (β + 1) decreases and the output current ''I''<sub>out</sub> = ''I''<sub>E</sub> / (1 + 1 / β) increases slightly because β increases slightly. Doing the math, | |||
::<math> \frac {1} {R_{out}} = \frac {\partial I_{out} } { \partial V_{CB} } = I_E \frac {\partial } { \partial V_{CB} } \left( \frac { \beta } { \beta +1} \right) = I_E \frac {1} {(\beta + 1)^2 } \frac { \partial \beta } {\partial V_{CB}} </math>   <math> = \frac {\beta I_E} { \beta +1 } \frac {1}{\beta} \frac {\beta_0} { V_A} \frac {1} {(\beta +1) } | |||
=I_{out} \frac {1} {1+V_{CB} / V_A} \frac {1} { V_A} \frac {1} {(\beta +1) } | |||
= \frac {1} { ( \beta +1 ) r_0} \ ,</math> | |||
where the transistor output resistance is given by r<sub>O</sub> = ( ''V''<sub>A</sub> + ''V''<sub>CB</sub> ) / ''I''<sub>out</sub>. That is, the ideal mirror resistance for the circuit using an ideal op amp [[nullor]] is ''R''<sub>out</sub> = ( β + 1 ) r<sub>O</sub>, in agreement with the value given later in the text when the gain → ∞.</ref> | |||
<ref name=limit>Notice that as ''A''<sub>v</sub> → ∞, ''V''<sub>e</sub> → 0 and ''I''<sub>b</sub> → ''I<sub>X</sub>.</ref> | |||
}} | }} |
Revision as of 16:37, 19 May 2011
A current mirror is a circuit designed to copy a current through one active device by controlling the current in another active device of a circuit, keeping the output current constant regardless of loading. The current being 'copied' can be, and sometimes is, a varying signal current. Conceptually, an ideal current mirror is simply an ideal current amplifier. The current mirror is used to provide bias currents and active loads to circuits.
Mirror characteristics
There are three main specifications that characterize a current mirror. The first is the current level it produces. The second is its AC output resistance, which determines how much the output current varies with the voltage applied to the mirror. The third specification is the minimum voltage drop across the mirror necessary to make it work properly. This minimum voltage is dictated by the need to keep the output transistor of the mirror in active mode. The range of voltages where the mirror works is called the compliance range and the voltage marking the boundary between good and bad behavior is called the compliance voltage. There are also a number of secondary performance issues with mirrors, for example, temperature stability.
Practical approximations
For small-signal analysis the current mirror can be approximated by its equivalent Norton impedance .
In large-signal hand analysis, a current mirror usually is approximated simply by an ideal current source. However, an ideal current source is unrealistic in several respects:
- it has infinite AC impedance, while a practical mirror has finite impedance
- it provides the same current regardless of voltage, that is, there are no compliance range requirements
- it has no frequency limitations, while a real mirror has limitations due to the parasitic capacitances of the transistors
- the ideal source has no sensitivity to real-world effects like noise, power-supply voltage variations and component tolerances.
Circuit realizations of current mirrors
Basic bipolar transistor mirror
The simplest bipolar current mirror consists of two transistors connected as shown in Figure 1. Transistor Q1 is connected so its collector-base voltage is zero. Consequently, the voltage drop across Q1 is VBE, that is, this voltage is set by the diode law and Q1 is said to be diode connected. (See also Ebers-Moll model.) It is important to have Q1 in the circuit instead of a simple diode, because Q1 sets VBE for the transistor Q2. If Q1 and Q2 are matched, that is, have substantially the same device properties, and if the mirror output voltage is chosen so the collector-base voltage of Q2 also is zero, then the VBE-value set by Q1 results in an emitter current in the matched Q2 that is the same as the emitter current in Q1. Because Q1 and Q2 are matched, their β0-values also agree, making the mirror output current the same as the collector current of Q1. The current delivered by the mirror for arbitrary collector-base reverse bias VCB of the output transistor is given by (see bipolar transistor):
- ,
where VT = thermal voltage, IS = reverse saturation current, or scale current; VA = Early voltage. This current is related to the reference current IREF when the output transistor VCB = 0 V by:
as found using Kirchhoff's current law at the collector node of Q1. The reference current supplies the collector current to Q1 and the base currents to both transistors — when both transistors have zero base-collector bias, the two base currents are equal. Parameter β0 is the transistor β-value for VCB = 0 V.
Output resistance
If VCB is greater than zero in output transistor Q2, the collector current in Q2 will be somewhat larger than for Q1 due to the Early effect. In other words, the mirror has a finite output (or Norton) resistance given by the rO of the output transistor, namely (see Early effect):
- ,
where VA = Early voltage and VCB = collector-to-base bias.
Compliance voltage
To keep the output transistor active, VCB ≥ 0 V. That means the lowest output voltage that results in correct mirror behavior, the compliance voltage, is VOUT = VCV = VBE under bias conditions with the output transistor at the output current level IC and with VCB = 0 V or, inverting the I-V relation above:
where VT = thermal voltage and IS = reverse saturation current (scale current).
Extensions and complications
When Q2 has VCB > 0 V, the transistors no longer are matched. In particular, their β-values differ due to the Early effect, with
where VA is the Early voltage and β0 = transistor β for VCB = 0 V. Besides the difference due to the Early effect, the transistor β-values will differ because the β0-values depend on current, and the two transistors now carry different currents (see Gummel-Poon model).
Further, Q2 may get substantially hotter than Q1 due to the associated higher power dissipation. To maintain matching, the temperature of the transistors must be nearly the same. In integrated circuits and transistor arrays where both transistors are on the same die, this is easy to achieve. But if the two transistors are widely separated, the precision of the current mirror is compromised.
Additional matched transistors can be connected to the same base and will supply the same collector current. In other words, the right half of the circuit can be duplicated several times with various resistor values replacing R2 on each. Note, however, that each additional right-half transistor "steals" a bit of collector current from Q1 due to the non-zero base currents of the right-half transistors. This will result in a small reduction in the programmed current.
An example of a mirror with emitter degeneration to increase mirror resistance is found in two-port networks.
For the simple mirror shown in the diagram, typical values of will yield a current match of 1% or better.
Basic MOSFET current mirror
The basic current mirror can also be implemented using MOSFET transistors, as shown in Figure 2. Transistor M1 is operating in the saturation or active mode, and so is M2. In this setup, the output current IOUT is directly related to IREF, as discussed next.
The drain current of a MOSFET ID is a function of both the gate-source voltage and the drain-to-gate voltage of the MOSFET given by ID = f (VGS, VDG), a relationship derived from the functionality of the MOSFET device. In the case of transistor M1 of the mirror, ID = IREF. Reference current IREF is a known current, and can be provided by a resistor as shown, or by a "threshold-referenced" or "self-biased" current source to insure that it is constant, independent of voltage supply variations.[1]
Using VDG=0 for transistor M1, the drain current in M1 is ID = f (VGS,VDG=0), so we find: f (VGS, 0) = IREF, implicitly determining the value of VGS. Thus IREF sets the value of VGS. The circuit in the diagram forces the same VGS to apply to transistor M2. If M2 also is biased with zero VDG and provided both transistors M1 and M2 have good matching of their properties, such as channel length, width, threshold voltage etc., the relationship IOUT = f (VGS,VDG=0 ) applies, thus setting IOUT = IREF; that is, the output current is the same as the reference current when VDG=0 for the output transistor, and both transistors are matched.
The drain-to-source voltage can be expressed as VDS=VDG +VGS. With this substitution, the Shichman-Hodges model provides an approximate form for function f (VGS,VDG):[2]
where, is a technology related constant associated with the transistor, W/L is the width to length ratio of the transistor, VGS is the gate-source voltage, Vth is the threshold voltage, λ is the channel length modulation constant, and VDS is the drain source voltage.
Output resistance
Because of channel-length modulation, the mirror has a finite output (or Norton) resistance given by the rO of the output transistor, namely (see channel length modulation):
- ,
where λ = channel-length modulation parameter and VDS = drain-to-source bias.
Compliance voltage
To keep the output transistor resistance high, VDG ≥ 0 V.[3] See Baker. [4] That means the lowest output voltage that results in correct mirror behavior, the compliance voltage, is VOUT = VCV = VGS for the output transistor at the output current level with VDG = 0 V, or using the inverse of the f-function, f −1:
- .
For Shichman-Hodges model, f -1 is approximately a square-root function.
Extensions and reservations
A useful feature of this mirror is the linear dependence of f upon device width W, a proportionality approximately satisfied even for models more accurate than the Shichman-Hodges model. Thus, by adjusting the ratio of widths of the two transistors, multiples of the reference current can be generated.
It must be recognized that the Shichman-Hodges model[5] is accurate only for rather dated technology, although it often is used simply for convenience even today. Any quantitative design based upon new technology uses computer models for the devices that account for the changed current-voltage characteristics. Among the differences that must be accounted for in an accurate design is the failure of the square law in Vgs for voltage dependence and the very poor modeling of Vds drain voltage dependence provided by λVds. Another failure of the equations that proves very significant is the inaccurate dependence upon the channel length L. A significant source of L-dependence stems from λ, as noted by Gray and Meyer, who also note that λ usually must be taken from experimental data.[6]
Feedback assisted current mirror
Figure 3 shows a mirror using negative feedback to increase output resistance. Because of the op amp, these circuits are sometimes called gain-boosted current mirrors. Because they have relatively low compliance voltages, they also are called wide-swing current mirrors. A variety of circuits based upon this idea are in use,[7][8][9] particularly for MOSFET mirrors because MOSFETs have rather low intrinsic output resistance values. A MOSFET version of Figure 3 is shown in Figure 4 where MOSFETs M3 and M4 operate in Ohmic mode to play the same role as emitter resistors RE in Figure 3, and MOSFETs M3 and M4 operate in active mode in the same roles as mirror transistors Q1 and Q2 in Figure 3. An explanation follows of how the circuit in Figure 3 works.
The operational amplifier is fed the difference in voltages V1 - V2 at the top of the two emitter-leg resistors of value RE. This difference is amplified by the op amp and fed to the base of output transistor Q2. If the collector base reverse bias on Q2 is increased by increasing the applied voltage VA, the current in Q2 increases, increasing V2 and decreasing the difference V1 - V2 entering the op amp. Consequently, the base voltage of Q2 is decreased, and VBE of Q2 decreases, counteracting the increase in output current.
If the op amp gain Av is large, only a very small difference V1 - V2 is sufficient to generate the needed base voltage VB for Q2, namely
Consequently, the currents in the two leg resistors are held nearly the same, and the output current of the mirror is very nearly the same as the collector current IC1 in Q1, which in turn is set by the reference current as
where β1 for transistor Q1 and β2 for Q2 differ due to the Early effect if the reverse bias across the collector-base of Q2 is non-zero.
Output resistance
An idealized treatment of output resistance is given in the footnote.[10] A small-signal analysis for an op amp with finite gain Av but otherwise ideal is based upon Figure 5 (β, rO and rπ refer to Q2). To arrive at Figure 5, notice that the positive input of the op amp in Figure 3 is at AC ground, so the voltage input to the op amp is simply the AC emitter voltage Ve applied to its negative input, resulting in a voltage output of −Av Ve. Using Ohm's law across the input resistance rπ determines the small-signal base current Ib as:
Combining this result with Ohm's law for RE, Ve can be eliminated, to find:[11]
Kirchhoff's voltage law from the test source IX to the ground of RE provides:
Substituting for Ib and collecting terms the output resistance Rout is found to be:
For a large gain Av >> rπ / RE the maximum output resistance obtained with this circuit is
a substantial improvement over the basic mirror where Rout = rO.
The small-signal analysis of the MOSFET circuit of Figure 4 is obtained from the bipolar analysis by setting β = gm rπ in the formula for Rout and then letting rπ → ∞. The result is
This time, RE is the resistance of the source-leg MOSFETs M3, M4. Unlike Figure 3, however, as Av is increased (holding RE fixed in value), Rout continues to increase, and does not approach a limiting value at large Av.
Compliance voltage
For Figure 3, a large op amp gain achieves the maximum Rout with only a small RE. A low value for RE means V2 also is small, allowing a low compliance voltage for this mirror, only a voltage V2 larger than the compliance voltage of the simple bipolar mirror. For this reason this type of mirror also is called a wide-swing current mirror, because it allows the output voltage to swing low compared to other types of mirror that achieve a large Rout only at the expense of large compliance voltages.
With the MOSFET circuit of Figure 4, like the circuit in Figure 3, the larger the op amp gain Av, the smaller RE can be made at a given Rout, and the lower the compliance voltage of the mirror.
Other current mirrors
There are many sophisticated current mirrors that have higher output resistances than the basic mirror (more closely approach an ideal mirror with current output independent of output voltage) and produce currents less sensitive to temperature and device parameter variations and to circuit voltage fluctuations. These multi-transistor mirror circuits are used both with bipolar and MOS transistors. These circuits include:
References
- ↑ Paul R. Gray, Paul J. Hurst, Stephen H. Lewis, Robert G. Meyer (2001). Analysis and Design of Analog Integrated Circuits, Fourth Edition. New York: Wiley. ISBN 0471321680.
- ↑ Gray et al.. Eq. 1.165, p. 44. ISBN 0471321680.
- ↑ Keeping the output resistance high means more than keeping the MOSFET in active mode, because the output resistance of real MOSFETs only begins to increase on entry into the active region, then rising to become close to maximum value only when VDG ≥ 0 V.
- ↑ R. Jacob Baker (2008). CMOS Circuit Design, Layout and Simulation, Revised Second Edition. New York: Wiley-IEEE, p. 297, §9.2.1 and Figure 20.28, p. 636. ISBN 978-0-470-22941-5.
- ↑ NanoDotTek Report NDT14-08-2007, 12 August 2007 [1]
- ↑ Gray et al.. p. 44. ISBN 0471321680.
- ↑ R. Jacob Baker. § 20.2.4 pp. 645–646. ISBN 978-0-470-22941-5.
- ↑ Ivanov VI and Filanovksy IM (2004). Operational amplifier speed and accuracy improvement: analog circuit design with structural methodology, The Kluwer international series in engineering and computer science, v. 763. Boston, Mass.: Kluwer Academic. ISBN 1-4020-7772-6.
- ↑ W. M. C. Sansen (2006). Analog design essentials. New York ; Berlin: Springer. ISBN 0-387-25746-2.
- ↑ An idealized version of the argument in the text, valid for infinite op amp gain, is as follows. If the op amp is replaced by a nullor, voltage V2 = V1, so the currents in the leg resistors are held at the same value. That means the emitter currents of the transistors are the same. If the VCB of Q2 increases, so does the output transistor β because of the Early effect: β = β0 ( 1 + VCB / VA ). Consequently the base current to Q2 given by IB = IE / (β + 1) decreases and the output current Iout = IE / (1 + 1 / β) increases slightly because β increases slightly. Doing the math,
- ↑ Notice that as Av → ∞, Ve → 0 and Ib → IX.