Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Comparator Circuits - Analog Electronics - Lecture Notes, Study notes of Computer Science

These are the Lecture Notes of Analog Electronics which includes Ohm's Law, Kirchoff's Laws, Electrical Circuit, Sum of Circuit, Resistors in Series, Resistors in Parallel, Combined Resistance, Voltage Divider, Voltage and Current Sources etc. Key important points are: Comparator Circuits, Simple Comparator, Comparator Model, Schmitt Trigger, Operation of Comparator, Noise Immunity, Relaxation Oscillator, Negative Feedback, Analysis of Voltage Divider

Typology: Study notes

2012/2013

Uploaded on 03/21/2013

dharm-mitra
dharm-mitra 🇮🇳

4.5

(29)

132 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
431/531 Class Notes 10
7 Comparator Circuits
7.1 Simple Comparator
A comparator can be thought of as a fast, high-gain op-amp which is not used with negative
feedback. This basic idea is shown in Fig. 38. The comparator has large open-loop gain
A
.
The function of a comparator is to decide which of the two inputs has larger voltage. We
have in the limit of very large
A
v
out
=
A
(
v
+
,
v
,
)=
(
+
V
max
v
+
>v
,
,j
V
min
j
v
+
<v
,
where
V
max
and
V
min
are aprroximately the power supply voltages. Therefore, the comparator
converts an analog input signal into an output with two possible states. Hence, this can be
thought of as a 1-bit analog to digital converter (A/D or ADC). The comparator circuit
does not use negative feedback, and so purp osefully violates Golden Rule 1. In fact, as we
shall see below, comparator circuits often employ
positive
feedback to ensure that nothing
intermediate between the two extreme output states is utilized. Finally, without negative
feedback, there is no need to do compensation Thus there is more gain at high frequency,
meaning faster response. Also, the amplier can be optimized for sp eed at the expense of
linearity. Comparators, like op-amps, are readily available as integrated circuit chips, such
as the model 311 (LM311 or LF311) whichwehaveinlab. Table 9.3 (pages 584-5) of the
text lists some of the possibilities on the market.
vout
A
+
-
R
Figure 38: Comparator model.
Wehaveshown explicitly in Fig. 38 the output stage consisting of a transistor with
collector connected to the comparator output. This is the
open collector
output, and is
typical. It is used in the 311 comparators we use in lab. We are obliged to complete
the circuit byproviding a \pull-up" resistor
R
. The transistor emitter is also available as
an external connection. It should be connected to whatever is the lower of the two output
voltage states we require. This is chosen to be ground in the gure. The high-gain dierential
amplier of the comparator has output connected to the base of this transistor. When that
44
Docsity.com
pf3
pf4

Partial preview of the text

Download Comparator Circuits - Analog Electronics - Lecture Notes and more Study notes Computer Science in PDF only on Docsity!

431/531 Class Notes 10

7 Comparator Circuits

7.1 Simple Comparator

A comparator can b e thought of as a fast, high-gain op-amp which is not used with negative feedback. This basic idea is shown in Fig. 38. The comparator has large op en-lo op gain A. The function of a comparator is to decide which of the two inputs has larger voltage. We have in the limit of very large A

vout = A(v+ v ) =

+Vmax v+ > v jVmin j v+ < v

where Vmax and Vmin are aprroximately the p ower supply voltages. Therefore, the comparator converts an analog input signal into an output with two p ossible states. Hence, this can b e thought of as a 1-bit analog to digital converter (A/D or ADC). The comparator circuit do es not use negative feedback, and so purp osefully violates Golden Rule 1. In fact, as we shall see b elow, comparator circuits often employ positive feedback to ensure that nothing intermediate b etween the two extreme output states is utilized. Finally, without negative feedback, there is no need to do comp ensation Thus there is more gain at high frequency, meaning faster resp onse. Also, the ampli er can b e optimized for sp eed at the exp ense of linearity. Comparators, like op-amps, are readily available as integrated circuit chips, such as the mo del 311 (LM311 or LF311) which we have in lab. Table 9.3 (pages 584-5) of the text lists some of the p ossibilities on the market.

v out

A

R

Figure 38: Comparator mo del.

We have shown explicitly in Fig. 38 the output stage consisting of a transistor with collector connected to the comparator output. This is the open col lector output, and is typical. It is used in the 311 comparators we use in lab. We are obliged to complete the circuit by providing a \pull-up" resistor R. The transistor emitter is also available as an external connection. It should b e connected to whatever is the lower of the two output voltage states we require. This is chosen to b e ground in the gure. The high-gain di erential ampli er of the comparator has output connected to the base of this transistor. When that

is low it will, after passing through an inverter, turn the transistor on. In this case, current sill pass through R and to the emitter connection. This current pro duces a voltage drop across R which pulls the output voltage (very close) to the emitter voltage (ground in our example). Typically R  1 k. When the comparator inputs are in the complementary inequality, the transistor is switched o and the output voltage go es to the voltage held by R, which is +5 V in our example. Using outputs of 0 and +5 V are typical, since these voltages corresp ond (roughly) to the TTL convention of digital electronics.

7.2 Schmitt Trigger

A typical circuit using a comparator is shown in Fig. 39. The output go es to one of its two p ossible states dep ending up on whether the input v is greater than or less than the \threshold" determined by v+. Positive feedback is used to help reinforce the chosen output state. In this con guration, called the Schmitt trigger, two thresholds can b e set, dep ending up on which state the output is in. The way this works is illustrated in Fig. 40. Vh and Vl refer to threshold voltages which are set up at the comparator + input by the resistor divider chain. As long as R 3  R 4 , the output states will still b e determined by the pull-up resistor R 4. For the circuit in the gure, these states are 0 and +5 V. The resistor divider, then sets V+ at di erent values, dep ending up on which state the ouput is in. Whether the connection to +V 1 and R 1 is required or not dep ends up on whether a p ositive threshold is required when Vout = 0.

v out

R

v in -

R 1 +

R 2

R 3

4

+V 1

Figure 39: Schmitt trigger.

Referring to Fig. 40, we start with Vin = V < V+. The output is in the +5 V state. In this case the threshold pro duced by the voltage divider, Vh , is the larger value due to the contribution of Vout. When the input crosses the threshold, the output changes to the other state, 0 V. The divider then gives a lower threshold Vl. Having two thresholds provides comparator stability and noise immunity. Any noise which is << (Vh Vl ) will not a ect the op eration of the comparator.

v out

80K

20K

100K

10nF

1K

Figure 41: RC relaxation oscillator.

Vin Vout

100K

10nF

Figure 42: RC circuit with Vin from the comparator output and Vout going to the com- parator input of previous gure.