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 has an output voltage approximately proportional to the logarithm of the input:
where is a normalization constant in volts, is a scale factor, and is the natural logarithm. Some log amps may mirror negative input with positive input (even though the mathematical log function is only defined for positive numbers), and some may use electric current as input instead of voltage.
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. [3] 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 , used as the circuit output. The Shockley diode equation gives the current–voltage relationship for the ideal semiconductor diode in the diagram to be:
where flows from the diode's anode to its cathode, is the diode's reverse saturation current and is the thermal voltage (approximately 26 mV at room temperature). When the diode's current is approximately proportional to an exponential function:
Rearranging this equation gives the output voltage to be approximately:
An input voltage can easily be scaled and converted into the diode's current using Ohm's law by sending the input voltage through a resistance to the virtual ground, so the output voltage will be approximately:
A necessary condition for successful operation of this log amplifier is that is always positive. This may be ensured by using a rectifier and filter to condition the input signal before applying it to the log amplifier's input. will then be negative (since the op amp is in the inverting configuration) and is negative enough to forward bias the diode.
The diode's saturation current doubles for every ten kelvin rise in temperature and varies significantly due to process variation. And because thermal voltage , the output voltage is also proportional to its kelvin temperature. Hence, it is very difficult to set the reference voltage for the circuit.
Additionally, the bulk resistance of a real diode limits accuracy at high currents due to an added voltage term. And, diffusion currents in surface inversion layers and generation-recombination effects in space-charge regions cause a scale factor at low currents that varies (between 1 and 4) with current. [1] With inputs near 0 volts, log amps have a linear to law. But this non-logarithmic behavior itself is often lost in this device noise, which limits the dynamic range to 40-60 dB, but the dynamic range can be increased to over 120 dB by replacing the diode with a transistor in a "transdiode" configuration. [4]
To address inaccuracies for small inputs the size of or smaller and the question of how to handle negative inputs, one solution uses a symmetric function such as the inverse hyperbolic sine, whose graph approximates for large positive and negative for large negative inputs, but which linearly goes through 0 for small inputs. This function may be implemented with a combination of N and P diodes (sold many years ago in a temperature compensated module) to make what is called a "true log" amp or "baseband log" amp (which may instead use a multistage amplifier architecture, as described in § True log amp). [5]
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 and sinks input current, a pnp will instead result in positive and a current-sourcing input. [6]
With a positive large enough to make negative enough to forward bias the emitter-base junction of the BJT (to keep it in the active mode of operation), then:
where is the saturation current of the emitter-base diode and is the thermal voltage. Due to the virtual ground at the opamp's inverting input,
The output voltage is expressed as the natural log of the input voltage. Both the saturation current and the thermal voltage are temperature dependent, hence, temperature compensation may be required.
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. [4]
One method to remove temperature dependence is to copy the basic uncompensated BJT-based log amplifier, but use a constant current source instead of resistor for this copy, and then follow both log amplifiers by a difference amplifier. The BJTs should be matched and in thermal equilibrium, so that the difference amplifier subtracts the second BJT's junction voltage to cancel out in the difference amplifier's output. The constant current source can also be used to set the desired x-axis intercept and allows users to make ratiometric measurements that are relative to a desired reference. Using a resistive temperature detector (e.g. a thermistor [1] ) in the difference amplifier's gain-setting resistors can minimize the remaining dependence. [6] Such architectures can be very accurate; for instance, the LOG200 chip released in 2024 achieves 160 dB dynamic range with under 0.2% log conformity error. [7]
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 temperature dependence by cancelling out from , the difference between the first BJT's minus the second BJT's . The second BJT's collector is fed a constant current from a temperature-compensated Zener diode voltage reference and its emitter is tied to the emitter of the first BJT, which also connects through a resistor the output of the second opamp. The second BJT's is fixed by its constant collector current. The second BJT's base voltage relative to ground is , so it will lack any component. This is outputted through the midpoint of a temperature-compensated voltage divider (where one resistor has a much higher temperature coefficient) to counteract 's temperature dependence. This circuit can also be inverted to form an exponentiator. [3]
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 N linear amplifiers, each with gain of A dB, and then summing the result. For small signals such that the final amplifier doesn't saturate, the total gain will be N·A 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 (N-1)·A 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. [9]
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". [1]
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]
A multivibrator is an electronic circuit used to implement a variety of simple two-state devices such as relaxation oscillators, timers, latches and flip-flops. The first multivibrator circuit, the astable multivibrator oscillator, was invented by Henri Abraham and Eugene Bloch during World War I. It consisted of two vacuum tube amplifiers cross-coupled by a resistor-capacitor network. They called their circuit a "multivibrator" because its output waveform was rich in harmonics. A variety of active devices can be used to implement multivibrators that produce similar harmonic-rich wave forms; these include transistors, neon lamps, tunnel diodes and others. Although cross-coupled devices are a common form, single-element multivibrator oscillators are also common.
An operational amplifier is a DC-coupled electronic voltage amplifier with a differential input, a (usually) single-ended output, and an extremely high gain. Its name comes from its original use of performing mathematical operations in analog computers.
In electronics, gain is a measure of the ability of a two-port circuit to increase the power or amplitude of a signal from the input to the output port by adding energy converted from some power supply to the signal. It is usually defined as the mean ratio of the signal amplitude or power at the output port to the amplitude or power at the input port. It is often expressed using the logarithmic decibel (dB) units. A gain greater than one, that is, amplification, is the defining property of an active component or circuit, while a passive circuit will have a gain of less than one.
A bipolar junction transistor (BJT) is a type of transistor that uses both electrons and electron holes as charge carriers. In contrast, a unipolar transistor, such as a field-effect transistor (FET), uses only one kind of charge carrier. A bipolar transistor allows a small current injected at one of its terminals to control a much larger current between the remaining two terminals, making the device capable of amplification or switching.
The silicon bandgap temperature sensor is an extremely common form of temperature sensor (thermometer) used in electronic equipment. Its main advantage is that it can be included in a silicon integrated circuit at very low cost. The principle of the sensor is that the forward voltage of a silicon diode, which may be the base-emitter junction of a bipolar junction transistor (BJT), is temperature-dependent, according to the following equation:
A differential amplifier is a type of electronic amplifier that amplifies the difference between two input voltages but suppresses any voltage common to the two inputs. It is an analog circuit with two inputs and and one output , in which the output is ideally proportional to the difference between the two voltages:
In electronics, a Schmitt trigger is a comparator circuit with hysteresis implemented by applying positive feedback to the noninverting input of a comparator or differential amplifier. It is an active circuit which converts an analog input signal to a digital output signal. The circuit is named a trigger because the output retains its value until the input changes sufficiently to trigger a change. In the non-inverting configuration, when the input is higher than a chosen threshold, the output is high. When the input is below a different (lower) chosen threshold the output is low, and when the input is between the two levels the output retains its value. This dual threshold action is called hysteresis and implies that the Schmitt trigger possesses memory and can act as a bistable multivibrator. There is a close relation between the two kinds of circuits: a Schmitt trigger can be converted into a latch and a latch can be converted into a Schmitt trigger.
In electronics and electromagnetics, slew rate is defined as the change of voltage or current, or any other electrical or electromagnetic quantity, per unit of time. Expressed in SI units, the unit of measurement is given as the change per second, but in the context of electronic circuits a slew rate is usually expressed in terms of microseconds (μs) or nanoseconds (ns).
A current mirror is a circuit designed to copy a current through one active device by controlling the current in another active device of a circuit, keeping the output current constant regardless of loading. The current being "copied" can be, and sometimes is, a varying signal current. Conceptually, an ideal current mirror is simply an ideal inverting current amplifier that reverses the current direction as well, or it could consist of a current-controlled current source (CCCS). The current mirror is used to provide bias currents and active loads to circuits. It can also be used to model a more realistic current source.
Transconductance, also infrequently called mutual conductance, is the electrical characteristic relating the current through the output of a device to the voltage across the input of a device. Conductance is the reciprocal of resistance.
A current source is an electronic circuit that delivers or absorbs an electric current which is independent of the voltage across it.
In electronics, a chopper circuit is any of numerous types of electronic switching devices and circuits used in power control and signal applications. A chopper is a device that converts fixed DC input to a variable DC output voltage directly. Essentially, a chopper is an electronic switch that is used to interrupt one signal under the control of another.
The cascode is a two-stage amplifier that consists of a common emitter stage feeding into a common base stage when using bipolar junction transistors (BJTs) or alternatively a common source stage feeding a common gate stage when using field-effect transistors (FETs).
The precision rectifier, sometimes called a super diode, is an operational amplifier (opamp) circuit configuration that behaves like an ideal diode and rectifier.
This article illustrates some typical operational amplifier applications. A non-ideal operational amplifier's equivalent circuit has a finite input impedance, a non-zero output impedance, and a finite gain. A real op-amp has a number of non-ideal features as shown in the diagram, but here a simplified schematic notation is used, many details such as device selection and power supply connections are not shown. Operational amplifiers are optimised for use with negative feedback, and this article discusses only negative-feedback applications. When positive feedback is required, a comparator is usually more appropriate. See Comparator applications for further information.
In electronics, diode modelling refers to the mathematical models used to approximate the actual behaviour of real diodes to enable calculations and circuit analysis. A diode's I-V curve is nonlinear.
The operational transconductance amplifier (OTA) is an amplifier that outputs a current proportional to its input voltage. Thus, it is a voltage controlled current source (VCCS). Three types of OTAs are single-input single-output, differential-input single-output, and differential-input differential-output, however this article focuses on differential-input single-output. There may be an additional input for a current to control the amplifier's transconductance.
In electronics, a differentiator is a circuit that outputs a signal approximately proportional to the rate of change of its input signal. Because the derivative of a sinusoid is another sinusoid whose amplitude is multiplied by its frequency, a true differentiator that works across all frequencies can't be realized. Real circuits such as a 1st-order high-pass filter are able to approximate differentiation at lower frequencies by limiting the gain above its cutoff frequency. An active differentiator includes an amplifier, while a passive differentiator is made only of resistors, capacitors and inductors.
The Miller theorem refers to the process of creating equivalent circuits. It asserts that a floating impedance element, supplied by two voltage sources connected in series, may be split into two grounded elements with corresponding impedances. There is also a dual Miller theorem with regards to impedance supplied by two current sources connected in parallel. The two versions are based on the two Kirchhoff's circuit laws.
The operational amplifier integrator is an electronic integration circuit. Based on the operational amplifier (op-amp), it performs the mathematical operation of integration with respect to time; that is, its output voltage is proportional to the input voltage integrated over time.