Current Feedback: The V-to-I Converter and the Current Amplifier
Sense the output current, feed it back, and build a current that a voltage sets and the load cannot change.
You Will Be Able To
- Explain source degeneration as a series-series loop that raises the output resistance.
- Predict the transconductance error and the output resistance of an op-amp V-to-I converter from its loop gain.
- Build a current amplifier whose gain is a resistor ratio.
- Recognise the regulated cascode as a loop that senses current.
- Lesson
- E10.4
- Time
- 35 min
- Runs on
- ngspice
- Check
- 5 questions
A bias block needed 50 µA per volt of control. The control voltage drove a gate with 20 kΩ under the source. At 0.8 V it delivered 5.54 µA, not 40 µA.
- control on the gate
- op-amp drives the gate
- Control voltage 400 mVcontrol on the gate = 13.27 nA · op-amp drives the gate = 19.94 µA
At 0.4 V the target is 20 µA. The plain transistor is still off: 13 nA. The op-amp loop gives 19.94 µA.
- Control voltage 800 mVcontrol on the gate = 5.536 µA · op-amp drives the gate = 39.91 µA
At 0.8 V the plain transistor gives 5.54 µA, and its slope is 29.2 µA/V. The loop gives 39.91 µA at 49.9 µA/V.
Read the plot as a table
| Control voltage | control on the gate | op-amp drives the gate |
|---|---|---|
| 0 V | 1.517 pA | 1.517 pA |
| 100 mV | 5.746 pA | 4.961 µA |
| 200 mV | 67.97 pA | 9.953 µA |
| 300 mV | 969.4 pA | 14.95 µA |
| 400 mV | 13.27 nA | 19.94 µA |
| 500 mV | 147.8 nA | 24.93 µA |
| 600 mV | 938.2 nA | 29.92 µA |
| 700 mV | 2.857 µA | 34.92 µA |
| 800 mV | 5.536 µA | 39.91 µA |
Same transistor, same resistor. Only the loop gain differs.
Both circuits sense the current with the same resistor, but only the second has enough loop gain to obey it.
A Resistor in the Source Is a Loop
- Sense the current
All of the output current crosses RS. So vs = iout·RS: the resistor measures the current.
iout · iout
- Return a voltage
The transistor answers to vg − vs. The sensed voltage subtracts from the input, in series with it.
- The result
More current raises vs, which turns the transistor down. The loop resists any change of current.
iout
Read the circuit as text
- V_G voltage source: + →
n1, − →0 - M1 NMOS transistor (4/0.5): gate →
n1, drain →n2, source →s - R_S resistor (20 kΩ): pin 1 →
s, pin 2 →0 - out port: terminal →
n2
Sense current, return voltage: series-series.
E10.1 named this loop series-series. A series connection raises a port resistance by 1 + T, where T is the loop gain.
Here T = (gm + gmb)·RS, about 6. E10.1 measured 4.00 times with 10 kΩ. The lab uses 20 kΩ.
| M1 at 19.94 µA | Output resistance | Transconductance |
|---|---|---|
| Source held still | 468.0 kΩ | — |
| 20 kΩ in the source | 3.280 MΩ | 36.05 µS |
The ratio is ratio_degen = 7.008225e+00.
The output resistance rose 7 times. But the transconductance is 36.1 µA/V, 28 % under 1/RS = 50 µA/V.
Two things cause that error. A loop gain of 6 leaves 1/(1 + T), about 14 %. The body effect takes the rest: only gm of gm + gmb drives the output, a factor of 0.84.
The Op-Amp V-to-I Converter
- Compare
The op-amp compares Vin with the voltage on RS. It drives the gate with A times the difference.
- The current follows the input
With a large A the difference is tiny, so vs ≈ Vin. Then Iout = Vin/RS.
Iout · Iout · Vin/RS
- No current leaks away
The gate and the op-amp input take no current. Every electron of Iout crosses RS.
Iout
Read the circuit as text
- V_in voltage source (0.4 V): + →
n1, − →0 - A op-amp: −in →
s, +in →n1, out →n2 - M1 NMOS transistor (4/0.5): gate →
n2, drain →n3, source →s - R_S resistor (20 kΩ): pin 1 →
s, pin 2 →0 - out port: terminal →
n3
s= 0.399 V
The same series-series loop, with the op-amp gain added to it.
- Source
- Device
- Load
- Neutral
- Data
- Forward
The op-amp amplifies the difference and drives the gate. M1 turns the gate voltage into Iout.
- Sense
All of Iout crosses RS. The resistor turns the current into the voltage vs.
- Return
vs subtracts from Vin at the op-amp input. With a large A the two are almost equal.
- What the load sees
The loop holds Iout at Vin/RS. The load cannot change it: the output resistance rises by 1 + T.
Read the diagram as text
- Control voltage: V_in = 0.4 V
- Op-amp: A times the difference
- Pass transistor: M1 carries I_out
- Load: at the out pin
- Sense resistor: R_S = 20 kΩ
- Returned voltage: v_s = I_out·R_S
- Control voltage → Op-amp: Vin
- Op-amp → Pass transistor: gate voltage
- Pass transistor → Load: Iout
- Pass transistor → Sense resistor: same Iout
- Sense resistor → Returned voltage: Iout·RS
- Returned voltage → Op-amp: subtracts
The loop gain T is the gain once around this path.
The op-amp multiplies the loop gain by A. The lab builds the converter three times.
| Op-amp gain | Current at 0.4 V | Transconductance error | Output resistance |
|---|---|---|---|
| 10 | 14.61 µA | 12.6 % | 30.42 MΩ |
| 100 | 19.39 µA | 1.37 % | 243.0 MΩ |
| 1000 | 19.94 µA | 0.138 % | 2.362 GΩ |
The error is 1 − Gm·RS, with Gm = iout/vin from the AC run.
Ten times the gain gives a tenth of the error and ten times the output resistance. Both follow 1 + T.
By hand, T is A times the gain from the gate to RS. At A = 1000 that is t_hand = 7.215803e+02. The error 1/(1 + T) is err_hand = 1.383929e-01 %.
The DC current has a larger error. The op-amp needs Vgate/A between its inputs. At A = 100 the gate sits at 1.21 V, so RS loses 12 mV: 0.61 µA, or 3.0 %. Gm is a slope, so its error follows only the change of Vgate.
Output Resistance and Compliance
A current source is useful only over a range of output voltage. That range is its compliance.
- degenerated transistor
- V-to-I converter
- Output voltage 410 mVdegenerated transistor = 17.47 µA · V-to-I converter = 19.73 µA
The converter holds its current within 1 % down to 0.41 V. The resistor itself needs 0.4 V.
- Output voltage 600 mVdegenerated transistor = 19.61 µA · V-to-I converter = 19.94 µA
At 0.6 V the converter gives 19.938 µA. The degenerated transistor has dropped to 19.61 µA.
- Output voltage 725 mVdegenerated transistor = 19.74 µA · V-to-I converter = 19.94 µA
The degenerated transistor is 1 % low at 0.72 V already.
- Output voltage 1.2 Vdegenerated transistor = 19.94 µA · V-to-I converter = 19.94 µA
At 1.2 V both give 19.94 µA.
Read the plot as a table
| Output voltage | degenerated transistor | V-to-I converter |
|---|---|---|
| 0 V | 0 A | 0 A |
| 200 mV | 9.357 µA | 9.707 µA |
| 400 mV | 17.19 µA | 19.26 µA |
| 410 mV | 17.47 µA | 19.73 µA |
| 600 mV | 19.61 µA | 19.94 µA |
| 725 mV | 19.74 µA | 19.94 µA |
| 800 mV | 19.79 µA | 19.94 µA |
| 1 V | 19.87 µA | 19.94 µA |
| 1.2 V | 19.94 µA | 19.94 µA |
| 1.4 V | 20 µA | 19.94 µA |
| 1.6 V | 20.05 µA | 19.94 µA |
| 1.8 V | 20.1 µA | 19.94 µA |
Near the edge the op-amp raises the gate to keep the current: 1.33 V at 0.45 V.
The sense resistor takes headroom. Its voltage is Vin, and the output cannot go below it.
The Current Amplifier
- The input current crosses R2
The loop holds node n at 0 V. So iin must come through R2, and vs = iin·R2.
iin
- R1 adds nine times more
The same vs sits on R1, which is nine times smaller. It carries 9·iin.
9·iin
- M1 carries the sum
Both currents come through M1. So iout = iin·(1 + R2/R1) = 10·iin.
10·iin · iin
Read the circuit as text
- i_in current source (2 µA): + →
n, − →0 - A op-amp: −in →
n, +in →0, out →n1 - M1 NMOS transistor: gate →
n1, drain →n2, source →s - R1 resistor (10 kΩ): pin 1 →
s, pin 2 →0 - R2 resistor (90 kΩ): pin 1 →
s, pin 2 →n - out port: terminal →
n2
s= 0.179 V
It returns a current to the input node (shunt) and senses the output current (series).
Shunt at the input lowers the input resistance. Series at the output raises the output resistance. Both suit a current amplifier.
| Quantity | Ideal | Measured |
|---|---|---|
| Current gain | 10 | 9.985 |
| Input resistance | 0 | 148.0 Ω |
| Output resistance | infinite | 1.280 GΩ |
With 2 µA in, the output is 19.90 µA. The op-amp gain is 1000.
The Regulated Cascode
- M1 is the sense resistor
The output current crosses M1. A change of current moves vx by that change times ro1.
iout · iout
- M3 amplifies and returns
M3 amplifies vx and drives the gate of M2. M2 then pulls vx back.
- The result
With vx held still, the current in M1 cannot change. The output resistance rises by about the gain of M3.
Read the circuit as text
- I_B current source (10 µA): + →
VDD, − →n1 - M3 NMOS transistor: gate →
x, drain →n1, source →0 - M2 NMOS transistor: gate →
n1, drain →n2, source →x - M1 NMOS transistor: gate →
n3, drain →x, source →0 - Vb port: terminal →
n3 - out port: terminal →
n2
x= 0.698 V
A series-series loop inside a cascode.
| Sink | Output resistance | Current | v_x |
|---|---|---|---|
| Plain cascode (E3.7) | 40.76 MΩ | 18.36 µA | 379.5 mV |
| Regulated cascode | 6.289 GΩ | 19.22 µA | 697.7 mV |
Same sizes, 4/0.5, and the same gate voltage on M1.
The regulated cascode has ratio_reg = 1.542883e+02 times the output resistance. The gain of M3 alone is a3 = 1.669670e+02.
There is a cost. Node x now rests at VGS3, 0.70 V, so M1 uses more headroom than it needs.
Asked in interviews
Why does source degeneration raise the output resistance?
The output current crosses the source resistor and raises the source voltage. That lowers vgs and opposes the change. It is series-series feedback, so the resistance rises by 1 + (gm + gmb)·RS.
What sets the accuracy of an op-amp V-to-I converter?
The sense resistor and the loop gain. The transconductance is (1/RS)·T/(1 + T). Op-amp offset adds directly to the voltage on RS, and the op-amp gain must hold the gate voltage.
What limits the output range of such a current sink?
The output must stay above the sense voltage plus the VDS that the pass transistor needs. Below that the current falls. The lab holds 1 % down to 0.41 V with 0.4 V on the resistor.
How does a regulated cascode get its high output resistance?
An amplifier watches the drain of the bottom transistor and drives the cascode gate. It holds that drain still, so the current cannot change. The resistance rises by about the amplifier gain: 154 times here.
Try It
Every output hangs on the 1.2 V source VOUT. A 0 V source in each branch reads that branch's current.
Run 1 puts 1 V of AC on the inputs, so each branch current is a transconductance. For the current amplifier the input is 1 A of AC, so the branch current is the current gain.
Run 2 puts 1 V of AC on VOUT with the inputs quiet. One over each branch current is that output resistance.
The let one=1+0*vm(o) lines copy operating-point values into the AC plot, because meas reads only analysis vectors.
Predict before each change. Set a=100 on XAC: what are the new current gain and input resistance? Change IR3 to 2u: does the regulated cascode gain or lose output resistance?
Run the netlist to draw its plots here.
i_10 = 1.460577e-05 i_100 = 1.939293e-05 i_1000 = 1.993854e-05 gm_degen = 3.605363e-05 gm_10 = 4.370977e-05 gm_100 = 4.931403e-05 gm_1000 = 4.993076e-05 err_10 = 1.258046e+01 err_100 = 1.371941e+00 err_1000 = 1.384886e-01 t_hand = 7.215803e+02 err_hand = 1.383929e-01 ai = 9.985200e+00 rin_c = 1.479612e+02 ro_bare = 4.680402e+05 ro_degen = 3.280131e+06 ratio_degen = 7.008225e+00 ro_10 = 3.041876e+07 ro_100 = 2.429695e+08 ro_1000 = 2.361911e+09 ro_ca = 1.279565e+09 ro_casc = 4.076057e+07 ro_reg = 6.288880e+09 ratio_reg = 1.542883e+02 a3 = 1.669670e+02Check Yourself
Common Mistakes
Wrong Put the sense resistor in a branch that the output current does not cross, such as a replica branch.
The loop then controls the replica. The output keeps the plain ro and any mismatch between the branches.
Fix Make the output current itself cross the sense resistor, and feed back the voltage on it.
Wrong Expect I = Vin/RS from any op-amp.
The op-amp needs Vgate/A at its input, and that sets the DC error. With A = 10 the lab gets 14.6 µA for 20 µA.
Fix Find the loop gain you need from the error you allow, then check the current in a run.
Wrong Let the output node fall to the voltage on the sense resistor.
The pass transistor then has no VDS left. The lab loses 1 % at 0.41 V with 0.4 V on RS.
Fix Keep the output above Vin plus a VDS margin, or use a smaller RS and a smaller Vin.
Remember
- Sensing the output current is a series connection. It raises the output resistance by 1 + T.
- A source resistor alone is a weak series-series loop: 7 times the ro, but 28 % of transconductance error.
- An op-amp around the same resistor gives I = Vin/RS. Error and output resistance both scale with the loop gain.
- A current amplifier returns a current to its input and senses its output current. Its gain is 1 + R2/R1.
- A regulated cascode uses the bottom transistor as the sense element and gains about one amplifier gain of output resistance.