Gain Attenuation Circuit

Op-Amp Gain / Reference / Attenuation Block

A flexible analog utility circuit providing selectable gain, unity reference, and attenuation using a modified non-inverting op-amp topology and a simple 3-position switch arrangement.

Project Overview

A practical analog signal level management circuit

While verifying the dynamic range of an audio compressor project, I needed a convenient way to rapidly switch between +10 dBu, 0 dBu, and -10 dBu reference levels without constantly adjusting the signal generator.

The goal was to establish a fixed reference level and then instantly move above or below that reference by precise amounts. Although originally developed for audio testing, the circuit has many additional applications in signal conditioning, instrumentation, and interfacing between consumer and professional audio equipment.

The circuit can easily be adapted for:

  • Professional to consumer audio level conversion
  • Precision gain and attenuation switching
  • Instrument calibration references
  • Signal path testing and verification
  • Analog front-end experimentation

Basic Theory

Voltage dividers and non-inverting amplifier behavior

The basic form of a resistive voltage divider follows the equation below:

Voltage Divider Equation

Resistive Divider Equation

Referring to the non-inverting amplifier configuration, we can see that this same divider network appears between the op-amp output and the inverting input as part of the negative feedback system.

Therefore the gain equation of the non-inverting amplifier becomes the inverse of the resistive divider equation.

Circuit Configuration

Three operating modes from one simple topology

A slight modification of the standard non-inverting op-amp by adding a 3-way switch into the feedback loop provides three separate operating modes from a single circuit.

  • Voltage follower driving a resistive divider, providing controlled attenuation
  • Unity-gain voltage follower for reference level operation
  • Standard non-inverting feedback amplifier providing gain equal to the inverse of the attenuation ratio

Additional Notes

Implementation considerations and possible extensions

Design Notes

Because the circuit is non-inverting, the minimum gain will always be greater than or equal to unity.

The potentiometer can easily be replaced with a rotary switch using fixed precision resistors for repeatable preset gain and attenuation settings.

The switch shown in the example is an E-SWITCH 100DP6T1B1M2QE, although equivalent switches are available in several different form factors.

This circuit is intended as a flexible building block that can be adapted into many other analog signal processing applications.