A log amplifier, which may spell log as logarithmic or logarithm and which may abbreviate amplifier as amp or be termed as a converter, is an electronic amplifier that for some range of input voltage
Vin
Vout
Vout ≈ K ⋅ ln\left(
Vin | |
Vref |
\right),
where
Vref
K
ln
Log amplifier circuits designed with operational amplifiers (opamps) use the exponential current–voltage relationship of a p–n junction (either from a diode or bipolar junction transistor) as negative feedback to compute the logarithm. Multistage log amplifiers instead cascade multiple simple amplifiers to approximate the logarithm's curve. Temperature-compensated log amplifiers may include more than one opamp and use closely-matched circuit elements to cancel out temperature dependencies. Integrated circuit (IC) log amplifiers have better bandwidth and noise performance and require fewer components and printed circuit board area than circuits built from discrete components.
Log amplifier applications include:
A log amplifier's elements can be rearranged to produce exponential output, the logarithm's inverse function. Such an amplifier may be called an exponentiator, an antilogarithm amplifier, or abbreviated like antilog amp.[2] An exponentiator may be needed at the end of a series of analog computation stages done in a logarithmic scale in order to return the voltage scale back to a linear output scale. Additionally, signals that were companded by a log amplifier may later be expanded by an exponentiator to return to their original scale.
The basic opamp diode log amplifier shown in the diagram utilizes the diode's exponential current-voltage relationship for the opamp's negative feedback path, with the diode's anode virtually grounded and its cathode connected to the opamp's output
Vout
ID=IS
| ||||
\left(e |
-1\right),
where
ID
IS
VT
-Vout\ggVT,
ID\simeqIS
| ||||
e |
.
Rearranging this equation gives the output voltage
Vout
Vout=-VTln\left(
ID | |
IS |
\right).
ID
R
Vout
Vout=-VTln\left(
Vin | |
ISR |
\right).
A necessary condition for successful operation of this log amplifier is that
Vin
Vout
The diode's saturation current
IS
Additionally, the bulk resistance
RB
IDRB
m
Vin
Vout
To address inaccuracies for small inputs the size of
VT
ln(2x)
ln(-2x)
While the floating diode in the earlier basic opamp implementation causes the output voltage to depend on the opamp's input offset current, the grounded-base or "transdiode" configuration shown in the diagram does not possess this problem. Negative feedback causes the opamp to output enough voltage on the base-emitter junction of the bipolar junction transistor (BJT) to ensure that all available input current is drawn through the collector of the BJT, so the output voltage is then referenced relative to the true ground of the transistor's base rather than the virtual ground. While the circuit in the diagram uses an npn transistor and produces a negative
Vout
Vout
With a positive
Vin
Vout
\begin{align} VBE&=-Vout\\ IC&=
| ||||
I | ||||
S\left(e |
-1\right) ≈ IS
| ||||
e |
\\ ⇒ VBE&=VTln\left(
IC | |
IS |
\right) \end{align}
where
IS
VT
IC=
Vin | |
R |
Vout=-VTln\left(
Vin | |
ISR |
\right)
The output voltage is expressed as the natural log of the input voltage. Both the saturation current
IS
VT
Because temperature compensation is generally needed, it is often built into log amplifier ICs. Some analog computation chips that follow log operations by an antilog may conveniently compensate the log circuit's temperature variation by a similar variation in the antilog circuit.
One method to remove
IS
R
IS
VT
Texas Instruments application note AN-311 describes another temperature-compensated circuit which only uses two opamps instead of three and maintains 1% log conformity. It also uses a matched BJT configured with the second opamp to compensate for the first BJT's
VBE
IS
\DeltaVBE
VBE
VBE
VBE
\DeltaVBE
IS
\DeltaVBE
VT
BJT log converters still may have poor temperature rejection and poor log conformance over wide current variations. And because the bandwidth of a BJT depends on current, the bandwidth of log-antilog converters varies with signal amplitude and drops to near zero as the signal amplitude drops. Log converters have been claimed to be inferior to using modern high-resolution delta-sigma modulation analog-to-digital converters and performing calculations digitally.[8]
While the previous circuits utilized the p–n junction's exponential current–voltage relationship for computing the log function, the following approaches instead approximate the log function by cascading multiple simpler amplifiers.
A basic multistage log amp works by cascading a series of linear amplifiers, each with gain of dB, and then summing the result. For small signals such that the final amplifier doesn't saturate, the total gain will be dB. However, as the input signal level increases, the final amplifier will limit and thus make a fixed contribution to the sum, so that the gain will drop to dB. As the signal increases, the second to last amplifier will limit, and so on, until the first limits. The resulting curve is a piecewise linear function approximation of the log function.
If limiting amplifiers that clip "softly" are cascaded without summing, the approximation (which can be within 0.1 dB) is sometimes called a "true log amp". The response of both this true log amp and the basic multistage log amp are not truly logarithmic, because they are symmetric about zero (while the mathematical logarithm function is indeterminate for negative inputs) and are linear for small inputs. But, such a symmetrical transfer function is fine for capacitively coupled AC inputs, such as from radar receivers. The term "logarithmic converter" may better describe such functionality than "logarithmic amplifier".
The successive detection log amp architecture is a variant of this which uses full or half wave detectors from the output of each amplifier stage, all connected to the log amplifier's output node.[9]