Module 3 Notes
Module 3 Notes
TOPICS
• Linear Opamp Circuits: Summing Amplifier and D/A Converter,
Nonlinear Op-amp Circuits: Comparator with zero reference,
Comparator with non-zero references. Comparator with Hysteresis.
• Oscillator: Theory of Sinusoidal Oscillation, The WeinBridge
Oscillator, RC Phase Shift Oscillator, The Colpitts Oscillator, Hartley
Oscillator, Crystal Oscillator.
1
Summing Amplifier Circuits
The summing circuit combines all the amplified input signals into a
single output.
2
Since the inverting input is a virtual ground, the total input current is:
This current flows through the feedback resistor. Therefore, the output
voltage is
If all resistances are equal, then each channel has a closed loop voltage
gain of unity.
The Subtracter:
The Subtracter is a circuit that subtracts two input voltages to produce
an output voltage equal to the difference of v1 and v2. Input v1 is
applied to an inverter with a voltage gain of unity.
The output of the first stage is -v1.
3
Summing on Both Inputs:
The inverting side of the amplifier has two input channels, and the
noninverting side has two input channels. The total gain is the
superposition of the channel gains. The gain of each inverting channel
is the ratio of the feedback resistor Rf to input channel resistance.
The Averager:
In an averaging circuit, the output equals the average of the input
voltages. Each channel has a voltage gain of:
4
When all amplified outputs are added, we get an output that is the
average of all input voltages. For each channel, input resistance is nR.
where n is the number of channels.
5
The binary-weighted D/A converter is shown. This circuit produces an
output voltage equal to the weighted sum of the inputs.
6
The R-2R ladder D/A converter
The R/2R ladder D/A converter overcomes the limitations of the
binary-weighted D/A converter and is the method most widely used in
integrated-circuit D/A converters. Only two resistor values are
required and provides a higher degree of accuracy.
The switches D0–D3 connect the four inputs to either ground (logic 0)
or Vref (logic 1). D0 is the least significant input bit (LSB) and D3 is the
most significant bit (MSB).
7
Comparator with zero reference
The output of the comparator can be characterized as digital because
the output is always either high at +Vsat or low at -Vsat.
8
If Vsat=14 V and open-loop voltage gain = 1,00,000 then the input
voltage needed to produce saturation is:
Inverting Comparator:
In an inverting comparator, the noninverting input is grounded. The
input signal is applied to the inverting input of the comparator. A
slightly positive input voltage produces a maximum negative output
and a slightly negative input voltage produces a maximum positive
output.
Two diode clamps are used to protect the comparator from large input
voltages. If the input voltage exceeds the limit of 15V, the LM311 will
be destroyed. With some comparators, the maximum input voltage
rating may be as little as 5 V, whereas with others it may be more than
9
30 V. In any case, we can protect a comparator against large input
voltages by using the diode clamps as shown.
These diodes have no effect on the operation of the circuit as long as
the magnitude of the input voltage is less than 0.7 V. When the
magnitude of the input voltage is greater than 0.7 V, one of the diodes
will turn on and clamp the magnitude of the inverting input voltage to
approximately 0.7 V. Some IC comparators often have diode clamps
built into their input stages. We must add an external resistor in series
with the input terminal of these comparators to limit the internal diode
currents to a safe level.
Converting Sine Waves to Square Waves:
The trip point (the threshold or reference) of a comparator is the input
voltage that causes the output voltage to switch states. In the
noninverting and inverting comparators with zero reference voltage,
the trip point is zero. Since a zero-crossing detector has a two-state
output, any periodic input signal that crosses zero threshold will
produce a rectangular output waveform.
If a sine wave is the input to a noninverting comparator with a
threshold of 0 V, the output will be the square wave. Comparator
converts sine waves to square waves:
(a) Noninverting (b) inverting
10
Figure b shows the input sine wave and the output square wave for
an inverting comparator with a threshold of 0 V. Here, the output
square wave is 180° out of phase with the input sine wave.
If a zero-crossing detector has an infinite open-loop gain, the
transition between negative and positive saturation will be vertical.
In a practical circuit, the gain is very large, but finite. Therefore,
the transition is not vertical.
The narrow input region between approximately -100 and +100 uV
is called the linear region of the comparator. During a zero
crossing, a changing input signal usually passes through the linear
region so quickly that we see only a sudden jump between negative
and positive saturation, or vice versa.
11
In some applications, a threshold voltage different from zero is
used. A voltage divider produces the reference voltage for the
inverting input.
12
Comparators with Hysteresis:
If the input to a comparator contains a large amount of noise, the
output will be erroneous when vin is near the trip point. A
comparator with positive feedback is used to reduce the effect of
noise. The positive feedback produces two separate trip points and
it prevents a noisy input from producing false transitions.
Noise:
Noise is any kind of unwanted signal that is not derived from or
related to the input signal. Electric motors, power lines, car
ignitions, lightning etc produce electromagnetic fields that can
induce noise voltages into electronic circuits. Power supply ripple
is also a noise since it is not related to the input signal.
By using regulated power supplies and shielding, we can reduce the
ripple and induced noise to an acceptable level. Thermal noise is
caused by the random motion of free electrons inside a resistor. The
energy for the electron motion comes from the thermal energy of
the surrounding air.
13
The randomness of the electron motion inside a resistor produces
a distribution of noise at all frequencies. The rms value of this
noise increases with temperature, bandwidth, and resistance.
Noise produces false triggering of comparator
Schmitt Trigger:
A comparator using positive feedback is usually called a
Schmitt trigger. The input voltage is applied to the inverting input.
The feedback voltage is applied to the noninverting input. This is
called positive feedback.
14
a. Inverting Schmitt trigger b. input/output response has hysteresis
The output voltage will remain in each state until the input voltage
exceeds the reference voltage for that state. If the output is
positively saturated, the reference voltage is +BVsat. The input
voltage must be increased to slightly more than +BVsat to switch the
output voltage from positive to negative.
15
Once the output is in the negative state, it will remain there until
the input voltage becomes more negative than -BVsat. Then, the
output switches from negative to positive.
The trip points are defined as the two input voltages where the
output voltage changes states.
The upper trip point (UTP) has the value: UTP = BVsat
The lower trip point (LTP) has the value: LTP = -BVsat
The difference between these trip points is defined as the hysteresis
(also called the deadband ):
H=UTP – LTP
H = BVsat - (-BVsat)
H = 2BVsat
(a) Noninverting Schmitt trigger (b) input/output response
16
Hysteresis in a Schmitt trigger prevents noise from causing false
triggering. If the peak-to-peak noise voltage is less than the
hysteresis, the noise cannot produce false triggering.
17
In Fig.a, the feedback voltage returning to point x is given by:
19
Lag Circuit:
The voltage gain of the bypass circuit is:
•e phaeanlei :
s
20
The phase angle is:
The phase angle is positive. It means that the output voltage leads
the input voltage. Because of this, a coupling circuit is also called a
lead circuit. The output phasor can lead the input phasor by an angle
between 0° and +90°. Coupling and bypass circuits are examples of
phase-shifting circuits. These circuits shift the phase of the output
signal either positive (leading) or negative (lagging) with respect to
the input signal.
A sinusoidal oscillator always uses phase-shifting circuit to produce
oscillation at one frequency.
Lead-Lag Circuit:
The Wien-bridge oscillator uses a resonant feedback circuit called a
lead-lag circuit. At very low frequencies, the series capacitor appears
open to the input signal, and there is no output signal. At very high
frequencies, the parallel capacitor looks shorted, and there is no
output. In between these extremes, the output voltage reaches a
maximum value.
The frequency where the output is maximum is the
resonant frequency fr. At this frequency, the feedback fraction B
reaches a maximum value of 1⁄3.
21
Fig.b shows the phase angle of the output voltage versus input
voltage. At very low frequencies, the phase angle is positive
(leading). At very high frequencies, the phase angle is negative
(lagging). At the resonant frequency, the phase shift is 0°.
Fig.c shows the phasor diagram of the input and output voltages. The
tip of the phasor can lie anywhere on the dashed circle. Because of
this, the phase angle may vary from +90° to -90°.
The lead-lag circuit acts like a resonant circuit. For the given Lead-
lag circuit, the feedback fraction is
22
reaches a desired level, the negative feedback becomes large enough
to reduce loop gain AvB to 1.
Initially, the tungsten lamp has a low resistance, and the negative
feedback is small. Now, the loop gain is greater than 1, and the
oscillations start at the resonant frequency. As the oscillations build
up, the tungsten lamp heats slightly and its resistance increases.
At some high output level, the tungsten lamp has a resistance of
exactly R’. Now, the closed-loop voltage gain from the noninverting
input to the output decreases to:
Since the lead-lag circuit has a B of 1⁄3, the loop gain is:
At this point, the oscillations become stable and the output voltage
has a constant peak-to-peak value.
RC Phase-Shift Oscillator
A phase-shift oscillator with three lead circuits in the feedback path
is as shown.
23
lead circuits equals 180° (approximately 60° each). The amplifier has
an additional 180° of phase shift because the signal is applied to the
inverting input. As a result, the phase shift around the loop will be
360°, equivalent to 0°. If AvB is greater than 1 at this frequency,
oscillations can start.
Figure shows a phase-shift oscillator with three lag circuits. The
amplifier produces 180° of phase shift, and the lag circuits contribute
-180° at some higher frequency to get a loop phase shift of 0°. If AvB
is greater than 1 at this frequency, oscillations can start.
The main problem with the circuit is that it cannot be easily adjusted
over a large frequency range.
24
High-frequency oscillations can be generated using an LC oscillator
for frequencies between 1MHz and 500 MHz. A bipolar junction
transistor or an FET is typically used for the amplifier. With an
amplifier and LC tank circuit, we can feed back a signal with the right
amplitude and phase to sustain oscillations.
In Colpitts oscillator, the feedback voltage is produced by the
capacitive voltage divider formed by C1 and C2. The voltage-divider
bias sets up a quiescent operating point. The RF choke has a very high
inductive reactance, so it appears open to the ac signal. The low-
frequency voltage gain is rc/re’, where rc is the ac collector resistance.
Because the RF choke appears open to the ac signal, the ac collector
resistance is the ac resistance of the resonant tank circuit. This ac
resistance has a maximum value at resonance.
The loop current in the tank flows through C1 in series with C2. The
vout equals the ac voltage across C1. Also, the feedback voltage vf
appears across C2. This feedback voltage drives the base and sustains
the oscillations across the tank circuit. The emitter is at ac ground and
the circuit is a CE connection. The approximate resonant frequency is
25
The feedback fraction of oscillator is given by:
Hartley Oscillator
Figure shows an example of the Hartley oscillator. When the LC tank
is resonant, the circulating current flows through L1 in series with L2.
The equivalent L is: L=L1+L2
26
Crystal Oscillator
When accuracy and stability of the oscillation frequency are
important, a quartz-crystal oscillator is used. The feedback signal
comes from a capacitive tap.
The crystal acts like a large inductor in series with a small capacitor.
Because of this, the resonant frequency is almost totally unaffected
by transistor and stray capacitances. The capacitive voltage divider
produces the feedback voltage for the base of the transistor.
The crystal acts like an inductor that resonates with C1 and C2.
The oscillation frequency is between the series and parallel resonant
frequencies of the crystal. When the crystal is not vibrating, it is
equivalent to a capacitance Cm because it has two metal plates
separated by a dielectric. The capacitance Cm is known as the
mounting capacitance.
27
When a crystal is vibrating, it acts like a tuned circuit. Fig.b shows the
ac-equivalent circuit of a crystal vibrating at its fundamental
frequency.
Typical values are L in henrys, Cs in fractions of a picofarad, R in
hundreds of ohms, and Cm in picofarads. The series resonant
frequency fs of a crystal is the resonant frequency of the LCR branch
in Fig. b. At this frequency, the branch current reaches a maximum
value because L resonates with Cs. The formula for this resonant
frequency is:
28
The 555 Timer
The 555 Timer circuit can be operated in either of two modes:
monostable (one stable state) or astable (no stable states). A
multivibrator is a two-state circuit that has zero, one, or two stable
output states. In the monostable mode, it can produce accurate time
delays from microseconds to hours.
In the astable mode, it can produce rectangular waves with a
variable duty cycle. The functional diagram of the 555 timer is
shown.
29
Pin diagram:
Pin 3: Output.
Pin 4: Reset. The 555 timer can be reset by applying a negative pulse
to this pin.
Pin 5: Control voltage. An external voltage applied to this terminal
changes the threshold as well as the trigger voltage.
Pin 6: Threshold. This is the noninverting input terminal of
comparator1, which monitors the voltage across the external capacitor.
When the voltage at this pin is > 2/3 Vcc, the output of comparator1
goes high, which switches the output of the timer low.
Pin 7: Discharge. This pin is connected internally to the collector of
transistor Q1.
Pin 8: +Vcc. The supply voltage of + 5 V to + 18 V is applied to this
pin with respect to ground.
The 555 timer contains a voltage divider, two comparators, an RS flip-
flop, and a npn transistor. Since the voltage divider has equal resistors,
the top comparator has a trip point of:
30
When the threshold voltage is greater than the UTP, the upper
comparator has a high output. The lower comparator has a trip point
of:
When the trigger voltage falls to less than the LTP, the lower
comparator produces a high output.
Monostable Operation
Initially, the 555 timer has a low output voltage at which it can remain
indefinitely.
When the 555 timer receives a trigger at point A, the output voltage
switches from low to high. The output remains high for a while and
then returns to the low state after a time delay of W. The output will
remain in the low state until the next triggering pulse is applied.
Next figure shows the 555-timer connected for monostable operation.
The circuit has an external resistor R and a capacitor C. The voltage
across the capacitor is used for the threshold voltage to pin 6. When
the trigger arrives at pin 2, the circuit produces a rectangular output
pulse from pin 3.
Initially, the Q output of the RS flip-flop is high. This saturates the
transistor and clamps the capacitor voltage at ground. The circuit will
remain in this state until a trigger pulse is applied.
31
555 timer connected for monostable operation.
Because of the voltage divider, the trip points are: UTP =2VCC/3 and
LTP=VCC/3. When the trigger input falls below VCC/3, the lower
comparator resets the flip-flop. Since Q has changed to low, the
transistor goes into cutoff, allowing the capacitor to charge. Now,
output is changed to high. The capacitor now charges exponentially.
When the capacitor voltage becomes greater than 2VCC/3, the upper
comparator sets the flip-flop.
The high value of Q turns on the transistor, which discharges the
capacitor. Now, the complementary Q returns to the low state and the
output pulse ends. This remains low until another input trigger is
applied.
32
The width of the rectangular pulse depends on how long it takes to
charge the capacitor through resistance R.
The pulse width, W=1.1RC
Thus, the monostable 555 timer produces a single pulse whose width
is determined by the external R and C.
33
time constant is R2C. When the capacitor voltage drops to slightly
less than VCC/3, the lower comparator resets the flip-flop.
555 timer connected for astable operation.
34
The pulse width is given by:
The frequency:
Dividing the pulse width by the period gives the duty cycle:
35
The circuit can be modified to allow the duty cycle to become less
than 50 percent. By placing a diode in parallel with R2 (anode
connected to pin 7), the capacitor will effectively charge through
R1 and the diode.
The capacitor will discharge through R2. Therefore, the duty cycle
becomes:
36