# Precision rectifier

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Precision_rectifier
> Markdown URL: https://mediated.wiki/source/Precision_rectifier.md
> Source: https://en.wikipedia.org/wiki/Precision_rectifier
> Source revision: 1323107706
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{Short description|Electrical circuit}}
{{More citations needed|date=February 2022}}

The '''precision rectifier''', sometimes called a '''super diode''', is an [operational amplifier](/source/operational_amplifier) (opamp) [circuit](/source/electrical_network) configuration that behaves like an [ideal diode](/source/ideal_diode) and [rectifier](/source/rectifier).<ref name="HH89">Paul Horowitz and Winfield Hill, ''[The Art of Electronics](/source/The_Art_of_Electronics)''. 2nd ed. Cambridge University Press, Cambridge, 1989 {{ISBN|0-521-37095-7}}.</ref>

The op-amp-based precision rectifier should not be confused with the power MOSFET-based [active rectification](/source/active_rectification) ideal diode.

==Basic circuit==
frame|right|A simple precision rectifier circuit

The basic circuit implementing such a feature is shown on the right, where <math>R_\text{L}</math> can be any load. When the input [voltage](/source/voltage) is negative, the opamp puts its most negative voltage on the diode's anode, so the diode is reverse biased and works like an open circuit. Since almost no current will flow through the diode, the output voltage <math>V_\text{out}</math> will be pulled down to ground through <math>R_\text{L}</math>. When the input becomes positive, it is amplified by the opamp, which switches the diode on. Because of the [negative feedback](/source/negative_feedback), just enough current will flow through <math>R_\text{L}</math> so that <math>V_\text{out}</math> equals the input voltage.

The actual threshold is very close to zero, but is not zero. It equals the actual threshold of the diode, divided by the gain of the opamp.

This basic configuration has a problem, so it is not commonly used. When the input becomes (even slightly) negative, the opamp runs open-loop, as there is no feedback signal through the diode.  For a typical opamp with high open-loop gain, the output saturates. If the input then becomes positive again, the op-amp has to get out of the saturated state before positive amplification can take place again. This change generates some ringing and takes some time, greatly reducing the [frequency response](/source/frequency_response) of the circuit.

==Improved circuit==
frame|An improved precision rectifier circuit.

An alternative version is given on the right. In this case, when the input is greater than zero, D1 is off, and D2 is on, so the output is zero because the other end of <math>R_2</math> is connected to the virtual ground and there is no current through <math>R_2</math>. When the input is less than zero, D1 is on and D2 is off, so the output is like the input with an amplification of <math>-R_2 / R_1</math>. Its input–output relationship is the following:

center|Super diode improved|frameless

This circuit has the benefit that the op-amp never goes into saturation, but its output must change by two diode voltage drops (about 1.2&nbsp;V) each time the input signal crosses zero. Hence, the [slew rate](/source/slew_rate) of the opamp and its frequency response ([gain–bandwidth product](/source/gain%E2%80%93bandwidth_product)) will limit high-frequency performance, especially for low signal levels, although an error of less than 1% at 100&nbsp;kHz is possible.

Similar circuitry can be used to create a precision [full-wave rectifier](/source/full-wave_rectifier) circuit.

== Peak detector ==

With a little modification, the basic precision rectifier can be used for detecting signal level peaks. In the following circuit, a [capacitor](/source/capacitor) retains the peak voltage level of the signal, and a switch is used for resetting the detected level.
When the input V<sub>in</sub> exceeds V<sub>c</sub> (voltage across capacitor), the diode is forward-biased and the circuit becomes a voltage follower. Consequently, the output voltage V<sub>o</sub> follows V<sub>in</sub> as long as V<sub>in</sub> exceeds V<sub>c</sub>. When V<sub>in</sub> drops below V<sub>c</sub>, the diode becomes reverse-biased and the capacitor holds the charge until V<sub>in</sub> again attains a value greater than V<sub>c</sub>.
center|Peak detector|frameless

== References ==
{{reflist}}

== External links ==
* {{US patent|4333141|Patent from 1982 (expired) detailing a simple very accurate design}}
* [https://sound-au.com/appnotes/an001.htm Rod Elliott's improved version]
* [http://www5b.biglobe.ne.jp/~houshu/synth/Fwr0306.GIF Single op-amp full-wave rectifier circuits]

Category:Analog circuits
Category:Rectifiers

---
Adapted from the Wikipedia article [Precision rectifier](https://en.wikipedia.org/wiki/Precision_rectifier) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Precision_rectifier?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
