100nF

Transimpedance amplifier calculator for a photodiode

The feedback resistor and capacitor of a photodiode amplifier, and the op amp it needs. RF comes from the full-scale current and the output swing; CF either sets the bandwidth, as TI's SBOA268 does, or gives the widest flat response the op amp allows, as SBOA122 does. Enter the photodiode's capacitance and the op amp's input capacitance and gain bandwidth to get the noise-gain corners, the bandwidth and Q of the result, the minimum GBW for stability (11.0 kHz in SBOA268's example), the output offset from bias current and, optionally, the input-referred noise. Or enter a fitted RF and CF and analyse them.

−+V_OUTC_F 150 pFR_F 100 kΩI_PDC_i 6.00 pFC_i = C_D + C_CM + C_DIFFf−3dB 10.6 kHzQ 0.095margin 90°GBW 1.20 MHzSBOA268 floor 11.0 kHz1 kHz10 kHz100 kHz1 MHz10 MHz-40 dB-20 dB0 dB20 dB40 dBZ1 10.2 kHzP1 10.6 kHzf−3dB 10.6 kHzF_C 1.15 MHzGBW 1.20 MHzA_OLnoise gain 1/β|Z_T| / R_Floop crossover
Fig 1 — A photodiode into R_F = 100 kΩ in parallel with C_F = 150 pF, with 6.00 pF at the inverting input, on an op amp of 1.20 MHz GBW. Below, SBOA122's Figure 2 drawn from these values: the noise gain is 1 at DC, rises from Z1 = 10.2 kHz and flattens at P1 = 10.6 kHz to 1 + C_i/C_F = 1.04; the open-loop gain meets it at 1.15 MHz with 90° of phase margin. The transimpedance is flat at R_F to 10.6 kHz (−3 dB), Q = 0.095.
Feedback resistor R_F = (V_oMax − V_oMin) / I_max
100 kΩ
C_F for the bandwidth, SBOA268: 1/(2π·R_F·f_p) · E12 at or below
159 pF · 150 pF
C_F for a flat response, Q = 0.707: exact (SBOA122 Eq 9) · Eq 10 form · E12 at or above
3.76 pF · 3.99 pF · 3.90 pF
C_F fitted, and analysed in the rows that follow
150 pF, for the bandwidth (SBOA268)
Input capacitance C_i = C_D + C_CM + C_DIFF
6.00 pF
Bandwidth f−3dB, with this C_F and op amp
10.6 kHz
Q, SBOA122 Eq 9 · Eq 10 approximation P1/F0
0.095 · 0.096
Noise-gain zero Z1 · pole P1 · high-frequency noise gain 1 + C_i/C_F
10.2 kHz · 10.6 kHz · 1.04 (0.3 dB)
F0 = √(Z1·GBW) · F_C = GBW/(1 + C_i/C_F)
111 kHz · 1.15 MHz
Minimum GBW for stability, SBOA268: (C_i + C_F)/(2π·R_F·C_F²)
11.0 kHz: 1.20 MHz is 109× over
Loop crossover · phase margin, single-pole op amp model
1.15 MHz · 90°
Flat response (SBOA122 Eq 12): GBW needed for 10.0 kHz · widest at this GBW
377 Hz · 564 kHz
Output offset I_B·R_F · output at zero · at full-scale current
800 nV · 0.00 V · 5.00 V

How this is calculated

Standard: TI SBOA268B, Analog Engineer's Circuit: Transimpedance Amplifier Circuit, design steps 1–3; TI SBOA122, Transimpedance Considerations for High-Speed Amplifiers, Figure 2 and Equations 8–13

R1=VoMax−VoMinIiMax,C1≤12×π×R1×fpR_1 = \frac{V_{oMax} - V_{oMin}}{I_{iMax}}, \qquad C_1 \le \frac{1}{2 \times \pi \times R_1 \times f_p}
SBOA268 steps 1 and 2, as printed: "(5V − 0V)/50μA = 100kΩ" and "≤ 159pF ≈ 150pF (Standard Value)". R_1 is R_F and C_1 is C_F. The calculator rounds C_F to the E12 value at or below, as TI does.
GBW>Ci+C12×π×R1×C12,Ci=Cs+Cd+Ccm\text{GBW} > \frac{C_i + C_1}{2 \times \pi \times R_1 \times C_1^{2}}, \qquad C_i = C_s + C_d + C_{cm}
SBOA268 step 3, "the necessary op amp gain bandwidth (GBW) for the circuit to be stable": "(6pF + 150pF)/(2 × π × 100kΩ × (150pF)²) > 11.03kHz", with C_s the source, C_d the differential and C_cm the common-mode input capacitance. It equals P_1·(1 + C_i/C_1): the GBW at which the open-loop gain meets the noise-gain plateau at its corner (derived).
Z1=12πRF(CS+CF),P1=12πRFCF,F0=Z1⋅GBP,FC=GBP1+CSCFZ_1 = \frac{1}{2\pi R_F (C_S + C_F)}, \quad P_1 = \frac{1}{2\pi R_F C_F}, \quad F_0 = \sqrt{Z_1 \cdot \text{GBP}}, \quad F_C = \frac{\text{GBP}}{1 + \dfrac{C_S}{C_F}}
SBOA122 Figure 2 and Equations 8 and 11: the zero and pole of the noise gain 1 + Z_F/Z_G, the closed loop's natural frequency, and where the open-loop gain meets the noise-gain plateau. SBOA122's C_S is the total input capacitance, C_i here.
Q=F0Z1+FC    (Eq 9),Q≈P1F0    (Eq 10),VOID=RF⋅ω02s2+sω0Q+ω02Q = \frac{F_0}{Z_1 + F_C} \;\;\text{(Eq 9)}, \qquad Q \approx \frac{P_1}{F_0} \;\;\text{(Eq 10)}, \qquad \frac{V_O}{I_D} = R_F \cdot \frac{\omega_0^2}{s^2 + s\dfrac{\omega_0}{Q} + \omega_0^2}
SBOA122 Equations 9, 10 and 5. With the op amp modelled as an integrator of gain bandwidth GBP (A_OL → ∞, the limit of SBOA122's simplifications), Eq 8 and 9 are exact and the transimpedance is this second-order low-pass; the calculator uses Eq 9, and shows Eq 10 beside it. The tests check the integrator against Eq 5–7 at finite A_OL.
GBP=2π⋅F−3dB2⋅RFCS\text{GBP} = 2\pi \cdot F_{-3dB}^{2} \cdot R_F C_S
SBOA122 Equation 12: the Butterworth response, "Maximum bandwidth will be achieved for a Butterworth response with Q = 0.707", where the −3 dB bandwidth is F_0. Solved for the GBP a bandwidth needs, or the widest flat bandwidth a GBP gives. SBOA122: 310 kΩ and 200 pF give "2.1MHz" on the OPA846 and "2MHz" on the OPA657.
CF=CSπRF GBP−(12πRF GBP)2  ≈  CSπRF GBPC_F = \sqrt{\frac{C_S}{\pi R_F \,\text{GBP}} - \left(\frac{1}{2\pi R_F \,\text{GBP}}\right)^{2}} \;\approx\; \sqrt{\frac{C_S}{\pi R_F \,\text{GBP}}}
The feedback capacitor for Q = 0.707: Equation 9 set to 1/√2 and solved (derived, not printed in SBOA122). The approximation is what Equations 10 and 11 give with SBOA122's C_S >> C_F simplification of Z_1. The calculator rounds it to the E12 value at or above, which lowers Q.
f−3dB=F0k+k2+1,    k=1−12Q2;PM=90∘+arctan⁡fxP1−arctan⁡fxZ1f_{-3dB} = F_0 \sqrt{k + \sqrt{k^2 + 1}}, \;\; k = 1 - \frac{1}{2Q^2}; \qquad PM = 90^\circ + \arctan\frac{f_x}{P_1} - \arctan\frac{f_x}{Z_1}
Derived. The −3 dB frequency of the second-order response for any Q, and the loop's phase margin at the crossover f_x, where GBP/f_x equals the noise gain |1 + Z_F/Z_G|, in the same single-pole model.
iEQ=iB2+4kTRF+(eNRF)2+(eN2πFCS)23i_{EQ} = \sqrt{i_B^{2} + \frac{4kT}{R_F} + \left(\frac{e_N}{R_F}\right)^{2} + \frac{(e_N 2\pi F C_S)^{2}}{3}}
SBOA122 Equation 13: the equivalent input noise current integrated to the post-filter limit F, with "4kT = 16 × 10⁻²¹ J at 290 degrees Kelvin". SBOA122 §5 gives 5 pA/√Hz for the OPA657 and 3 pA/√Hz for the OPA846 at 1.4 MHz. The RMS noise over 0 to F is i_EQ·√F at the input and R_F times that at the output (derived).
VOS,out=IB⋅RFV_{OS,out} = I_B \cdot R_F
The bias current through the feedback resistor. SBOA122 §6: "The input bias current of the OPA846, 19μA, generates an output offset voltage with the feedback resistor of 310kΩ of 5.89V."

Assumptions

What sets a transimpedance amplifier's gain and bandwidth

A photodiode is a current source: the current is proportional to the light, and the voltage across the diode should not move with it. A transimpedance amplifier gives it that. The photodiode drives the inverting input of an op amp, the non-inverting input sits at a fixed voltage, and a resistor RF from the output back to the inverting input carries the whole photocurrent. The loop holds the inverting input at the non-inverting voltage, so the diode sees a constant bias and the output moves by I·RF. TI's SBOA268 puts it as "The current to voltage gain is based on the feedback resistance. The circuit is able to maintain a constant voltage bias across the input source as the input current changes which benefits many sensors." So the gain, in volts per amp, is RF itself, and choosing it is arithmetic: the output span over the full-scale current.

The bandwidth is where it gets interesting, because the circuit has a capacitor at its input it did not ask for. The photodiode's junction capacitance, the op amp's common-mode and differential input capacitance and the board all sit from the inverting input to AC ground. Call their sum Ci. The op amp sees its output fed back through RF into Ci: a low-pass network in the feedback path, which adds phase lag to the loop much as a capacitive load on the output does. TI's SBOA122 writes this as a noise gain, the gain the op amp applies to its own input noise and the reciprocal of the feedback factor β: 1 + ZF/ZG, with ZF = RF ∥ CF and ZG the impedance of the input capacitance. It is 1 at DC, rises from a zero Z1 = 1/(2π·RF(Ci + CF)), and levels off at 1 + Ci/CF above a pole P1 = 1/(2π·RF·CF).

Without a feedback capacitor, P1 does not exist: the noise gain keeps rising at 20 dB per decade until it meets the op amp's open-loop gain, which is falling at 20 dB per decade, and the two close at 40 dB per decade with little phase to spare. SBOA122: "only the feedback capacitor (CF) and the source capacitance (CS) are used for stability". On SBOA268's own parts, 100 kΩ, 6 pF of op amp input capacitance and a 1.2 MHz OPA170, removing the 150 pF feedback capacitor leaves a response with Q = 2.13, which peaks 6.8 dB at 532 kHz, from a loop with 26° of phase margin in a single-pole model of the op amp.

With CF fitted, the circuit is a second-order low-pass. SBOA122 models the op amp with one pole and derives the closed loop exactly (its Equations 5 to 7), then simplifies: the natural frequency is F0 = √(Z1·GBP), and Q = F0/(Z1 + FC), where FC = GBP/(1 + CS/CF) is where the open-loop gain meets the noise gain's plateau. With the op amp treated as an integrator of gain bandwidth GBP, those two equations are exact, and the calculator uses them. SBOA122 then drops Z1 beside FC to reach its "easier-to-use" Q = P1/F0; the calculator shows that too, and the difference between them is a measure of how far a design is from the note's assumptions.

Photodiode amplifier bandwidth: the widest flat response by RF, Ci and GBW

The widest bandwidth a transimpedance stage can have without peaking, for a given resistor, input capacitance and op amp, and the feedback capacitor that gets it. Each cell is the −3 dB bandwidth at Q = 0.707, SBOA122's Butterworth response, with the exact CF beneath it; fit the E12 value at or above that capacitance, which lowers Q and the bandwidth a little. Ci is the whole input capacitance, photodiode and op amp together.

RF, CiGBW 1.00 MHzGBW 10.0 MHzGBW 100 MHz
10.0 kΩ, 10.0 pF939 kHz
CF 8.06 pF
3.21 MHz
CF 5.41 pF
11.6 MHz
CF 1.78 pF
10.0 kΩ, 100 pF321 kHz
CF 54.1 pF
1.16 MHz
CF 17.8 pF
3.88 MHz
CF 5.64 pF
100 kΩ, 10.0 pF321 kHz
CF 5.41 pF
1.16 MHz
CF 1.78 pF
3.88 MHz
CF 0.564 pF
100 kΩ, 100 pF116 kHz
CF 17.8 pF
388 kHz
CF 5.64 pF
1.25 MHz
CF 1.78 pF
1.00 MΩ, 10.0 pF116 kHz
CF 1.78 pF
388 kHz
CF 0.564 pF
1.25 MHz
CF 0.178 pF
1.00 MΩ, 100 pF38.8 kHz
CF 5.64 pF
125 kHz
CF 1.78 pF
398 kHz
CF 0.564 pF
10.0 MΩ, 10.0 pF38.8 kHz
CF 0.564 pF
125 kHz
CF 0.178 pF
398 kHz
CF 0.0564 pF
10.0 MΩ, 100 pF12.5 kHz
CF 1.78 pF
39.8 kHz
CF 0.564 pF
126 kHz
CF 0.178 pF

The bandwidth goes roughly as the square root of GBW/(RF·Ci), so each tenfold step in GBW, gain or capacitance moves it by about √10. With CF kept in the sums the steps are not exact: at 1 MΩ and 10 pF, ten times the GBW buys 3.34 times the bandwidth, and ten times the gain costs a factor of 2.99. That is SBOA122's Equation 12, GBP = 2π·F−3dB²·RF·CS, which the note offers both ways round: "Knowing the bandwidth required by the application, the photodiode capacitance, and the transimpedance gain specification, calculate the minimum GBP requirement for the amplifier", or "Knowing the amplifier, the transimpedance gain, and the photodiode capacitance, calculate the maximum achievable bandwidth". Equation 12 takes Z1 as 1/(2π·RF·CS), leaving the feedback capacitor out of it, which is SBOA122's own simplification "CS >> CF". Where that does not hold, as at low gain with little input capacitance, Equation 12 reads high: by up to 34 % in this table, at 10.0 kΩand 10.0 pF. The table and the calculator keep CF in.

Worked example: TI's SBOA268, 0 to 50 µA into 0 to 5 V

SBOA268 is one of TI's Analog Engineer's Circuits: a photodiode-style current of 0 to 50 µA into 0 to 5 V, with a 10 kHz bandwidth, on ±15 V, around an OPA170. Its three design steps are "Select the gain resistor", "Select the feedback capacitor to meet the circuit bandwidth" and "Calculate the necessary op amp gain bandwidth (GBW) for the circuit to be stable". It takes the input capacitance as "Ci = Cs + Cd + Ccm", the source plus the op amp's differential and common-mode capacitance, with the source an ideal current source at 0 pF. The left column is the calculator's arithmetic; the right is what TI prints.

gain      R_F = (5 V − 0 V) / 50 µA                = 100 kΩ     TI: 100kΩ
C_F       C_F ≤ 1 / (2π × 100 kΩ × 10 kHz)         = 159 pF     TI: 159pF
          E12 value at or below                    = 150 pF     TI: 150pF
C_i       C_s + C_d + C_cm = 0 + 3 pF + 3 pF       = 6.00 pF    TI: 6pF
GBW       (6 pF + 150 pF) / (2π × 100 kΩ × (150 pF)²) = 11.0 kHz   TI: 11.03kHz
fitted    OPA170, GBW 1.2 MHz: margin over the floor = 109×      
corners   Z1 10.2 kHz, P1 10.6 kHz, F0 111 kHz
          F_C 1.15 MHz, Q 0.095
BW        transimpedance −3 dB, single-pole model  = 10.6 kHz   TI: BW = 10.57kHz (simulated)

Every printed figure is reproduced. The 150 pF is the E12 value at or below 159 pF, since the step is an inequality: a smaller capacitor puts the feedback pole higher, so the bandwidth is at least 10 kHz. The OPA170's 1.2 MHz, from the "Design Featured Op Amp" table, clears the 11.03 kHz floor about a hundredfold, and with so much GBW to spare the bandwidth is the feedback pole P1 itself, 10.6 kHz. TI's simulated response marks "BW = 10.57kHz"; the single-pole model gives 10.6 kHz, 0.4 % above it. TI's figure comes from a simulation of the circuit, not from a formula. The simulation's "G=100dB" is 20·log(100 kΩ): the gain in dB relative to 1 Ω. The OPA170's 8 pA bias current through 100 kΩ shifts the output by 800 nV.

The calculator's defaults are this example. Switch the capacitor choice to a flat response and the same parts give CF = 3.76 pF, fitted as 3.90 pF, and a bandwidth of 431 kHz: the most this op amp can do with 100 kΩ and 6 pF, and 41 times what SBOA268 asked for.

The TIA feedback capacitor: two criteria, from two TI notes

The two notes size CF for different reasons, and it is worth being clear which question each answers. SBOA268 sets CF for the bandwidth the signal needs, CF ≤ 1/(2π·RF·fp), and then asks how fast the op amp must be: GBW > (Ci + CF)/(2π·RF·CF²). That floor is P1·(1 + Ci/CF): the GBW at which the open-loop gain meets the noise gain exactly where the noise gain levels off. Above it, the loop closes at 20 dB per decade on the plateau. SBOA122 sets CF for the response instead: "Maximum bandwidth will be achieved for a Butterworth response with Q = 0.707", which is Q = 1/√2 in its Equation 9, solved for CF. Neither note prints that solution; with SBOA122's simplifications it is CF = √(CS/(π·RF·GBP)), and exactly it has a second, small term the calculator keeps.

SBOA268's criterion is a floor, not a design point, and what it leaves depends on how much of the noise gain the input capacitance makes. At exactly the floor, in the same single-pole model:

Ci/CFNoise gain plateauPhase marginQf−3dB / P1
0.041.0489°0.510.66
12.0073°0.670.94
1011.056°0.921.22
10010152°0.991.27
1000100152°1.001.27

SBOA268's own design is the first row: with 6 pF against 150 pF the noise gain barely leaves 1, the loop is close to a plain integrator and the margin close to 90°. What the floor does cost there is bandwidth: an OPA170 exactly at 11.03 kHz would give 7.02 kHz, not 10 kHz, because the op amp's roll-off and the feedback pole coincide. As the input capacitance grows, the same floor leaves less margin, levelling off near 52°, with Q near 1, where SBOA122's Equation 10 puts it, and 1.24 dB of peaking. So the floor is where a design starts to fail, and a real design wants the GBW some way above it, as the OPA170's hundredfold is. A CF from SBOA268's step 2 that is smaller than SBOA122's flat value peaks, whatever the floor says; the calculator reports both capacitors and warns when the fitted one is below the flat one.

High-speed transimpedance design, from SBOA122

SBOA122 is written for wideband photodiode receivers, and its first practical point is about the amplifier: "a unity-gain stable amplifier is not necessary for transimpedance applications. In fact, it is recommended to use a decompensated amplifier instead, because these decompensated amplifiers offer better voltage noise specifications and larger gain bandwidth products than any compensated version." A decompensated part is stable only above a minimum gain (the OPA846 "is stable for gains greater than 7V/V"), and what it must be compared with is the noise gain at the crossover, 1 + Ci/CF, which with a large photodiode and a small CF is well above that.

Its worked circuit is 310 kΩ with 200 pF of source capacitance on ±5 V: "using Equation 12, the OPA846 achieves 2.1MHz while the OPA657 achieves 2MHz". With the GBPs the note gives, 1.75 GHz for the OPA846 and 1.65 GHz for the OPA657, Equation 12 gives 2.12 MHz and 2.06 MHz. The flat CF for the OPA846 is 0.343 pF, and the simplified form gives the same to three figures: at 200 pF against a fraction of a picofarad, CS >> CF holds. That gives 2.12 MHz and a noise gain of 585 at high frequency. Its Figure 3 plots the same equation against gain for 10 pF, and at 1 kΩ its curves start where Equation 12 puts them: 249 MHz, 167 MHz, 162 MHz, 113 MHz for the OPA847, OPA846, OPA657 and OPA843. For §3's example of "RF = 20kΩ, f–3dB = 10MHz" the equation asks for 126 MHz of GBP, which all four clear, and the note says that there "other considerations such as noise or power dissipation must be considered before making the amplifier selection."

Noise is its Equation 13, the equivalent input noise current integrated to a post-filter limit F: iEQ = √(iB² + 4kT/RF + (eN/RF)² + (eN·2πF·CS)²/3). The last term is the op amp's voltage noise times the rising noise gain, and with a large photodiode it dominates. SBOA122 at 1.4 MHz: "the OPA657 yields a 5pA/√Hz equivalent input noise current", "dominated by the third term", and "The OPA846 ... actually yielded a lower equivalent input noise current of 3pA/√Hz." With Table 1's data sheet values and 200 pF plus each amplifier's own capacitance, Equation 13 gives 5.0 pA/√Hz and 3.1 pA/√Hz; the third term is 5.0 pA/√Hz of the OPA657's total, while the OPA846's is led by its 2.8 pA/√Hz current noise, with 1.2 pA/√Hz from the capacitance term.

The note also solves for the gain at which a FET and a bipolar amplifier tie, and says that with a 10 MHz filter and a 10 pF diode "for a resistor lower than 2kΩ, the bipolar amplifier offers a noise advantage". Its Equation 15, as printed, drops the squares on 2π·F and CS that Equation 14 has, and on these numbers has no real solution. Solving Equation 14 itself gives 4.25 kΩ with Table 1's source capacitances of 15.2 pF and 13.8 pF, and 2.08 kΩ with the 10 pF diode alone for both, which is TI's figure. The conclusion is unchanged: at gains well above a few kilohms the FET part is quieter.

And it explains why the quieter OPA846 is still not used at 310 kΩ: "The input bias current of the OPA846, 19μA, generates an output offset voltage with the feedback resistor of 310kΩ of 5.89V. Because the OPA846 is operating on a ±5V power supply, this offset voltage sends the output into saturation." 19 µA × 310 kΩ is 5.89 V. The calculator takes the bias current and the rails for the same check.

Where the model stops being valid

One pole in the op amp. The calculator, like SBOA122's Equation 1, models the op amp as a single pole, and in the limit of large open-loop gain as an integrator of gain bandwidth GBW. The phase margin it reports has nothing in it for any further pole the real amplifier has, so treat it as the best case, and check a design close to SBOA268's floor with the vendor's simulation model, as SBOA268 itself does.

The input capacitance is an estimate. Ci is the sum of three numbers, and SBOA122 notes that "CCM and CDIFF include both the board layout and the op amp parasitic capacitance". A photodiode datasheet states the reverse bias its capacitance is given at; read it at the bias the circuit uses. Everything else on the page scales with it.

DC errors. The model is small-signal. The input bias current flows through RF and appears at the output, and SBOA268's first design note is "Use a JFET or CMOS input op amp with low bias current to reduce DC errors." SBOA122's §6 is the case where that decides the part.

Output swing. The output has to stay in the op amp's linear range: SBOA268's third note is "Operate within the linear output voltage swing (see Aol specification) to minimize non-linearity errors." On a single supply, zero current puts the output at the negative rail, and the second note is the fix: "A bias voltage can be added to the non-inverting input to set the output voltage for 0 A input currents."

The noise equation's assumptions. SBOA122 lists them: the evaluation "is not intended to be used as a spot noise equation for narrowband applications"; "The final signal bandwidth for both the transimpedance design and any post-filtering is greater than 10 times the 1/f noise corner frequency"; "The transimpedance bandwidth is set greater than the post-filtering"; and the non-inverting input's current noise is "either negligible or made negligible by providing adequate bypassing." Outside those, the noise rows of the calculator are an estimate at best.

Common transimpedance amplifier mistakes

Further reading