**1 Answer**

written 8.2 years ago by |

## Comparator:

A comparator is a circuit which compares a signal voltage applied at one input of an op-amp with a known reference voltage at the other input. There are two types of comparators:

1) Open loop comparator

2) Closed loop comparator

## 1) Open loop comparator

- Non-inverting comparator The circuit of Figure 1 is called as a non-inverting comparator. A fixed reference voltage $V_{ref}$ is applied to (-) input and a time varying signal Vi is applied to (+) input. The output voltage is at –$V_{sat}$ for $V_i$< $V_{ref}$. And $V_o$ goes to +$V_{sat}$ for $V_i$> $V_{ref}$. The output waveform for a sinusoidal input signal applied to the (+) input is shown in Figure 2 (a and b) for positive and negative $V_{ref}$ respectively.

In practical circuit $V_{ref}$ is obtained by using a 10KΩ potentiometer which forms a voltage divider with the supply voltages $V^+$ and $V^-$ with the wiper connected to (-) input terminal as shown in Figure 3. Thus a $V_{ref}$ of desired amplitude and polarity can be obtained by simply adjusting the 10KΩ potentiometer.

Inverting Comparator

Figure 4 shows a practical inverting comparator in which the reference voltage $V_{ref}$ is applied to the (+) input and Vi is applied to (-) input. For a sinusoidal input signal, the output waveform is shown in Figure 5 (a and b) for $V_{ref}$ positive and negative respectively.

## Applications :

• Zero crossing detector

• Window detector

• Time marker generator

• Phase meter

## 2) Closed loop Comparator

- Inverting Mode In absence of input signal output of op-amp is assumed to be +ve saturated. Hence voltage at non-inverting terminal i.e. across $R_2$ also becomes +ve voltage i.e $\frac{V_{OSAT}R_2}{R_1 + R_2} = βV_{OSAT}$

Where $\frac{R_2}{R_1 + R_2} = β$ is the +ve feedback factor of a feedback network.

Now comparator compares Vin with $βV_{OSAT}$ for all values of input less than $βV_{OSAT}$ output makes transition –$V_{OSAT}$. Due to this voltage at non-inverting terminal also becomes –ve. Hence comparator compares input with –$βV_{OSAT}$. Whenever input becomes slightly more –ve than –$βV_{OSAT}$ then output makes transition to +$V_{OSAT}$ and the cycle repeats. The level of input at which output makes transition from +$V_{OSAT}$ to –$V_{OSAT}$ is known as upper trigger point (UTP) here UTP = $βV_{OSAT}$

Similarly the level of input at which output makes the transition from –$V_{OSAT}$ to +$V_{OSAT}$ is known as lower trigger point (LTP) here LTP = -$βV_{OSAT}$. Figure 6(a) shows circuit diagram and Figure 6(b) shows relevant waveform.

- Non-inverting Mode : In case of non-inverting mode closed loop comparator variable input is applied at non inverting input as shown in Figure 7.

The level of input required to make the transition from –$V_{OSAT}$ to +$V_{OSAT}$ or vice versa can be obtained from $V_1$ using superposition as shown in Figure 8(a).

$$V_1 = \frac{V_OR_2}{R_1 + R_2} + \frac{V_{IN}R_1}{R_1 + R_2}$$

Output will make the transition when $V_1$ ≈ 0 i.e 0 = $\frac{V_OR_2}{R_1 + R_2} + \frac{V_{IN}R_1}{R_1 + R_2}$

$$V_{IN} = -\frac{V_OR_2}{R_1}$$

Initially output of comparator is assumed as –$V_{OSAT}$. It will remain –$V_{OSAT}$ till $V_{IN}$ reaches

$$V_{IN} = -\frac{(-V_{OSAT})R_2}{R_1}$$ $$V_{IN} = \frac{V_{OSAT}R_2}{R_1}$$

This level of input is known as UTP. Similarly to make transition from +$V_{OSAT}$ to –$V_{OSAT}$ level of input required will be $$V_{IN} = -\frac{V_{OSAT}R_2}{R_1}$$

Such level of input is known as LTP. As shown in Figure 8(b).

## Application :

It is used as a wave shaping circuit, level detector and pulse-height discriminator. Its main use is to convert any kind of wave intosquare wave.