Comparators and Oscillators
Comparators and Oscillators
Comparators and Oscillators
Applications
• Comparators with Zero Reference
Inverting Comparator
Diode Clamps
Diode Clamps
Here we see two diode clamps protecting the comparator against excessively large input voltages.
For instance, the LM311 is an IC comparator with an absolute maximum input rating of ± 15
V. If the input voltage exceeds these limits, the LM311 will be destroyed. With some
comparators, the maximum input voltage rating may be as little
as 65 V, whereas with others it may be more than ±30 V. In any case, we can
protect a comparator against destructively large input voltages by using the diode
clamps shown in Fig.. 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.
Converting Sine Waves to Square
Waves
Converting Sine Waves to Square Waves
The trip point (also called the threshold or reference) of a comparator is the input
voltage that causes the output voltage to switch states (from low to high or from
high to low). In the noninverting and inverting comparators discussed earlier, the
trip point is zero because this is the value of input voltage where the output switches
states. Since a zero-crossing detector has a two-state output, any periodic input
signal that crosses zero threshold will produce a rectangular output waveform.
For instance, if a sine wave is the input to a noninverting comparator
with a threshold of 0 V, the output will be the square wave shown in Fig.
As we can see, the output of a zero-crossing detector switches states each time the
input voltage crosses the zero threshold.
Linear Region
https://www.multisim.com/content/wy8jZXDgAtbeLDXouGHoke/sc
hmitt-trigger/open/
Non-Inverting Schmitt Trigger
• https://www.multisim.com/content/kwwhp3PBMfgfDuRBy
37rSF/schmitt-trigger/open/
Non-Inverting Schmitt Trigger
Speed-Up Capacitor
• Besides suppressing the effects of noise, positive feedback speeds up the switching
of output states. When the output voltage begins to change, this change is fed back
to the non inverting input and amplified, forcing the output to change faster. Sometimes a
capacitor
Oscillators
Theory of Sinusoidal
Oscillation
Starting Voltage Is Thermal
Noise
One way to produce high-frequency oscillations is with an LC oscillator, a circuit that can be used
for frequencies between 1 and 500 MHz. This frequency range is beyond the funity of most op amps.
This is why 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
Hartley Oscillator
Piezoelectric Effect
When the switch S is closed, the capacitor discharges and the current flows through the inductor. Due
to the inductive effect, the current builds up slowly towards a maximum value. Once the capacitor
discharges completely, the magnetic field around the coil is maximum.
Now, let us move on to the next stage. Once the capacitor is discharged completely, the magnetic
field begins to collapse and produces a counter EMF according to Lenz’s law. The capacitor is now
charged with positive charge on the upper plate and negative charge on the lower plate.
Once the capacitor is fully charged, it starts to discharge to build up a magnetic field around the coil,
as shown in the following circuit diagram.
The frequency of oscillation fo is inversely proportional to the square root of the capacitance of a
capacitor. So, if the value of the capacitor used is large, the charge and discharge time periods will be
large. Hence the frequency will be lower.
Mathematically, the frequency,
Fo α1/ sq rt( C )
Self-Inductance of the coil
The frequency of the oscillation fo is proportional to the square root of the self-inductance of the coil.
If the value of the inductance is large, the opposition to change of current flow is greater and hence
the time required to complete each cycle will be longer, which means time period will be longer and
frequency will be lower.
Mathematically, the frequency,
fo α1/ sq rt( L)
ombining both the above equations,
fo α1/ sq rt(L C )
The above equation, though indicates the output frequency, matches the natural frequency or
resonance frequency of the tank circuit.
An Oscillator circuit is a complete set of all the parts of circuit which helps to produce the
oscillations. These oscillations should sustain and should be Undamped as just discussed before. Let
us try to analyze a practical Oscillator circuit to have a better understanding on how an Oscillator
circuit works.
Practical Oscillator Circuit
A Practical Oscillator circuit consists of a tank circuit, a transistor amplifier, and a feedback circuit.
The following circuit diagram shows the arrangement of a practical oscillator.
Feedback Circuit − The function of feedback circuit is to transfer a part of the output energy to LC
circuit in proper phase. This feedback is positive in oscillators while negative in amplifiers.
The temperature dependency of the performance of circuit components affect the oscillator
frequency.
The changes in d.c. supply voltage applied to the active device, shift the oscillator frequency. This
can be avoided if a regulated power supply is used.
A change in output load may cause a change in the Q-factor of the tank circuit, thereby causing a
change in oscillator output frequency.
The presence of inter element capacitances and stray capacitances affect the oscillator output
frequency and thus frequency stability.
Colpitts Oscillator − It uses capacitive feedback.
Hartley Oscillator
A very popular local oscillator circuit that is mostly used in radio receivers is the Hartley Oscillator
circuit. The constructional details and operation of a Hartley oscillator are as discussed below.
Construction
In the circuit diagram of a Hartley oscillator shown below, the resistors R1, R2 and Re provide
necessary bias condition for the circuit. The capacitor Ce provides a.c. ground thereby providing any
signal degeneration. This also provides temperature stabilization.
The capacitors Cc and Cb are employed to block d.c. and to provide an a.c. path. The radio frequency
choke (R.F.C) offers very high impedance to high frequency currents which means it shorts for d.c.
and opens for a.c. Hence it provides d.c. load for collector and keeps a.c. currents out of d.c. supply
source
Tank Circuit
The frequency determining network is a parallel resonant circuit which consists of the inductors L1
and L2 along with a variable capacitor C. The junction of L1 and L2 are earthed. The coil L1 has its
one end connected to base via Cc and the other to emitter via Ce. So, L2 is in the output circuit. Both
the coils L1 and L2 are inductively coupled and together form an Auto-transformer.
The following circuit diagram shows the arrangement of a Hartley oscillator. The tank circuit is shunt
fed in this circuit. It can also be a series-fed.
Operation
When the collector supply is given, a transient current is produced in the oscillatory or tank circuit.
The oscillatory current in the tank circuit produces a.c. voltage across L1.
The auto-transformer made by the inductive coupling of L1 and L2 helps in determining the frequency
and establishes the feedback. As the CE configured transistor provides 180o phase shift, another 180o
phase shift is provided by the transformer, which makes 360o phase shift between the input and
output voltages.
This makes the feedback positive which is essential for the condition of oscillations. When the loop
gain |βA| of the amplifier is greater than one, oscillations are sustained in the circuit.
Frequency
The equation for frequency of Hartley oscillator is given as
Here, LT is the total cumulatively coupled inductance; L1 and L2represent inductances of 1st and 2nd
coils; and M represents mutual inductance.
Mutual inductance is calculated when two windings are considered.
Advantages
The advantages of Hartley oscillator are
Instead of using a large transformer, a single coil can be used as an auto-transformer.
The amplitude of the output remains constant over a fixed frequency range.
Disadvantages
The disadvantages of Hartley oscillator are
It cannot be a low frequency oscillator.
Applications
The applications of Hartley oscillator are
It is used to produce a sinewave of desired frequency.
Colpitts oscillator
A Colpitts oscillator looks just like the Hartley oscillator but the inductors and capacitors are
replaced with each other in the tank circuit. The constructional details and operation of a colpitts
oscillator are as discussed below.
Construction
Let us first take a look at the circuit diagram of a Colpitts oscillator.
The resistors R1, R2 and Re provide necessary bias condition for the circuit. The capacitor Ce provides
a.c. ground thereby providing any signal degeneration. This also provides temperature stabilization.
The capacitors Cc and Cb are employed to block d.c. and to provide an a.c. path. The radio frequency
choke (R.F.C) offers very high impedance to high frequency currents which means it shorts for d.c.
and opens for a.c. Hence it provides d.c. load for collector and keeps a.c. currents out of d.c. supply
source.
Tank Circuit
The frequency determining network is a parallel resonant circuit which consists of variable capacitors
C1 and C2 along with an inductor L. The junction of C1 and C2 are earthed. The capacitor C1 has its
one end connected to base via Cc and the other to emitter via Ce. the voltage developed across C1
provides the regenerative feedback required for the sustained oscillations.
Operation
When the collector supply is given, a transient current is produced in the oscillatory or tank circuit.
The oscillatory current in the tank circuit produces a.c. voltage across C1 which are
applied to the base emitter junction and appear in the amplified form in the collector circuit and
supply losses to the tank circuit.
If terminal 1 is at positive potential with respect to terminal 3 at any instant, then terminal 2 will be at
negative potential with respect to 3 at that instant because terminal 3 is grounded. Therefore, points 1
and 2 are out of phase by 180o.
As the CE configured transistor provides 180o phase shift, it makes 360o phase shift between the
input and output voltages. Hence, feedback is properly phased to produce continuous Undamped
oscillations. When the loop gain |βA| of the amplifier is greater than one, oscillations are sustained in
the circuit.
Frequency
The equation for frequency of Colpitts oscillator is given as
Advantages
The advantages of Colpitts oscillator are as follows −
Colpitts oscillator can generate sinusoidal signals of very high frequencies.
The amplitude of the output remains constant over a fixed frequency range.
The Colpitts oscillator is designed to eliminate the disadvantages of Hartley oscillator and is known
to have no specific disadvantages. Hence there are many applications of a colpitts oscillator.
Applications
The applications of Colpitts oscillator are as follows −
Colpitts oscillator can be used as High frequency sinewave generator.
This can be used as a temperature sensor with some associated circuitry.
Mostly used as a local oscillator in radio receivers.
It is also used as R.F. Oscillator.
It is also used in Mobile applications.
It has got many other commercial applications.
Clapp Oscillator
Another oscillator which is an advanced version of Colpitts oscillator is the Clapp Oscillator.
This circuit is designed by making a few changes to the Colpitts oscillator.
The circuit differs from the Colpitts oscillator only in one respect; it contains one additional
capacitor (C3) connected in series with the inductor. The addition of capacitor (C3) improves
the frequency stability and eliminates the effect of transistor parameters and stray
capacitances.
The following circuit diagram shows the arrangement of atransistor Clapp oscillator.
The operation of Clapp oscillator circuit is in the same way as that of Colpitts oscillator. The
frequency of oscillator is given by the relation,
Where
Usually, the value of C3 is much smaller than C1 and C2. As a result of this, C is approximately
Crystal Oscillators
The principle of crystal oscillators depends upon the Piezo electric effect. The natural
shape of a crystal is hexagonal. When a crystal wafer is cur perpendicular to X-axis, it is
called as X-cut and when it is cut along Y-axis, it is called as Y-cut.
The crystal used in crystal oscillator exhibits a property called as Piezo electric property. So,
let us have an idea on piezo electric effect.
Piezo Electric Effect
The crystal exhibits the property that when a mechanical stress is applied across one of the
faces of the crystal, a potential difference is developed across the opposite faces of the
crystal. Conversely, when a potential difference is applied across one of the faces, a
mechanical stress is produced along the other faces. This is known as Piezo electric effect.
Certain crystalline materials like Rochelle salt, quartz and tourmaline exhibit piezo electric
effect and such materials are called as Piezo electric crystals. Quartz is the most commonly
used piezo electric crystal because it is inexpensive and readily available in nature.
When a piezo electric crystal is subjected to a proper alternating potential, it vibrates
mechanically. The amplitude of mechanical vibrations becomes maximum when the
frequency of alternating voltage is equal to the natural frequency of the crystal.
If an AC voltage is applied, the crystal starts vibrating at the frequency of the applied
voltage. However, if the frequency of the applied voltage is made equal to the natural
frequency of the crystal, resonance takes place and crystal vibrations reach a maximum
value. This natural frequency is almost constant.
Equivalent circuit of a Crystal
If we try to represent the crystal with an equivalent electric circuit, we have to consider
two cases, i.e., when it vibrates and when it doesn’t. The figures below represent the
symbol and electrical equivalent circuit of a crystal respectively.
The above equivalent circuit consists of a series R-L-C circuit in parallel with a capacitance
Cm. When the crystal mounted across the AC source is not vibrating, it is equivalent to the
capacitance Cm. When the crystal vibrates, it acts like a tuned R-L-C circuit.
Frequency response
The frequency response of a crystal is as shown below. The graph shows the reactance
(XL or XC) versus frequency (f). It is evident that the crystal has two closely spaced resonant
frequencies.
The first one is the series resonant frequency (fs), which occurs when reactance of the
inductance (L) is equal to the reactance of the capacitance C. In that case, the impedance of
the equivalent circuit is equal to the resistance R and the frequency of oscillation is given
by the relation,
The second one is the parallel resonant frequency (fp), which occurs when the reactance of
R-L-C branch is equal to the reactance of capacitor Cm. At this frequency, the crystal offers a
very high impedance to the external circuit and the frequency of oscillation is given by the
relation.
Where
In this circuit, the crystal is connected as a series element in the feedback path from
collector to the base. The resistors R1, R2 and RE provide a voltage-divider stabilized d.c.
bias circuit. The capacitor CE provides a.c. bypass of the emitter resistor and RFC (radio
frequency choke) coil provides for d.c. bias while decoupling any a.c. signal on the power
lines from affecting the output signal. The coupling capacitor C has negligible impedance at
the circuit operating frequency. But it blocks any d.c. between collector and base.
The circuit frequency of oscillation is set by the series resonant frequency of the crystal and
its value is given by the relation,
It may be noted that the changes in supply voltage, transistor device parameters etc. have
no effect on the circuit operating frequency, which is held stabilized by the crystal.
Advantages
The advantages of crystal oscillator are as follows −
They have a high order of frequency stability.
The quality factor (Q) of the crystal is very high.
Disadvantages
The disadvantages of crystal oscillator are as follows −
They are fragile and can be used in low power circuits.
The frequency of oscillations cannot be changed appreciably.
Frequency Stability of an Oscillator
An Oscillator is expected to maintain its frequency for a longer duration without any
variations, so as to have a smoother clear sinewave output for the circuit operation. Hence
the term frequency stability really matters a lot, when it comes to oscillators, whether
sinusoidal or non-sinusoidal.
The frequency stability of an oscillator is defined as the ability of the oscillator to maintain
the required frequency constant over a long time interval as possible. Let us try to discuss
the factors that affect this frequency stability.
Change in operating point
We have already come across the transistor parameters and learnt how important an
operating point is. The stability of this operating point for the transistor being used in the
circuit for amplification (BJT or FET), is of higher consideration.
The operating of the active device used is adjusted to be in the linear portion of its
characteristics. This point is shifted due to temperature variations and hence the stability is
affected.
Variation in temperature
The tank circuit in the oscillator circuit, contains various frequency determining
components such as resistors, capacitors and inductors. All of their parameters are
temperature dependent. Due to the change in temperature, their values get affected. This
brings the change in frequency of the oscillator circuit.
Due to power supply
The variations in the supplied power will also affect the frequency. The power supply
variations lead to the variations in Vcc. This will affect the frequency of the oscillations
produced.
In order to avoid this, the regulated power supply system is implemented. This is in short
called as RPS.
Change in output load
The variations in output resistance or output load also affects the frequency of the
oscillator. When a load is connected, the effective resistance of the tank circuit is changed.
As a result, the Q-factor of LC tuned circuit is changed. This results a change in output
frequency of oscillator.
Changes in inter-element capacitances
Inter-element capacitances are the capacitances that develop in PN junction materials such
as diodes and transistors. These are developed due to the charge present in them during
their operation.
The inter element capacitors undergo change due to various reasons as temperature,
voltage etc. This problem can be solved by connecting swamping capacitor across offending
inter-element capacitor.
Value of Q
The value of Q (Quality factor) must be high in oscillators. The value of Q in tuned
oscillators determine the selectivity. As this Q is directly proportional to the frequency
stability of a tuned circuit, the value of Q should be maintained high.
Frequency stability can be mathematically represented as,
Sw=dθ/dw
Where dθ is the phase shift introduced for a small frequency change in nominal frequency
fr. The circuit giving the larger value of (dθ/dw) has more stable oscillatory frequency.