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.

DC sweepOne Transistor and 20 kΩ, Without and with an Op-AmpOutput current against the control voltage. The target is Vin/20 kΩ.
  • control on the gate
  • op-amp drives the gate
05 µA10 µA15 µA20 µA25 µA30 µA35 µA40 µA45 µAOutput current0100 mV200 mV300 mV400 mV500 mV600 mV700 mV800 mVControl voltage0.4 V5.54 µA39.91 µA010 µA20 µA30 µA40 µA50 µAOutput current0200 mV400 mV600 mV800 mVControl voltage0.4 V5.54 µA39.91 µA
  1. 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.

  2. 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 voltagecontrol on the gateop-amp drives the gate
0 V1.517 pA1.517 pA
100 mV5.746 pA4.961 µA
200 mV67.97 pA9.953 µA
300 mV969.4 pA14.95 µA
400 mV13.27 nA19.94 µA
500 mV147.8 nA24.93 µA
600 mV938.2 nA29.92 µA
700 mV2.857 µA34.92 µA
800 mV5.536 µA39.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

Source Degeneration as a Series-Series LoopThe NMOS body is at ground. Dots show the output current.
Source degeneration as a series-series loop+VG​M14/0.5RS​20 kΩouts
  1. V_G · voltage source+ → n1 · − → 0
  2. M1 · NMOS transistor4/0.5gate → n1 · drain → n2 · source → s
  3. R_S · resistor20 kΩpin 1 → s · pin 2 → 0
  4. g1 · groundgnd → 0
  5. g2 · groundgnd → 0
  6. out · portterminal → n2
  1. Sense the current

    All of the output current crosses RS. So vs = iout·RS: the resistor measures the current.

    iout · iout

  2. Return a voltage

    The transistor answers to vg − vs. The sensed voltage subtracts from the input, in series with it.

  3. 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 µAOutput resistanceTransconductance
Source held still468.0 kΩ—
20 kΩ in the source3.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

The V-to-I ConverterAn op-amp, a pass transistor and a sense resistor.
The V-to-I converter+−+Vin​0.4 VAM14/0.5RS​20 kΩouts0.399 V
  1. V_in · voltage source0.4 V+ → n1 · − → 0
  2. A · op-amp−in → s · +in → n1 · out → n2
  3. M1 · NMOS transistor4/0.5gate → n2 · drain → n3 · source → s
  4. R_S · resistor20 kΩpin 1 → s · pin 2 → 0
  5. g1 · groundgnd → 0
  6. g2 · groundgnd → 0
  7. out · portterminal → n3
  1. Compare

    The op-amp compares Vin with the voltage on RS. It drives the gate with A times the difference.

  2. The current follows the input

    With a large A the difference is tiny, so vs ≈ Vin. Then Iout = Vin/RS.

    Iout · Iout · Vin/RS

  3. 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.

Once Around the V-to-I LoopArrows show the signal path.
  • Source
  • Device
  • Load
  • Neutral
  • Data
Once around the V-to-I loopArrows show the signal path. source Control voltage V_in = 0.4 V device Op-amp A times thedifference device Pass transistor M1 carries I_out load Load at the out pin device Sense resistor R_S = 20 kΩ neutral Returned voltage v_s = I_out·R_S Vingate voltageIoutsame IoutIout·RSsubtracts
  1. source Control voltageV_in = 0.4 V
    • Vin → Op-amp
  2. device Op-ampA times the difference
    • gate voltage → Pass transistor
  3. device Pass transistorM1 carries I_out
    • Iout → Load
    • same Iout → Sense resistor
  4. device Sense resistorR_S = 20 kΩ
    • Iout·RS → Returned voltage
  5. neutral Returned voltagev_s = I_out·R_S
    • subtracts → Op-amp
  6. load Loadat the out pin
  1. Forward

    The op-amp amplifies the difference and drives the gate. M1 turns the gate voltage into Iout.

  2. Sense

    All of Iout crosses RS. The resistor turns the current into the voltage vs.

  3. Return

    vs subtracts from Vin at the op-amp input. With a large A the two are almost equal.

  4. 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 gainCurrent at 0.4 VTransconductance errorOutput resistance
1014.61 µA12.6 %30.42 MΩ
10019.39 µA1.37 %243.0 MΩ
100019.94 µA0.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.

DC sweepOutput Current Against Output VoltageBoth are set to 19.94 µA at 1.2 V. The op-amp output cannot pass 1.8 V here.
  • degenerated transistor
  • V-to-I converter
-5 µA05 µA10 µA15 µA20 µA25 µAOutput current00.2 V0.4 V0.6 V0.8 V1.0 V1.2 V1.4 V1.6 V1.8 VOutput voltage−1 % at 0.41 V−1 % at 0.72 V-5 µA05 µA10 µA15 µA20 µA25 µAOutput current00.5 V1.0 V1.5 VOutput voltage−1 % at 0.41 V−1 % at 0.72 V
  1. 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.

  2. 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.

  3. 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.

  4. 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 voltagedegenerated transistorV-to-I converter
0 V0 A0 A
200 mV9.357 µA9.707 µA
400 mV17.19 µA19.26 µA
410 mV17.47 µA19.73 µA
600 mV19.61 µA19.94 µA
725 mV19.74 µA19.94 µA
800 mV19.79 µA19.94 µA
1 V19.87 µA19.94 µA
1.2 V19.94 µA19.94 µA
1.4 V20 µA19.94 µA
1.6 V20.05 µA19.94 µA
1.8 V20.1 µA19.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

A Shunt-Series Current AmplifierThe input current is pulled out of node n. The output current is the drain current of M1.
A shunt-series current amplifier−+iin​2 µAAM1R110 kΩR290 kΩoutns0.179 V
  1. i_in · current source2 µA+ → n · − → 0
  2. A · op-amp−in → n · +in → 0 · out → n1
  3. M1 · NMOS transistorgate → n1 · drain → n2 · source → s
  4. R1 · resistor10 kΩpin 1 → s · pin 2 → 0
  5. R2 · resistor90 kΩpin 1 → s · pin 2 → n
  6. g1 · groundgnd → 0
  7. g2 · groundgnd → 0
  8. g3 · groundgnd → 0
  9. out · portterminal → n2
  1. The input current crosses R2

    The loop holds node n at 0 V. So iin must come through R2, and vs = iin·R2.

    iin

  2. R1 adds nine times more

    The same vs sits on R1, which is nine times smaller. It carries 9·iin.

    9·iin

  3. 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.

QuantityIdealMeasured
Current gain109.985
Input resistance0148.0 Ω
Output resistanceinfinite1.280 GΩ

With 2 µA in, the output is 19.90 µA. The op-amp gain is 1000.

The Regulated Cascode

The Regulated CascodeM3 and its 10 µA load form a small amplifier around M2.
The regulated cascodeVDDIB​10 µAM3M2M1Vboutx0.698 V
  1. VDD · supplyvdd → VDD
  2. I_B · current source10 µA+ → VDD · − → n1
  3. M3 · NMOS transistorgate → x · drain → n1 · source → 0
  4. M2 · NMOS transistorgate → n1 · drain → n2 · source → x
  5. M1 · NMOS transistorgate → n3 · drain → x · source → 0
  6. Vb · portterminal → n3
  7. g1 · groundgnd → 0
  8. g2 · groundgnd → 0
  9. out · portterminal → n2
  1. M1 is the sense resistor

    The output current crosses M1. A change of current moves vx by that change times ro1.

    iout · iout

  2. M3 amplifies and returns

    M3 amplifies vx and drives the gate of M2. M2 then pulls vx back.

  3. 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.

SinkOutput resistanceCurrentv_x
Plain cascode (E3.7)40.76 MΩ18.36 µA379.5 mV
Regulated cascode6.289 GΩ19.22 µA697.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
  1. 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.

  2. 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.

  3. 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.

  4. 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?

SPICEngspice 42 · simulator service
Edit the netlist, then run it
Expected measurements: 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+02

Check Yourself

Predict the outputThis V-to-I converter uses a linear transistor model: gm = 1 mS, no body effect and no ro. RS is 1 kΩ and the op-amp gain is 98. Type the line meas prints for the transconductance iout/vin (format: gm = 1.234567e-04).
* a V-to-I converter with a linear transistor model: g_m = 1 mS, no body effect, no r_o
VIN in 0 DC 0 AC 1
VD d 0 DC 0 AC 0
GM d s g s 1m
RS s 0 1k
EA g 0 in s 98
.control
ac dec 5 100 10k
let g=mag(i(VD))
meas ac gm FIND g AT=1k
.endc
.end
ConceptRead the compliance plot. The converter runs with 0.4 V on its 20 kΩ resistor. How low can the output go before the current is 1 % low?
ConceptWith an op-amp gain of 100 the converter delivers 19.39 µA, not 20 µA. That is 3.0 % low, but the transconductance error is only 1.4 %. What sets the 3.0 %?
ConceptA designer mirrors the pass transistor: a second NMOS shares its gate, has its source at ground, and delivers the output. What is lost?
ConceptThe regulated cascode measures 154 times the output resistance of the plain cascode. What pays for it?

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.

Practice

Report a problem with this page