This circuit is designed with an operational amplifier (op-amp) and a switch, allowing the signal phase to either be inverted or remain unchanged as it passes through the circuit. In other words, the output signal can be 180 degrees out of phase with the input signal (inverted) or 0 degrees/360 degrees out of phase (non-inverted). Essentially it acts as a phase shifter circuit.
Circuit Operation:
The input signal is connected to both terminals of the op-amp. Specifically, the signal is directly connected to the inverting terminal, while the non-inverting terminal is connected to the signal via a switch.
-
When the switch is positioned such that the non-inverting terminal is grounded, the circuit operates as an inverting op-amp amplifier. The gain of the inverting op-amp is given by:
In this case, , so the gain is:
Therefore, when the non-inverting terminal is grounded (via the switch), the output signal is the inverted version of the input signal. For example, the input signal (a sine wave) will be inverted, and its phase will be shifted by 180 degrees. This results in a cosine wave because of the negative sign in the gain equation.
Mathematical Derivation of Phase Inversion:
Let the input signal be represented as:
where is the amplitude and is the angular frequency of the input signal.
When the switch is set to ground the non-inverting terminal, the output signal of the op-amp is:
Since can be written as , the output becomes:
Using the trigonometric identity , we get:
Thus, the output is a cosine wave, 180 degrees out of phase with the input sine wave. This is shown in the picture below.
The following video illustrates this phase inversion of the input signal.
When the switch is moved to the upper position, the input signal is applied to both the inverting and non-inverting inputs of the op-amp simultaneously. The voltage gain for the inverting channel remains:
The voltage gain for the non-inverting channel(see non-inverting op-amp amplifier) is:
The total voltage gain is the algebraic sum (superposition) of the two gains:
Therefore, the circuit is a switchable inverter/non-inverter. It can produce a voltage gain of either +1 or -1, depending on the switch position. This means that the output voltage will have the same magnitude as the input voltage, but the phase can be switched between 0° and 180°. For example, if , the output will be either +5 V or -5 V, depending on the switch position. This phase inversion or phase shift of digital signal is illustrated in the pictures below.