Skip to content

Electronics · Ch 5 — Operational Amplifiers

Logarithmic and Anti-logarithmic amplifiers

5.7

Logarithmic and Anti-logarithmic amplifiers

Logarithmic amplifier using op-amp

A logarithmic amplifier produces an output proportional to the natural logarithm of the input voltage. In figure 5.7.1 the input ViV_i reaches the inverting terminal (node A) through a resistor RiR_i, the non-inverting terminal is grounded, and a semiconductor diode is placed in the feedback path between node A and the output.

With the ideal op-amp VA=0V_A = 0 and IB=0I_B = 0, KCL at node A gives Ii=If=IDI_i = I_f = I_D, so ViRi=ID\dfrac{V_i}{R_i} = I_D. The voltage across the diode is VD=VA−VO=−VOV_D = V_A - V_O = -V_O. Using Shockley's diode equation ID=Is(eVD/ηVT−1)≈Is eVD/ηVTI_D = I_s\left(e^{V_D/\eta V_T} - 1\right) \approx I_s\,e^{V_D/\eta V_T} (since eVD/ηVT≫1e^{V_D/\eta V_T} \gg 1) and substituting VD=−VOV_D = -V_O:

ViRi=Is e−VO/ηVT⇒e−VO/ηVT=ViIsRi\dfrac{V_i}{R_i} = I_s\,e^{-V_O/\eta V_T} \quad\Rightarrow\quad e^{-V_O/\eta V_T} = \dfrac{V_i}{I_s R_i}

Taking natural logarithms on both sides,

VO=−ηVT log⁡e ⁣(ViIsRi),soVO∝log⁡e(Vi)V_O = -\eta V_T\,\log_e\!\left(\dfrac{V_i}{I_s R_i}\right), \quad\text{so}\quad V_O \propto \log_e(V_i)

[!NOTE]

The official KTBS corrigendum corrects a sign in this derivation: the substituted diode-current step must read e−VO/ηVTe^{-V_O/\eta V_T} (a negative exponent, because VD=−VOV_D = -V_O), not the e+VO/ηVTe^{+V_O/\eta V_T} shown in one printed line on this page. The corrected form is used above and is consistent with the final result.

Anti-logarithmic amplifier using op-amp

An anti-logarithmic amplifier produces an output proportional to the natural antilog (exponential) of the input voltage. In figure 5.7.2 the input ViV_i reaches the inverting terminal through a semiconductor diode, the non-inverting terminal is grounded, and a resistor RfR_f forms the feedback element — the diode and resistor swap roles compared with the log amplifier.

With VA=0V_A = 0 and IB=0I_B = 0, KCL gives Ii=ID=IfI_i = I_D = I_f, and the feedback current is ID=−VORfI_D = -\dfrac{V_O}{R_f}. The diode voltage is VD=−ViV_D = -V_i (since VA=0V_A = 0). Using Shockley's equation ID≈Is eVD/ηVTI_D \approx I_s\,e^{V_D/\eta V_T}:

−VORf=Is eVD/ηVT⇒VO=−IsRf eVD/ηVT,soVO∝antilog(Vi)-\dfrac{V_O}{R_f} = I_s\,e^{V_D/\eta V_T} \quad\Rightarrow\quad V_O = -I_s R_f\,e^{V_D/\eta V_T}, \quad\text{so}\quad V_O \propto \text{antilog}(V_i)

Application: multiplying two signals …

Figure 1Circuit of an op-amp logarithmic amplifier with input resistor Ri and a semiconductor diode in the feedback path.
Fig. 1 — Circuit of an op-amp logarithmic amplifier with input resistor Ri and a semiconductor diode in the feedback path.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Figure 5.7.1 shows the op-amp logarithmic amplifier. The input Vi reaches the inverting terminal (node A) through resistor Ri (current I_i); the non-inverting terminal is grounded. In the feedback path a semiconductor diode is connected between node A and the output, with its anode on the node-A side and cathode toward the output, so the diode current I_f = I_D flows from node A toward the output. The diode voltage V_D is marked across it. The diode' …

Formula 2Output voltage of the op-amp logarithmic amplifier

VO=−ηVT log⁡e ⁣(ViIsRi)V_O = -\eta V_T\,\log_e\!\left(\dfrac{V_i}{I_s R_i}\right), so VO∝log⁡e(Vi)V_O \propto \log_e(V_i). Here IsI_s is the diode reverse-saturation current, η\eta the diode ideality factor and VTV_T the thermal voltage; derived from Shoc …

Figure 3Circuit of an op-amp anti-logarithmic amplifier with a semiconductor diode at the input and feedback resistor Rf.
Fig. 3 — Circuit of an op-amp anti-logarithmic amplifier with a semiconductor diode at the input and feedback resistor Rf.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Figure 5.7.2 shows the op-amp anti-logarithmic amplifier. The input Vi reaches the inverting terminal (node A) through a series semiconductor diode, with its anode on the input side and cathode toward node A, so the current I_D = I_i flows from Vi into node A; the diode voltage V_D is marked across it. The non-inverting terminal is grounded and a feedback resistor Rf connects the output back to node A. The diode …

Formula 4Output voltage of the op-amp anti-logarithmic amplifier

VO=−IsRf eVD/ηVTV_O = -I_s R_f\,e^{V_D/\eta V_T} with VD=−ViV_D = -V_i, so VO∝antilog(Vi)V_O \propto \text{antilog}(V_i). Derived from Shockley's diode equation applied to the input diode. IsI_s is the diode reverse-saturation current, η\eta the ideality factor, VTV_T the thermal voltage and RfR_f the feedback resistor; the input diode's exp …

Figure 5Analog multiplier built from two log amplifiers, an adder and an anti-log amplifier to produce an output proportional to the product of two input signals.
Fig. 5 — Analog multiplier built from two log amplifiers, an adder and an anti-log amplifier to produce an output proportional to the product of two input signals.

Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.

Figure 5.7.3 shows how log and anti-log amplifiers multiply two signals. V1 and V2 each pass through a log amplifier (diode in feedback) giving Vo1 and Vo2; an adder stage sums these to Vo3 = log_e(V1) + log_e(V2) = log_e(V1 x V2); a final anti-log amplifier (diode at input) produces an output Vo proportional to the product V1 x V2. …

Formula 6Output of the combined log-adder-antilog analog multiplier

VO3=log⁡e(V1)+log⁡e(V2)=log⁡e(V1×V2)V_{O3} = \log_e(V_1) + \log_e(V_2) = \log_e(V_1 \times V_2), and after the anti-log stage VO∝V1×V2V_O \propto V_1 \times V_2 — the output is proportional to the product of the two input signals. VO3V_{O3} is the adder output summing the two logarithms; taking the antilog undoes the logarithm and recovers the prod …