Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Resource icon

Analog Max/Min Value or Bi-Level Clamp Circuits 2017-05-01

Occasionally it can be useful to generate only the maximum or minimum output of two or more analog input signals, or accurately clamp a signal between two levels.
The three simple op amp circuits here perform those functions.

Below is the LTspice simulation for the max value circuit, shown for three inputs.
As can be seen, the output closely follows the input that has the maximum voltage.

upload_2017-5-1_19-35-35.png


---------------------------------------------------------
By reversing the diodes and connecting the output resistor to V+, the circuit becomes a minimum value circuit as shown below.
Here the simulation shows the output following the input that has the minimum voltage.

The circuit is also useful as a hard clamp circuit if a fixed clamp voltage is applied to one of the inputs.

Due to the single supply operation of the simulated circuit, the minimum output voltage for the min value circuit will be about 0.7V.

upload_2017-5-6_19-31-48.png


Both the above circuits can have an arbitrary number of inputs just by adding more op amps and diodes to the circuit.
-------------------------------------------
Below is the circuit configured to provide a hard, accurate bi-level clamp at the Ref_High and Ref_Low voltages (simulated at +5V and -5V respectively) for a single input.

The two Ref voltages can be anywhere in the dynamic range as long as Ref_High is more positive than Ref_Low.
This can be useful if a signal voltage has to be be accurately clamped within desired limits even if the signal source goes outside those limits.
The Ref voltages can be from any source and can be dynamically changed during circuit operation, if desired (programmable clamp).

upload_2017-5-6_12-49-16.png
  • upload_2017-5-1_19-35-35.png
    upload_2017-5-1_19-35-35.png
    47.9 KB · Views: 6,718
  • Max Value Ckt.asc
    2.1 KB · Views: 844
  • Min Value Ckt.asc
    2.2 KB · Views: 773
  • upload_2017-5-6_12-45-9.png
    upload_2017-5-6_12-45-9.png
    46.4 KB · Views: 825
  • upload_2017-5-6_12-49-16.png
    upload_2017-5-6_12-49-16.png
    47.4 KB · Views: 5,578
  • Clamp Accurate Ckt.asc
    2.8 KB · Views: 803
  • upload_2017-5-6_19-31-48.png
    upload_2017-5-6_19-31-48.png
    46.6 KB · Views: 5,490
Author
crutschow
Views
22,818
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from crutschow

Latest reviews

Very simple, useful and versatile circuits, which could be classified as "analog logic". Also, explanations are clear and properly accompanied by graphics with examples of signals.
I found this article by chance and it was exactly what I was looking for. As a consequence I registered as a member of Electro-Tech-Online.com.

New Articles From Microcontroller Tips

Back
Top