C6 · Lesson 3 · Current mirrors
Copying a current, and making it stay put
Inside an integrated circuit, resistors are large and imprecise but transistors are small, cheap and closely matched. So chips bias everything with currents copied from one reference by current mirrors: one transistor sets a or for a known current, and every transistor sharing that voltage carries the same current, or a chosen multiple of it. A mirror is also a nearly ideal current source, with an output resistance far higher than any resistor you could fit, and that's what lets a single stage reach gains in the thousands (lesson 4).
- A BJT mirror: a reference current of about 1 mA flows through the diode-connected ; shares its base-emitter voltage and copies the current into a load .
- Sweep : the output current hardly changes, rising slightly as 's collector voltage rises (the Early effect), until is so large that saturates.
- That near-constant current over a wide range of voltages is what a current source is.
Predict
A BJT mirror (β = 100, = 50 V) has 1 mA of reference current. Its output transistor sits at = 5.4 V. About what does it carry?
About 1.07 mA. The two base currents take 2% from the reference, giving 0.98 mA at equal collector voltages; but the output transistor's collector is 4.7 V higher than the reference transistor's, and the Early effect adds about 9%. Mirrors are accurate to a few percent unless the output's voltage is held close to the input's.
Name it
The basic mirror
is diode-connected, so the reference current sets its ; has the same , so if the two match it carries the same collector current. The base currents come out of the reference, so for BJTs
For MOSFETs there's no gate current, and the copy scales with size:
Output resistance: , which is or : tens of kilohms to megohms.
Compliance: the output keeps working only while stays active: 0.3 V, or .
Better mirrors
- Cascode mirror: a second transistor stacked on the output holds 's voltage still, multiplying the output resistance by about : for MOSFETs (about for BJTs). It costs headroom: about at the output.
- Wilson mirror: feedback around three BJTs cancels most of the base-current error and raises .
- Widlar source: a resistor in the output transistor's emitter makes a small current from a large reference without a huge resistor, since .
Worked example
A MOSFET mirror copies 100 µA into a device four times wider, with λ = 0.05 V⁻¹, = 0.8 V and the output at 2 V. What comes out, and what does a cascode do to its output resistance?
Show the solution
- Output current. The width ratio multiplies the reference by 4, and at each side adds the rest:
- Transconductance. With = 0.2 V,
- Simple mirror's output resistance. so the simple mirror's = 50 kΩ.
- With a cascode.
Answer 423 µA comes out, and a cascode raises the output resistance from 50 kΩ to about 10 MΩ.
Worked example
A Widlar source must make 10 µA from a 1 mA reference. What emitter resistor?
Show the solution
- Emitter resistor.
- Compare a plain mirror. A plain mirror would need an output transistor a hundred times smaller than the reference, or a reference resistor of about 1 MΩ.
Answer an 11.9 kΩ emitter resistor.
Worked example
A BJT mirror uses transistors with β = 50. How large is the base-current error of a simple mirror, and of one with a beta helper (an emitter follower that supplies the bases)?
Show the solution
- Simple mirror. It loses the two base currents from the reference: which is 3.8% low.
- With a beta helper. The reference only has to supply the follower's base current, which is times smaller: which is 0.08% low.
- What the helper costs. It takes one more of headroom at the reference. Power transistors and lateral PNPs, with low β, are where it matters most.
Answer the simple mirror's output is 3.8% low, and the beta helper cuts the error to 0.08%.
Check
A matched BJT mirror with β = 50 has 0.1 mA of reference current. Ignoring the Early effect, what does it copy?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
A BJT mirror (β = 100, = 30 V) copies 1 mA, with its output at = 10 V and = 0.7 V. What does it carry?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
A MOSFET mirror's reference device is 2 µm wide and its output device 80 µm wide (same length). With 10 µA in, λ = 0.1 V⁻¹, = 0.7 V and the output at 1 V, what comes out?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
What output resistance does a basic BJT mirror ( = 25 V) have at 0.01 mA?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
A MOSFET cascode mirror carries 0.05 mA with 0.15 V of overdrive and λ = 0.1 V⁻¹. What is its output resistance?
Write units the way you normally would: 1.5 MΩ, 1500 kΩ and 0.0015 GΩ are the same answer.
Check
A Widlar source makes 5 µA from 0.5 mA. What emitter resistor does it need?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
How low can a MOSFET cascode mirror's output go ( = 0.4 V, 0.15 V of overdrive) before it stops working?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A BJT mirror with β = 50 has a 0.1 mA reference.
(a)
What does a simple mirror deliver?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
(b)
What's the percentage error of one with a beta helper?
Check
A Widlar source makes a small current J from a reference I, at thermal voltage T.
Step 1
What voltage must the emitter resistor drop?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What emitter resistor?
Step 3
How many times the output transistor's is that?
Explain why
Why does a current mirror depend on the transistors being matched?
A mirror doesn't measure the reference current and copy it; it copies a voltage. The reference current sets the diode-connected transistor's or , and the output transistor, sharing that voltage, carries whatever current that voltage produces in it. That's the same current only if the two transistors follow the same law, with the same or K and threshold. Transistors made side by side on one chip match to a fraction of a percent, which is why mirrors are the standard way to bias integrated circuits, and why they work poorly with separate discrete transistors.
Practice
Keep practicing
11 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.