Operation of Basic Phase Locked Loop
Operation of Basic Phase Locked Loop
Phase locked loops can also be analyzed as control systems by applying the
Laplace transform.
Where
Where
The loop natural frequency is a measure of the response time of the loop, and the
damping factor is a measure of the overshoot and ringing. Ideally, the natural
frequency should be high and the damping factor should be near 0.707 (critical
damping). With a single pole filter, it is not possible to control the loop frequency
and damping factor independently. For the case of critical damping,
A slightly more effective filter, the lag-lead filter includes one pole and one zero.
This can be realized with two resistors and one capacitor. The transfer function for
this filter is
This filter has two time constants
τ1 = C(R1 + R2) τ2
=CR2
Substituting above yields the following natural frequency and damping factor
The loop filter components can be calculated independently for a given natural
frequency and damping factor
Real world loop filter design can be much more complex eg using higher order
filters to reduce various types or source of phase noise.
Applications of PLL:
FM stereo decoders
tracking filters
FSK modulation
Frequency multiplier
Frequency synthesis etc.,
Example PLL ICs:560 series (560, 561, 562, 564, 565 & 567)
The PLL consists of i) Phase detector ii) LPF iii) VCO. The phase detector or
comparator compares the input frequency fIN with feedback frequency fOUT.
The output of the phase detector is then applied to the LPF, which removes the
high frequency noise and produces a dc level. This dc level in turn, is input to the
VCO.
PLL goes through 3 states, i) free running ii) Capture iii) Phase lock.
Before the input is applied, the PLL is in free running state. Once the input
frequency is applied the VCO frequency starts to change and PLL is said to be in
the capture mode. The VCO frequency continuous to change until it equals the
input frequency and the PLL is in phase lock mode. When Phase locked, the loop
tracks any change in the input frequency through its repetitive action.
The phase detector is basically a multiplier and produces the sum (f s + fo) and
difference (fs - fo) components at its output.
The high frequency component (fs + fo) is removed by the low pass filter and the
difference frequency component is amplified then applied as control voltage vc to
VCO.
The signal vc shifts the VCO frequency in a direction to reduce the frequency
difference between fs and fo. Once this action starts, we say that the signal is in the
capture range. The VCO continues to change frequency till its output frequency is
exactly the same as the input signal frequency. The circuit is then said to be locked.
Once locked, the output frequency fo of VCO is identical to fs except for a finite
phase difference φ. This phase difference φ generates a corrective control voltage
vc to shift the VCO frequency from f0 to fs and thereby maintain the lock. Once
locked, PLL tracks the frequency changes of the input signal. Thus, a PLL goes
through three stages (i) free running, (ii) capture and (iii) locked or tracking.
Capture range: the range of frequencies over which the PLL can acquire lock
with an input signal is called the capture range. This parameter is also expressed as
percentage of fo.
Pull-in time: the total time taken by the PLL to establish lock is called pull-in
time. This depends on the initial phase and frequency difference between the two
signals as well as on the overall loop gain and loop filter characteristics.
Phase Detector
OUTPUT Non-Linear with slope Linear with slope Lock acquired between 0
180o 360o frequency to quadrature lock
Phase detector compares the input frequency and VCO frequency and generates
DC voltage i.e., proportional to the phase difference between the two frequencies.
Depending on whether the analog/digital phase detector is used, the PLL is called
either an analog/digital type respectively. Even though most monolithic PLL
integrated circuits use analog phase detectors.
This uses an exclusive OR gate. The output of the Ex-OR gate is high only when
fIN or fOUT is high.
The DC output voltage of the Ex-OR phase detector is a function of the phase
difference between its two outputs. The maximum dc output voltage occurs when
the phase difference is Π radians or
180 degrees. The slope of the curve between 0 or Π radians is the conversion gain
kp of the phase detector for eg; if the Ex-OR gate uses a supply voltage V cc = 5V,
the conversion gain Kp is
Advantages of Edge Triggered Phase Detector over Ex-OR are
i) The dc output voltage is linear over 2Π radians or 360 degrees, but in Ex-OR it
is Π radians or 180 degrees.
Edge triggered type of phase detector using RS Flip – Flop. It is formed from a pair
of cross coupled NOR gates.
RS FF is triggered, i.e., the output of the detector changes its logic state on the
positive edge of the inputs fIN & fOUT
• Phase detector 1 is used in applications that require zero frequency and phase
difference at lock.
The function of the LPF is to remove the high frequency components in the output
of the phase detector and to remove the high frequency noise. LPF controls the
characteristics of the phase locked loop. i.e., capture range, lock ranges, bandwidth
Capture range:
Capture range is the frequency range in which the PLL acquires phase lock.
Capture range is always smaller than the lock range.
Filter Bandwidth:
The third section of PLL is the VCO; it generates an output frequency that is
directly proportional to its input voltage. The maximum output frequency of
NE/SE 566 is 500 Khz.
Most PLLs also include a divider between the oscillator and the feedback input to
the phase detector to produce a frequency synthesizer. A programmable divider is
particularly useful in radio Transmitter applications, since a large number of
transmit frequencies can be produced from a single stable, accurate, but expensive,
quartz crystal–controlled reference oscillator.
Some PLLs also include a divider between the reference clock and the reference
input to the phase detector. If this divider divides by M, it allows the VCO to
multiply the reference frequency by N / M. It might seem simpler to just feed the
PLL a lower frequency, but in some cases the reference frequency may be
constrained by other issues, and then the reference divider is useful.
Frequency multiplication in a sense can also be attained by locking the PLL to the
'N'th harmonic of the signal.
the VCO frequency may be written as a function of the VCO input y(t) as
ω (t) = ω + g y(t)
r f v
When the loop is closed, the output from the loop filter becomes the input to the
VCO thus
xc(t) = Acsin(ωct).
Referring to the circuit in the above figure, the capacitor c1 is linearly charged or
discharged by a constant current source/sink. The amount of current can be
controlled by changing the voltage vc applied at the modulating input (pin 5) or by
changing the timing resistor R1 external to the IC chip. The voltage at pin 6 is held
at the same voltage as pin 5.
Thus, if the modulating voltage at pin 5 is increased, the voltage at pin 6 also
increases, resulting in less voltage across R 1 and thereby decreasing the charging
current.
The voltage across the capacitor C 1 is applied to the inverting input terminal of
Schmitt trigger via buffer amplifier. The output voltage swing of the Schmitt
trigger is designed to Vcc and 1.5 Vcc. If R a = Rb in the positive feedback loop, the
voltage at the non-inverting input terminal of Schmitt trigger swings from 0.5 Vcc
to 0.25 Vcc.
When the voltage on the capacitor c1 exceeds 0.5 Vcc during charging, the output
of the Schmitt trigger goes LOW (0.5 Vcc). The capacitor now discharges and
when it is at 0.25 Vcc, the output of Schmitt trigger goes HIGH (Vcc). Since the
source and sink currents are equal, capacitor charges and discharges for the same
amount of time. This gives a triangular voltage waveform across c1 which is also
available at pin 4.
The square wave output of the Schmitt trigger is inverted by buffer amplifier at pin
3. The output waveforms are shown near the pins 4 and 3.
where V+ is Vcc.
The output frequency of the VCO can be changed either by (i) R 1, (ii) c1 or (iii) the
voltage vc at the modulating input terminal pin 5. The voltage vc can be varied by
connecting a R1R2 circuit as shown in the figure below. The components R1and c1
are first selected so that VCO output frequency lies in the centre of the operating
frequency range.
Now the modulating input voltage is usually varied from 0.75 Vcc to Vcc which
can produce a frequency variation of about 10 to 1.
The signetics NE/SE 560 series is monolithic phase locked loops. The SE/NE 560,
561, 562, 564, 565 & 567 differ mainly in operating frequency range, poser supply
requirements & frequency & bandwidth adjustment ranges.
Input level required for tracking: 10mv rms min to 3 Vpp max
where R1&C1 are an external resistor & a capacitor connected to pins 8 & 9.
C1 can be any value; R1 must have a value between 2 k ohms and 20 K ohms.
V = (+Vcc)-(-Vcc) volts
∆fC= ±[ ∆fL/(2Π)(3.6)(103)C2 ]½
The output from a PLL system can be obtained either as the voltage signal vc(t)
corresponding to the error voltage in the feedback loop, or as a frequency signal at
VCO output terminal. The voltage output is used in frequency discriminator
applications whereas the frequency output is used in signal conditioning, frequency
synthesis or clock recovery applications.
In the case of frequency output, if the input signal is comprised of many frequency
components corrupted with noise and other disturbances, the PLL can be made to
lock, selectively on one particular frequency component at the input. The output of
VCO would then regenerate that particular frequency (because of LPF which gives
output for beat frequency) and attenuate heavily other frequencies. VCO output
thus can be used for regenerating or reconditioning a desired frequency signal
(which is weak and buried in noise) out of many undesirable frequency signals.
Frequency Multiplier:
Frequency divider is inserted between the VCO & phase comparator. Since the
output of the divider is locked to the fIN, VCO is actually running at a multiple of
the input frequency.
In computer peripheral & radio (wireless) communication the binary data or code
is transmitted by means of a carrier frequency that is shifted between two preset
frequencies. Since a carrier frequency is shifted between two preset frequencies,
the data transmission is said to use a FSK. The frequency corresponding to logic 1
& logic 0 states are commonly called the mark & space frequency.
In other words, the output frequency of the FSK generator depends on the
logic state of the digital data input.
150 Hz is one the standards frequencies at which the data are commonly
transmitted.
When the input is logic 1, the transistor Q1 is off. Under the condition, 555
timer works in its normal mode as an astable multivibrator i.e., capacitor C charges
through RA & RB to 2/3 Vcc & discharges through RB to 1/3 Vcc. Thus capacitor C
charges & discharges between 2/3 Vcc & 1/3 Vcc as long as the input is logic 1.
FSK Demodulator:
The output of 555 FSK generators is applied to the 565 FSK demodulator.
At the input of 565, the loop locks to the input frequency & tracks it between
the 2 frequencies.
Applications:
AM Demodulation:
A PLL may be used to demodulate AM signals as shown in the figure below. The
PLL is locked to the carrier frequency of the incoming AM signal. The output of
VCO which has the same frequency as the carrier, but unmodulated is fed to the
multiplier. Since VCO output is always 90 0 before being fed to the multiplier. This
makes both the signals applied to the multiplier and the difference signals, the
demodulated output is obtained after filtering high frequency components by the
LPF. Since the PLL responds only to the carrier frequencies which are very close
to the VCO output, a PLL AM detector exhibits high degree of selectivity and
noise immunity which is not possible with conventional peak detector type AM
modulators.
FM Demodulation:
If PLL is locked to a FM signal, the VCO tracks the instantaneous frequency of the
input signal. The filtered error voltage which controls the VCO and maintains lock
with the input signal is the demodulated FM output.
Frequency multiplication/division:
The block diagram shown below shows a frequency multiplier/divider using PLL.
A divide by N network is inserter between the VCO output and the phase
comparator input. In the locked state, the VCO output frequency fo is given by f o =
Nfs. The multiplication factor can be obtained by selecting a proper scaling factor
N of the counter.
In digital wireless communication systems (GSM, CDMA etc), PLL's are used to
provide the Local Oscillator (LO) for up-conversion during transmission, and
down-conversion during reception. In most cellular handsets this function has been
largely integrated into a single integrated circuit to reduce the cost and size of the
handset.
However due to the high performance required of base station terminals, the
transmission and reception circuits are built with discrete components to achieve
the levels of performance required. GSM LO modules are typically built with a
Frequency Synthesizer integrated circuit, and discrete resonator VCO's.
The error signal is then low pass filtered and used to drive a voltage-controlled
oscillator (VCO) which creates an output frequency. The output frequency is fed
through a frequency divider back to the input of the system, producing a negative
feedback loop.
If the output frequency drifts, the error signal will increase, driving the frequency
in the opposite direction so as to reduce the error. Thus the output is locked to the
frequency at the other input. This input is called the reference and is derived from a
crystal oscillator, which is very stable in frequency.
The block diagram below shows the basic elements and arrangement of a PLL
based frequency synthesizer.
The counter is preset to some initial count value, and counts down at each cycle of
the clock signal. When it reaches zero, the counter output changes state and the
count value is reloaded.
This circuit is straightforward to implement using flip-flops, and because it is
digital in nature, is very easy to interface to other digital components or a
microprocessor. This allows the frequency output by the synthesizer to be easily
controlled by a digital system.
Example:
Suppose the reference signal is 100 kHz, and the divider can be preset to any value
between 1 and 100. The error signal produced by the comparator will only be zero
when the output of the divider is also 100 kHz. For this to be the case, the VCO
must run at a frequency which is 100 kHz x the divider count value.
Thus it will produce an output of 100 kHz for a count of 1, 200 kHz for a count of
2, 1 MHz for a count of 10 and so on. Note that only whole multiples of the
reference frequency can be obtained with the simplest integer N dividers.
Fractional N dividers are readily available
Practical considerations:
In practice this type of frequency synthesizer cannot operate over a very wide
range of frequencies, because the comparator will have a limited bandwidth and
may suffer from aliasing problems. This would lead to false locking situations, or
an inability to lock at all. In addition, it is hard to make a high frequency VCO that
operates over a very wide range.
This is due to several factors, but the primary restriction is the limited capacitance
range of varactor diodes. However, in most systems where a synthesizer is used,
we are not after a huge range, but rather a finite number over some defined range,
such as a number of radio channels in a specific band.
Many radio applications require frequencies that are higher than can be directly
input to the digital counter. To overcome this, the entire counter could be
constructed using high-speed logic such as ECL, or more commonly, using a fast
initial division stage called a prescaler which reduces the frequency to a
manageable level.
Since the prescaler is part of the overall division ratio, a fixed prescaler can cause
problems designing a system with narrow channel spacing’s - typically
encountered in radio applications. This can be overcome using a dual-modulus
prescaler.
Further practical aspects concern the amount of time the system can switch from
channel to channel, time to lock when first switched on, and how much noise there
is in the output. All of these are a function of the loop filter of the system, which is
a low-pass filter placed between the output of the frequency comparator and the
input of the VCO.
Usually the output of a frequency comparator is in the form of short error pulses,
but the input of the VCO must be a smooth noise- free DC voltage. (Any noise on
this signal naturally causes frequency modulation of the VCO.).
Heavy filtering will make the VCO slow to respond to changes, causing drift and
slow response time, but light filtering will produce noise and other problems with
harmonics. Thus the design of the filter is critical to the performance of the system
and in fact the main area that a designer will concentrate on when building a
synthesizer system.
The natural state of audio and video signals is analog. When digital technology
was not yet around, they are recorded or played back in analog devices like vinyl
discs and cassette tapes. The storage capacity of these devices is limited and doing
multiple runs of re-recording and editing produced poor signal quality.
Developments in digital technology like the CD, DVD, Blu-ray, flash devices and
other memory devices addressed these problems.
For these devices to be used, the analog signals are first converted to digital signals
using analog to digital conversion (ADC). For the recorded audio and video signals
to be heard and viewed again, the reverse process of digital to analog conversion
(DAC) is used.
ADC and DAC are also used in interfacing digital circuits to analog systems.
Typical applications are control and monitoring of temperature, water level,
pressure and other real-world data.
An ADC inputs an analog signal such as voltage or current and outputs a digital
signal in the form of a binary number. A DAC, on the other hand, inputs the binary
number and outputs the corresponding analog voltage or current signal.
Sampling rate
The analog signal is continuous in time and it is necessary to convert this to a flow
of digital values. It is therefore required to define the rate at which new digital
values are sampled from the analog signal. The rate of new values is called
the sampling rate or sampling frequency of the converter.
A continuously varying band limited signal can be sampled (that is, the signal
values at intervals of time T, the sampling time, are measured and stored) and then
the original signal can be exactly reproduced from the discrete-time values by an
interpolation formula. The accuracy is limited by quantization error. However, this
faithful reproduction is only possible if the sampling rate is higher than twice the
highest frequency of the signal. This is essentially what is embodied in the
Shannon-Nyquist sampling theorem.
Since a practical ADC cannot make an instantaneous conversion, the input value
must necessarily be held constant during the time that the converter performs a
conversion (called the conversion time). An input circuit called a sample and hold
performs this task—in most cases by using a capacitor to store the analog voltage
at the input, and using an electronic switch or gate to disconnect the capacitor from
the input. Many ADC integrated circuits include the sample and hold subsystem
internally.
Accuracy
An ADC has several sources of errors. Quantization error and (assuming the ADC
is intended to be linear) non-linearity is intrinsic to any analog-to-digital
conversion. There is also a so-called aperture error which is due to a clock jitter
and is revealed when digitizing a time-variant signal (not a constant value).
These errors are measured in a unit called the LSB, which is an abbreviation for
least significant bit. In the above example of an eight-bit ADC, an error of one
LSB is 1/256 of the full signal range, or about 0.4%.
Quantization error
Quantization error is due to the finite resolution of the ADC, and is an unavoidable
imperfection in all types of ADC. The magnitude of the quantization error at the
sampling instant is between zero and half of one LSB.
In the general case, the original signal is much larger than one LSB. When this
happens, the quantization error is not correlated with the signal, and has a uniform
distribution.
Its RMS value is the standard deviation of this distribution, given by 1/√12 LSB ≈
0.289LSB. In the eight-bit ADC example, this represents 0.113% of the full signal
range.
At lower levels the quantizing error becomes dependent of the input signal,
resulting in distortion. This distortion is created after the anti-aliasing filter, and if
these distortions are above 1/2 the sample rate they will alias back into the audio
band. In order to make the Quantizing error independent of the input signal, noise
with amplitude of 1 quantization step is added to the signal. This slightly reduces
signal to noise ratio, but completely eliminates the distortion. It is known as dither.
Non-linearity
All ADCs suffer from non-linearity errors caused by their physical imperfections,
resulting in their output to deviate from a linear function (or some other function,
in the case of a deliberately non-linear ADC) of their input. These errors can
sometimes be mitigated by calibration, or prevented by testing.
Important parameters for linearity are integral non-linearity (INL) and differential
non- linearity (DNL). These non-linear ties reduce the dynamic range of the signals
that can be digitized by the ADC, also reducing the effective resolution of the
ADC.
D To A Converter- Specifications
Resolution:
Resolution is defined as the number of different analog output voltage levels that
can be provided by a DAC. Or alternatively resolution is defined as the ratio of a
change in output voltage resulting for a change of 1 LSB at the digital input.
Simply, resolution is the value of LSB.
Example:
: 8 – bit resolution
Accuracy:
Absolute accuracy is the maximum deviation between the actual converter output
and the ideal converter output. The ideal converter is the one which does not suffer
from any problem. Whereas, the actual converter output deviates due to the drift in
component values, mismatches, aging, noise and other sources of errors.
The relative accuracy is the maximum deviation after the gain and offset errors
have been removed. Accuracy is also given in terms of LSB increments or
percentage of full-scale voltage. Normally, the data sheet of a D/A converter
specifies the relative accuracy rather than absolute accuracy.
Linearity:
Linearity error is the maximum deviation in step size from the ideal step size.
Some D/A converters are having a linearity error as low as 0.001% of full scale.
The linearity of a D/A converter is defined as the precision or exactness with
which the digital input is converted into analog output. An ideal D/A converter
produces equal increments or step sizes at output for every change in equal
increments of binary input.
Monotonicity:
When a D/A Converter doesn’t satisfy the condition described above, then, the
output voltage may decrease for an increase in the binary input.
Conversion Time:
It is the time taken for the D/A converter to produce the analog output for the given
binary input signal. It depends on the response time of switches and the output of
the Amplifier. D/A converters speed can be defined by this parameter. It is also
called as setting time.
Settling time:
It is one of the important dynamic parameter. It represents the time it takes for the
output to settle within a specified band ± (1/2) LSB of its final value following a
code change at the input (Usually a full-scale change). It depends on the switching
time of the logic circuitry due to internal parasitic capacitances and inductances. A
typical settling time ranges from 100 ns to 10 µs depending on the word length and
type of circuit used.
Stability:
The ability of a DAC to produce a stable output all the time is called as Stability.
The performance of a converter changes with drift in temperature, aging and power
supply variations. So all the parameters such as offset, gain, linearity error &
monotonicity may change from the values specified in the datasheet. Temperature
sensitivity defines the stability of a D/A converter.
A typical DAC converts the abstract numbers into a concrete sequence of impulses
that are then processed by a reconstruction filter using some form of interpolation
to fill in data between the impulses.
DACs are at the beginning of the analog signal chain, which makes them very
important to system performance. The most important characteristics of these
devices are:
Specifications:
Resolution: This is the number of possible output levels the DAC is designed to
reproduce. This is usually stated as the number of bits it uses, which is the base
two logarithm of the number of levels. For instance a 1 bit DAC is designed to
reproduce 2 (21) levels while an 8 bit DAC is designed for 256 (2 8) levels.
Resolution is related to the
Monotonicity: This refers to the ability of a DAC's analog output to move only in
the direction that the digital input moves (i.e., if the input increases, the output
doesn't dip before asserting the correct output.) This characteristic is very
important for DACs used as a low frequency signal source or as a digitally
programmable trim element.
THD+N: This is a measurement of the distortion and noise introduced to the signal
by the DAC. It is expressed as a percentage of the total power of unwanted
harmonic distortion and noise that accompany the desired signal. This is a very
important DAC characteristic for dynamic and small signal DAC applications.
Dynamic range: This is a measurement of the difference between the largest and
smallest signals the DAC can reproduce expressed in decibels. This is usually
related to DAC resolution and noise floor.
Other measurements, such as phase distortion and sampling period instability, can
also be very important for some applications.
The circuit for a 4-bit DAC using binary weighted resistor network is shown
below:
The binary inputs, ai (where i = 1, 2, 3 and 4) have values of either 0 or 1. The
value, 0, represents an open switch while 1 represents a closed switch.
For a 4-bit DAC, the relationship between Vout and the binary input is as follows:
The negative sign associated with the analog output is due to the connection to a
summing amplifier, which is a polarity-inverting amplifier. When a signal is
applied to the latter type of amplifier, the polarity of the signal is reversed (i.e. a +
input becomes -, or vice versa).
For a n-bit DAC, the relationship between Vout and the binary input is as follows:
The LSB, which is also the incremental step, has a value of - 0.625 V while the
MSB or the full scale has a value of - 9.375 V.
Practical Limitations:
o The most significant problem is the large difference in resistor values required
between the LSB and MSB, especially in the case of high resolution DACs (i.e.
those that has large number of bits). For example, in the case of a 12-bit DAC, if
the MSB is 1 k Ω, then the LSB is a staggering 2 MΩ.
A disadvantage of the former DAC design was its requirement of several different
precise input resistor values: one unique value per binary input bit.
The R-2R network consists of resistors with only two values - R and 2xR. If each
input is supplied either 0 volts or reference voltage, the output voltage will be an
analog equivalent of the binary value of the three bits. VS 2 corresponds to the most
significant bit (MSB) while VS0 corresponds to the least significant bit (LSB).
Vout = - (VMSB + Vn + VLSB) = - (VRef + VRef/2 + VRef/ 4)
i2 = i1/2
i3 = i1/4
i4 = i1/8
in = i1/2n-1
Using the bits to identify the status of the switches, and letting V0 = -Rf io gives
The two currents io and io are complementary to each other and the potential
of io bus must be sufficiently close to that of the io bus. Otherwise, linearity errors
will occur. The final op-amp is usedas current to voltage converter.
Advantages
1. The major advantage of current mode D/A converter is that the voltage change
across each switch is minimal. So the charge injection is virtually eliminated and
the switch driver design is made simpler.
2. In Current mode or inverted ladder type DACs, the stray capacitance do not
affect the Speed of response of the circuit due to constant ladder node voltages. So
improved speed performance.
This is the alternative mode of DAC and is called so because the 2R resistance in
the shunt path is switched between two voltages named as V L and VH. The output of
this DAC is obtained from the leftmost ladder node. As the input is sequenced
through all the possible binary state starting from All 0s (0…..0) to all 1s (1…..1).
The voltage of this node changes in steps of 2-n (VH - VL) from the minimum voltage
of Vo = VL to the maximum of Vo = VH - 2-n (VH - VL).
The diagram also shows a non-inverting amplifier from which the final output is
taken. Due to this buffering with a non- inverting amplifier, a scaling factor
defined by K = 1 + (R2/R1) results.
Advantages
2. More accurate selection and design of resistors R and 2R are possible and
simple construction.
3. The binary word length can be easily increased by adding the required number
or R-2R sections.
ii) Switches using MOS Transistor- Totem pole MOSFET Switch and CMOS
Inverter Switch.
These configurations are used to ensure the high speed switching operations for
different types of DACs.
The bipolar transistors have a negligible resistance when they are operated in
saturation. The bipolar transistor operating in saturation region indicates a
minimum resistance and thus represents ON condition. When they are operating in
cut-off region indicates a maximum resistance and thus represents OFF condition.
The circuit shown here is the arrangement of two transistors connected as emitter
followers. A silicon transistor operating in saturation will have an offset voltage of
0.2V dropped across them. To have a zero offset voltage condition, the transistors
must be overdriven because the saturation factor becomes negative. The two
transistors Q1 (NPN) and Q2 (PNP) acts as a double pole switch. The bases of the
transistors are driven by +5.75V and -5.75V.
Case 1:
Case 2:
When VB1 = VB2 = -5.75V, Q2 is in saturation and Q1 is OFF. And VE ≈ - 5V
with VBE1 = VBE2 = 0.75V
Thus the terminal B of the resistor Re is connected to either -5V or +5V depending
on the input bit.
As shown in the figure, the totem pole MOSFET Switch is connected in series with
resistors of R-2R network. The MOSFET driver is connected to the inverting
terminal of the summing op-amp.
Case 1:
When the bit line is 1 with S=1 and R=0 makes Q=1 and Q =0. This makes the
transistor M1 ON, thereby connecting the resistor R to reference voltage -VR. The
transistor M2 remains in OFF condition.
Case 2:
When the bit line is 0 with S=0 and R=1 makes Q=0 and Q =1. This makes the
transistor M2 ON, thereby connecting the resistor R toGround. The transistor M1
remains inOFF condition.
Assuming positive logic (+5V for logic 1 and 0V for logic 0), the operation can be
explained in two cases.
Case1:
When the complement of the bit line Q is low, M1 becomes ON connecting VR to
the non- inverting input of the op-amp. This drives the resistor R HIGH.
Case2:
The circuit diagram of CMOS Switch is shown here. The heart of the switching
element is formed by transistors M 1 and M2. The remaining transistors accept TTL
or CMOS compatible logic inputs and provides the anti-phase gate drives for the
transistors M1 and M2. The operation for the two cases is as follows.
Case 1:
Case 2:
The disadvantage of using individual NMOS and PMOS transistors are threshold
voltage drop (NMOS transistor passing only minimum voltage of V R- VTH and
PMOS transistor passing minimum voltage of VTH). This is eliminated by using
transmission gates which uses a parallel connection of both NMOS and PMOS.
The arrangement shown here can pass voltages from VR to 0V acting as a ideal
switch. The following cases explain the operation.
Case 1:
When the bit-line bk is HIGH, both transistors Mn and Mp are ON, offering low
resistance over the entire range of bit voltages.
Case 2:
When the bit-line bk is LOW, both the transistors are OFF, and the signal
transmission is inhibited (Withdrawn).
Thus the NMOS offers low resistance in the lower portion of the signal and PMOS
offers low resistance in the upper portion of the signal. As a combination, they
offer a low parallel resistance throughout the operating range of voltage. Wide
varieties of these kinds of switches were available. Example: CD4066 and
CD4051.
Introduction:
Three alternative CMOS S/H circuits that are developed with the intention to
minimize charge injection and/or clock feed through are
Series Sampling:
The S/H circuit of Figure 4. is classified as parallel sampling because the hold
capacitor is in parallel with the signal. In parallel sampling, the input and the
output are dc-coupled. On the other hand, the S/H circuit shown in Figure 2 is
referred to as series sampling because the hold capacitor is in series with the signal.
When the circuit is in sample mode, both switches S2 and S3 are on, while S1 is off.
Then,S2 is turned off first, which means Vout is equal to VCC (or VDD for most circuits)
and the voltage drop across Ch will be VCC – Vin. Subsequently, S3 is turned off
and S1 is turned on simultaneously. By grounding node X, Vout is now equal to VCC –
Vin, and the drop from VCC to VCC – Vin is equal to the instantaneous value of the
input.
As a result, this is actually an inverted S/H circuit, which requires inversion of the
signal at a later stage. Since the hold capacitor is in series with the signal, series
sampling can isolate the common- mode levels of the input and the output.
This is one advantage of series sampling over parallel sampling. In addition, unlike
parallel sampling, which suffers from signal-dependent charge injection, series
sampling does not exhibit such behavior because S2 is turned off before S3. Thus,
the fact that the gate-to-source voltage, VGS, of S2 is constant means that charge
injection coming from S2 is also constant (as opposed to being signal-dependent),
which means this error can be easily eliminated through differential operation.
Limitations:
On the other hand, series sampling suffers from the nonlinearity of the parasitic
capacitance at node Y. This parasitic capacitance introduces distortion to the
sample-and hold value, thus mandating that Ch be much larger than the parasitic
capacitance. On top of this disadvantage, the settling time of the S/H circuit during
hold mode is longer for series sampling than for parallel sampling. The reason for
this is because the value of Vout in series sampling is being reset to VCC (or VDD)
for every sample, but this is not the case for parallel sampling.
Switched Op-Amp Based Sample-and-Hold Circuit:
This S/H technique takes advantage of the fact that when a MOS transistor is in the
saturation region, the channel is pinched off and disconnected from the drain.
Therefore, if the hold capacitor is connected to the drain of the MOS transistor,
charge injection will only go to the source junction, leaving the drain unaffected.
Based on this concept, a switched op- amp (SOP) based S/H circuit, as shown in
Figure 4.9
During sample mode, the SOP behaves just like a regular op-amp, in which the
value of the output follows the value of the input. During hold mode, the MOS
transistors at the output node of the SOP are turned off while they are still
operating in saturation, thus preventing any channel charge from flowing into the
output of the SOP. In addition, the SOP is shut off and its output is held at high
impedance, allowing the charge on Ch to be preserved throughout the hold mode.
On the other hand, the output buffer of this S/H circuit is always operational during
sample and hold mode and is always providing the voltage on Ch to the output of
the S/H circuit.
S/H circuits that operate in closed loop configuration can achieve high resolution,
but their requirements for high gain circuit block, such as an op-amp, limits the
speed of the circuits. As a result, better and faster S/H circuits must be developed.
The above figure shows a sample and holds circuit with MOSFET as Switch acting
as a sampling device and also consists of a holding capacitor Cs to store the sample
values until the next sample comes in. This is a high speed circuit as it is apparent
that CMOS switch has a very negligible propagation delay.
o series sampling,
Like DAC, ADCs are also having many important specifications. Some of them
are Resolution, Quantization error, Conversion time, Analog error, Linearity error,
DNL error, INL error & Input voltage range.
Resolution:
The resolution refers to the finest minimum change in the signal which is accepted
for conversion, and it is decided with respect to number of bits. It is given as 1/2 n,
where ‘n’ is the number of bits in the digital output word. As it is clear, that the
resolution can be improved by increasing the number of bits or the number of bits
representing the given analog input voltage.
Resolution can also be defined as the ratio of change in the value of input voltage
Vi, needed to change the digital output by 1 LSB. It is given as
Quantization error:
If the binary output bit combination is such that for all the values of input voltage
Vi between any two voltage levels, there is a unavoidable uncertainty about the
exact value of Vi when the output is a particular binary combination. This
uncertainty is termed as quantization error. Its value is ± (1/2) LSB. And it is given
as,
QE = ViFS / 2(2n – 1)
Maximum the number of bits selected, finer the resolution and smaller the
quantization error.
Conversion Time:
It is defined as the total time required for an A/D converter to convert an analog
signal to digital output. It depends on the conversion technique and propagation
delay of the circuit components.
Analog error:
Linearity Error:
The analog input levels that trigger any two successive output codes should differ
by 1 LSB. Any deviation from this 1 LSB value is called as DNL error.
The deviation of characteristics of an ADC due to missing codes causes INL error.
The maximum deviation of the code from its ideal value after nulling the offset and
gain errors is called as Integral Non-Linearity Error.
It is the range of voltage that an A/D converter can accept as its input without
causing any overflow in its digital output.
Analog Switches
There were two types of analog switches. Series and Shunt switch. The Switch
operation is shown for both the cases VGS=0 VGS= VGs (off)
Successive-approximation ADCs
The final result is obtained as a sum of N weighting steps, in which each step is a
single-bit conversion using the DAC output as a reference. SAR converters sample
at rates up to 1Mbps, requires a low supply current, and the cheapest in terms of
production cost.
A successive-approximation ADC uses a comparator to reject ranges of voltages,
eventually settling on a final voltage range. Successive approximation works by
constantly comparing the input voltage to the output of an internal digital to analog
converter (DAC, fed by the current value of the approximation) until the best
approximation is achieved.
For example if the input voltage is 60 V and the reference voltage is 100 V, in the
1st clock cycle, 60 V is compared to 50 V (the reference, divided by two. This is
the voltage at the output of the internal DAC when the input is a '1' followed by
zeros), and the voltage from the comparator is positive (or '1') (because 60 V is
greater than 50 V). At this point the first binary digit (MSB) is set to a '1'. In the
2nd clock cycle the input voltage is compared to 75 V (being halfway between 100
and 50 V: This is the output of the internal DAC when its input is '11' followed by
zeros) because 60 V is less than 75 V, the comparator output is now negative (or
'0'). The second binary digit is therefore set to a '0'. In the 3rd clock cycle, the input
voltage is compared with 62.5 V (halfway between 50 V and 75 V: This is the
output of the internal DAC when its input is '101' followed by zeros). The output of
the comparator is negative or '0' (because 60 V is less than 62.5 V) so the third
binary digit is set to a 0. The fourth clock cycle similarly results in the fourth digit
being a '1' (60 V is greater than 56.25 V, the DAC output for '1001' followed by
zeros). The result of this would be in the binary form 1001. This is also called bit-
weighting conversion, and is similar to a binary.
The analogue value is rounded to the nearest binary value below, meaning this
converter type is mid-rise (see above). Because the approximations are successive
(not simultaneous), the conversion takes one clock-cycle for each bit of resolution
desired.
The clock frequency must be equal to the sampling frequency multiplied by the
number of bits of resolution desired. For example, to sample audio at 44.1 kHz
with 32 bit resolution, a clock frequency of over 1.4 MHz would be required.
ADCs of this type have good resolutions and quite wide ranges. They are more
complex than some other designs.
Dual slope ADC (Integrating ADCs)
The T discharge interval is proportional to the input voltage level and the resultant
final count provides the digital output, corresponding to the input signal. This type
of ADCs is extremely slow devices with low input bandwidths. Their advantage,
however, is their ability to reject high-frequency noise and AC line noise such as
50Hz or 60Hz. This makes them useful in noisy industrial environments and
typical application is in multi-meters.
Use: Converters of this type (or variations on the concept) are used in most
digital voltmeters for their linearity and flexibility.
The Block diagram shows the basic voltage to time conversion type of A to D
converter. Here the cycles of variable frequency source are counted for a fixed
period. It is possible to make an A/D converter by counting the cycles of a fixed-
frequency source for a variable period. For this, the analog voltage required to be
converted to a proportional time period.
At t = T, Vc goes low and switch S remains open. When VEN goes high, the
switch S is closed, thereby discharging the capacitor. Also the NAND gate is
disabled. The waveforms are shown here.
Sigma-delta ADCs/ Over sampling Converters:
It consists of 2 main parts - modulator and digital filter. The modulator includes an
integrator and a comparator with a feedback loop that contains a 1-bit DAC. The
modulator oversamples the input signal, converting it to a serial bit stream with a
frequency much higher than the required sampling rate. This is then transformed
by the output filter to a sequence of parallel digital words at the sampling rate. The
characteristics of sigma-delta converters are high resolution, high accuracy,
Low noise and low cost.
A digital filter (decimation filter) follows the ADC which reduces the sampling
rate, filters off unwanted noise signal and increases the resolution of the output.
(sigma-delta modulation, also called delta-sigma modulation)
The output voltage of a feedback system heads for infinite voltage when Aβ = –1.
When the output voltage approaches either power rail, the active devices in the
amplifiers change gain, causing the value of A to change so the value of Aβ ≠1;
thus, the charge to infinite voltage slows down and eventually halts. At this point
one of three things can occur.
First, nonlinearity in saturation or cutoff can cause the system to become stable and
lock
up.
Second, the initial charge can cause the system to saturate (or cut off) and stay that
way for a long time before it becomes linear and heads for the opposite power rail.
Third, the system stays linear and reverses direction, heading for the opposite
power rail. Alternative two produces highly distorted oscillations (usually quasi
square waves), and the resulting oscillators are called relaxation oscillators.
Alternative three produces sine wave oscillators.
Phase Shift in Oscillators:
The 180° phase shift in the equation Aβ = 1 –180° is introduced by active and
passive components. The phase shift contributed by active components is
minimized because it varies with temperature, has a wide initial tolerance, and is
device dependent.
Amplifiers are selected such that they contribute little or no phase shift at the
oscillation frequency. A single pole RL or RC circuit contributes up to 90° phase
shift per pole, and because 180° is required for oscillation, at least two poles must
be used in oscillator design.
An LC circuit has two poles; thus, it contributes up to 180° phase shift per pole
pair, but LC and LR oscillators are not considered here because low frequency
inductors are expensive, heavy, bulky, and non-ideal. LC oscillators are designed
in high frequency applications beyond the frequency range of voltage feedback op
amps, where the inductor size, weight, and cost are less significant.
When buffered RC sections (an op amp buffer provides high input and low output
impedance) are cascaded, the phase shift multiplies by the number of sections, n
(see Figure 2).
Although two cascaded RC sections provide 180° phase shift, dS/dt at the
oscillator frequency is low, thus oscillators made with two cascaded RC sections
have poor frequency stability. Three equal cascaded RC filter sections have a
higher dS/dt, and the resulting oscillator has improved frequency stability.
Adding a fourth RC section produces an oscillator with an excellent dS/dt, thus this
is the most stable oscillator configuration. Four sections are the maximum number
used
because op amps come in quad packages, and the four-section oscillator yields four
sine waves that are 45° phase shifted relative to each other, so this oscillator can be
used to obtain sine/cosine or quadrature sine waves.
Applications
Crystal or ceramic resonators make the most stable oscillators because resonators
have an extremely high dS/dt resulting from their non-linear properties.
Resonators are used for high- frequency oscillators, but low-frequency oscillators
do not use resonators because of size, weight, and cost restrictions.
Op amps are not used with crystal or ceramic resonator oscillators because op
amps have low bandwidth. It is more cost-effective to build a high- frequency
crystal oscillator and count down the output to obtain a low frequency than it is to
use a low-frequency resonator.
Gain in Oscillators:
The oscillator gain must equal one (Aβ = 1–180°) at the oscillation frequency. The
circuit becomes stable when the gain exceeds one and oscillations cease. When the
gain exceeds one with a phase shift of –180°, the active device non-linearity
reduces the gain to one.
The non-linearity happens when the amplifier swings close to either power rail
because cutoff or saturation reduces the active device (transistor) gain. The
paradox is that worst-case design practice requires nominal gains exceeding one
for manufacturability, but excess gain causes more distortion of the output sine
wave.
When the gain is too low, oscillations cease under worst-case conditions, and when
the gain is too high, the output wave form looks more like a square wave than a
sine wave.
Distortion is a direct result of excess gain overdriving the amplifier; thus, gain
must be carefully controlled in low distortion oscillators.
Sine wave oscillator circuits use phase shifting techniques that usually employ
When ω = 2πf = 1/RC, the feedback is in phase (this is positive feedback), and the
gain is 1/3, so oscillation requires an amplifier with a gain of 3. When RF = 2RG,
the amplifier gain is 3 and oscillation occurs at f = 1/2πRC. The circuit oscillated at
1.65 kHz rather than 1.59 kHz with the component values shown in Figure 3, but
the distortion is noticeable.
Figure 4 shows a Wien-bridge circuit with non-linear feedback. The lamp
resistance, RL, is nominally selected as half the feedback resistance, RF, at the
lamp current established by RF and RL. The non-linear relationship between the
lamp current and resistance keeps output voltage changes small.
Where vin is the input voltage, vout is the output voltage, and Zf is the feedback
impedance. If the voltage gain of the amplifier is defined as:
If Av is greater than 1, the input admittance is a negative resistance in parallel with
an inductance.
If a capacitor with the same value of C is placed in parallel with the input, the
circuit has a natural resonance at:
For Av = 3: Rin = − R
If a resistor is placed in parallel with the amplifier input, it will cancel some of the
negative resistance. If the net resistance is negative, amplitude will grow until
clipping occurs.
Increasing the gain makes the net resistance more negative, which increases
amplitude. If gain is reduced to exactly 3 when suitable amplitude is reached,
stable, low distortion oscillations will result.
Multivibrators
Astable Multivibrator
The two states of circuit are only stable for a limited time and the circuit switches
between them with the output alternating between positive and negative saturation
values.
Analysis of this circuit starts with the assumption that at time t=0 the output has
just switched to state 1, and the transition would have occurred.
An op-amp Astable multivibrator is also called as free running oscillator. The basic
principle of generation of square wave is to force an op-amp to operate in the
saturation region (±Vsat).
Asymmetrical square wave can also be generated with the help of Zener diodes.
Astable multi vibrator do not require a external trigger pulse for its operation &
output toggles from one state to another and does not contain a stable state.
Design
circuit diagram:
A multivibrator which has only one stable and the other is quasi stable state is
called as Monostable multivibrator or one-short multivibrator. This circuit is useful
for generating signal output pulse of adjustable time duration in response to a
triggering signal. The width of the output pulse depends only on the external
components connected to the op-amp. Usually a negative trigger pulse is given to
make the output switch to other state. But, it then return to its stable state after a
time interval determining by circuit components. The pulse width T can be given
as T = 0.69RC. For Monostable operation the triggering pulse width Tp should be
less then T, the pulse width of Monostable multivibrator. This circuit is also called
as time delay circuit or gating circuit.
Design:
This signal generator gives two waveforms: a triangle-wave and a square- wave.
The central component of this circuit is the integrator capacitor CI. Basically we
are interested in performing two functions on CI: charge it, discharge it - repeat
indefinitely. The output waveforms are shown here and it is apparent that a square
wave generator followed by an integrator acts as a triangular wave generator.
The triangle peaks and period may not accurately meet +/-10V swing at 100 us.
The main reason is that current source and thresholds are derived from Zener
diodes - not exactly the most accurate reference.
Ramp Up
Connect RI to VN and With V- held at the virtual ground (0V), a constant current
flows from V- to VN.
Iin = VN / RI.
CI integrates Iin creating a positive linear ramp at Vo. The ramp is linear because
Vo changes proportionally to the time elapsed ΔT.
Iin = - VP / RI.
Vth+ =VREF∙(R1+R2)/R2-VN∙R1/R2
With one leg of RI at VN, the output ramps up until the Upper Threshold
(Vth+ ) is reached. Then RI is switched from VN to VP.
With one leg of RI at VP, the output ramps down until the Lower Threshold
(Vth- ) is reached. Then RI is switched from VP to VN.
Comparator:
Vth+=-VN∙R1/R2
Vth- = -VP ∙ R1 / R2
Comparator Working:
o When Vin > Vth+, the output switches to VP, the POSITIVE output state.
o When Vin < Vth-, the output switches to VN, the NEGATIVE output state.
Zener diodes D1 and D2 set the positive and negative output levels:
These output levels do double duty - they set the comparator thresholds, and set the
voltage levels for the next stage - the integrator.
At the circuit diagram above, IC(1/2) is the Schmitt circuit and IC(2/2) is the
Integration circuit. The difference with the triangular wave oscillator is to be
changing the time of the charging and the discharging of the capacitor. When the
output of IC (1/2) is positive voltage, it charges rapidly by the small resistance
(R1) value.
(When the integration output voltage falls) When the output of IC(1/2) is negative
voltage, it is made to charge gradually at the big resistance(R2) value. The output
waveform of the integration circuit becomes a form like the tooth of the saw. Such
voltage is used for the control of the electron beam (the scanning line) of the
television,
Like the triangular wave oscillator, the line voltage needs both of the positive
power supply and the negative power supply. Also, to work in the oscillation, the
condition of R3>R4 is necessary. However, when making the value of R4 small
compared with R3, the output voltage becomes small. The near value is good for
R3 and R4
f = (1/2C (R1+R2))*(R3/R4)
= (1/(2x0.1x10-6x(5.6x103+100x103))x(120x103/100x103)
= (1/(21.12x10-3))x1.2
= 56.8 Hz
The distortion in the sine wave output can be reduced by adjusting the 100KΩ pots
connected between pin12 & pin11 and between pin 1 & 6.
Sine wave output is available at this pin. The amplitude of this sine wave is 0.22
Vcc. Where ± 5V ≤ Vcc ≤ ± 15 V.
Triangular wave is available at this pin. The amplitude of the triangular wave is
0.33Vcc.
Where ± 5V ≤ Vcc ≤ ± 15 V.
The symmetry of all the output wave forms & 50% duty cycle for the square wave
output is adjusted by the external resistors connected from Vcc to pin 4. These
external resistors & capacitors at pin 10 will decide the frequency of the output
wave forms.
Pin 6 + Vcc:
Positive supply voltage the value of which is between 10 & 30V is applied to this
pin.
Pin 7 : FM Bias:
This pin along with pin no8 is used to TEST the IC 8038.
A square wave output is available at this pin. It is an open collector output so that
this pin
can be connected through the load to different power supply voltages. This
arrangement is very useful in making the square wave output.
If a single polarity supply is to be used then this pin is connected to supply ground
& if (±) supply voltages are to be used then (-) supply is connected to this pin.
5. Easy to use.
Parameters:
The output frequency dependent on the values of resistors R1 & R2 along with the
external capacitor C connected at pin 10.
If RA= RB = R & if RC is adjusted for 50% duty cycle then f0= 0.3/RC; RA = R1,
RB =
Duty cycle as well as the frequency of the output wave form can be adjusted by
external resistors at pin 4 & 5.
The values of resistors RA & RB connected between Vcc pin 4 & 5 respectively
along
with the capacitor connected at pin 10 decide the frequency of the wave form. The
values of RA & RB should be in the range of 1kΩ to 1MΩ.
(iii)FM Bias:
• The FM Bias input (pin7) corresponds to the junction of resistors R1 & R2.
• The voltage Vin is the voltage between Vcc & pin8 and it decides the output
frequency.
With pin 7 & 8 connected to each other the output frequency is given by f0=
0.3/RC where R = RA = RB for 50% duty cycle.
• Vin=R1Vcc/R1+R2
• The voltage between Vcc & pin 8 is called Vin and it decides the output
frequency as,
f0=1.5 Vin/CRAVCC
A potentiometer can be connected to this pin to obtain the required variable voltage
required to change the output frequency.
Pin description:
Pin 1: Ground:
Pin 2: Trigger:
The o/p of the timer depends on the amplitude of the external trigger pulse applied
to this pin.
Pin 3: Output:
There are 2 ways a load can be connected to the o/p terminal either between pin3
& ground or between pin 3 & supply voltage
(Between Pin 3 & Ground ON load) (BetweenPin 3 & + Vcc OFF load)
The load current flows through the load connected between Pin 3 & +Vcc in to the
output terminal & is called the sink current.
The current through the load connected between Pin 3 & +Vcc (i.e. ON load) is
zero. However the output terminal supplies current to the normally OFF load. This
current is called the source current.
Pin 4: Reset:
The 555 timer can be reset (disabled) by applying a negative pulse to this pin.
When the reset function is not in use, the reset terminal should be connected to
+Vcc to avoid any false triggering.
An external voltage applied to this terminal changes the threshold as well as trigger
voltage. In other words by connecting a potentiometer between this pin & GND,
the pulse width of the output waveform can be varied. When not used, the control
pin should be bypassed to ground with 0.01 capacitor to prevent any noise
problems.
Pin 6: Threshold:
This is the non inverting input terminal of upper comparator which monitors the
voltage across the external capacitor.
Pin 7: Discharge:
Pin 8: +Vcc:
The supply voltage of +5V to +18V is applied to this pin with respect to ground.
From the above figure, three 5k internal resistors act as voltage divider providing
bias voltage of 2/3 Vcc to the upper comparator & 1/3 Vcc to the lower
comparator. It is possible to vary time electronically by applying a modulation
voltage to the control voltage input terminal (5).
The output of the control FF is high. This means that the output is low because of
power amplifier which is basically an inverter. Q = 1; Output = 0
The trigger passes through (Vcc/3) the output of the lower comparator goes high &
sets the FF. Q = 1; Q = 0
It passes through 2/3Vcc, the output of the upper comparator goes high and resets
the FF. Q = 0; Q = 1
The reset input (pin 4) provides a mechanism to reset the FF in a manner which
overrides the effect of any instruction coming to FF from lower comparator.
Monostable Operation:
Initially when the output is low, i.e. the circuit is in a stable state, transistor Q1 is
ON & capacitor C is shorted to ground. The output remains low. During negative
going trigger pulse, transistor Q1 is OFF, which releases the short circuit across the
external capacitor C & drives the output high. Now the capacitor C starts charging
toward Vcc through RA. When the voltage across the capacitor equals 2/3 Vcc,
upper comparator switches from low to high. i.e. Q = 0, the transistor Q1 = OFF ;
the output is high.
Since C is unclamped, voltage across it rises exponentially through R towards Vcc
with a time constant RC (fig b) as shown in below. After the time period, the upper
comparator resets the FF, i.e. Q = 1, Q1 = ON; the output is low.[i.e discharging
the capacitor C to ground potential (fig c)]. The voltage across the capacitor as in
fig (b) is given by
or
T = RC ln (1/3)
Or
A modulating signal is fed in to the control voltage (pin 5). Internally, the control
voltage is adjusted to 2/3 Vcc externally applied modulating signal changes the
control voltage level of upper comparator. As a result, the required to change the
capacitor up to threshold voltage level changes, giving PWM output.
This application makes use of the fact that the output pulse width (timing interval)
of the monostable multivibrator is of longer duration than the negative pulse width
of the input trigger. As such, the output pulse width of the monostable
multivibrator can be viewed as a stretched version of the narrow input pulse, hence
the name “Pulse stretcher”.
Often, narrow –pulse width signals are not suitable for driving an LED display,
mainly because of their very narrow pulse widths. In other words, the LED may be
flashing but not be visible to the eye because its on time is infinitesimally small
compared to its off time. The 55 pulse stretcher can be used to remedy this
problem. The LED will be ON during the timing interval tp = 1.1RAC which can
be varied by changing the value of RA & C.
Capacitor C starts charging toward Vcc through RA & RB. However, as soon as
voltage across the capacitor equals 2/3 Vcc. Upper comparator triggers the FF &
output switches low.
Capacitor C starts discharging through RB and transistor Q1, when the voltage
across C equals 1/3 Vcc, lower comparator output triggers the FF & the output
goes high. Then cycle repeats. The capacitor is periodically charged & discharged
between 2/3 Vcc & 1/3 Vcc respectively. The time during which the capacitor
charges from 1/3 Vcc to 2/3 Vcc equal to the time the output is high & is given by
= 0.69 (RA+RB) C
Similarly, the time during which the capacitors discharges from 2/3 Vcc to 1/3 Vcc
is equal to the time, the output is low and is given by,
tc = RB C ln 2
td = 0.69 RB C …………………..(2)
The astable multivibrator can be used as a free – running ramp generator when
resistor
The current mirror starts charging capacitor C toward Vcc at a constant rate.
When voltage across C equals to 2/3 Vcc, upper comparator turns transistor
Q1 ON and C rapidly discharges through transistor Q1.
The time period of the ramp waveform is equal to the charging time & is
approximately is given by,
T = VccC/3IC
f0 = 3IC/ Vcc C
Linear Regulators
All electronic circuits need a dc power supply for their operation. To obtain
this dc voltage from 230 V ac mains supply, we need to use rectifier.
Therefore the filters are used to obtain a “steady” dc voltage from the
pulsating one.
The filtered dc voltage is then applied to a regulator which will try to keep the
dc output voltage constant in the event of voltage fluctuations or load variation.
The combination of rectifier & filter can produce a dc voltage. But the problem
with this type of dc power supply is that its output voltage will not remain constant
in the event of fluctuations in an AC input or changes in the load current(IL).
The voltage regulator is a specially designed circuit to keep the output voltage
constant. It does not remain exactly constant. It changes slightly due to changes in
certain parameters.
i) IL (Load Current)
iii) T (Temperature)
IC Voltage Regulators:
1. Programmable output
4. Thermal shutdown
IC Voltage Regulator
c. Switching Reg
Fixed & Adjustable output Voltage Regulators are known as Linear Regulator.
A series pass transistor is used and it operates always in its active region.
Switching Regulator:
LM317 is designed in such as that Iadj is very small & constant with changes
in line voltage & load current.
Current Iadj is very small. Therefore the second term in (2) can be neglected.
Eqn (3) indicates that we can vary the output voltage by varying the resistance R 2.
The value of R1 is normally kept constant at 240 ohms for all practical applications.
If LM317 is far away from the input power supply, then 0.1μf disc type or 1μf
tantalum capacitor should be used at the input of LM317.
The adjustment terminal is bypassed with a capacitor C2 this will improve the
ripple rejection ratio as high as 80 dB is obtainable at any output level.
When the filter capacitor is used, it is necessary to use the protective diodes.
These diodes do not allow the capacitor C2 to discharge through the low
current point of the regulator.
These diodes are required only for high output voltages (above 25v) & for
higher values of output capacitance 25μf and above.
Features of IC723:
The temperature compensated Zener diode, constant current source & voltage
reference amplifier together from the reference generating block. The Zener diode
is used to generate a fixed reference voltage internally. Constant current source
will make the Zener diode to operate at affixed point & it is applied to the Non –
inverting terminal of error amplifier. The Unregulated input voltage ±Vcc is
applied to the voltage reference amplifier as well as error amplifier.
2. Error Amplifier:
Error amplifier is a high gain differential amplifier with 2 input (inverting & Non-
inverting). The Non-inverting terminal is connected to the internally generated
reference voltage. The Inverting terminal is connected to the full regulated output
voltage.
Q1 is the internal series pass transistor which is driven by the error amplifier. This
transistor actually acts as a variable resistor & regulates the output voltage. The
collector of transistor Q1 is connected to the Un-regulated power supply. The
maximum collector voltage of Q1 is limited to 36Volts. The maximum current
which can be supplied by Q1 is 150mA.
The internal transistor Q2 is used for current sensing & limiting. Q2 is normally
OFF transistor. It turns ON when the IL exceeds a predetermined limit.
Low voltage, Low current is capable of supplying load voltage which is equal to or
between 2 to 7Volts.
Vnon-inv = Vin
Therefore the Vo is connected to the Inverting terminal through R 3 & RSC must
also be equal to Vnon-inv
R3 = R1ll R2 =R1R2/(R1+R2)
Rsc (current sensing resistor) is connected between Cs & CL. The voltage drop
across Rsc is proportional to the IL.
This resistor supplies the output voltage in the range of 2 to 7 volts, but the
load current can be higher than 150mA.
The Non – inverting terminal is now connected to Vref through resistance R3.
Vo = [1+R1/R2] Vin
Rsc is connected between CL & Cs terminals as before & it provides the
short Circuit current limiting Rsc =0.6/Ilimit
An external transistor Q is added in the circuit for high voltage low current
regulator to improve its current sourcing capacity.
For this circuit the output voltage varies between 7 & 37V.
Switching Regulators
Introduction
Smaller size.
The primary filter capacitor is placed on the input to the regulator to help filter out
the 60 cycle ripple. If the output voltage is 12 volts and the input voltage is 24
volts then we must drop 12 volts across the regulator. At output currents of 10
amps this translates into 120 watts (12 volts times 10 amps) of heat energy that the
regulator must dissipate into heat.
The switching regulator is much more efficient than the linear regulator achieving
efficiencies as high as 80% to 95% in some circuits. The obvious result is smaller
heat sinks, less heat and smaller overall size of the power supply.
The switching regulator is really nothing more than just a simple switch. This
switch goes on and off at a fixed rate usually between 50 Khz to 100Khz as set by
the circuit.
Operation:
Diode D1 has to be a Schottky or other very fast switching diode. Inductor L1must
be a type of core that does not saturate under high currents. Capacitor C1 is
normally a low ESR (Equivalent Series Resistance) type.
To understand the action of D1 and L1, let’s look at what happens when S1 is
closed as indicated below:
L1, which tends to oppose the rising current, begins to generate an electromagnetic
field in its core. Diode D1 is reversed biased and is essentially an open circuit at
this point.
Because the switching system operates in the 50 to 100 kHz region and has an
almost square waveform, it is rich in harmonics way up into the HF and even the
VHF/UHF region Four most commonly used switching converter types:
Fly back: an output voltage that is less than or greater than the input can be
generated, as well as multiple outputs.
Converters:
Switching Regulator:
To minimize the power dissipation during switching, the external transistor used
must be a switching power transistor.
Thus the output voltage is proportional to the pulse width and frequency.
The efficiency of a series switching regulator is independent of the input &
output differential & can approach 95%
2. Switch S1
4. Filter F1
It must supply the required output power & the losses associated with the
switching regulator.
It must be large enough to supply sufficient dynamic range for line & load
regulations.
It may be required to store energy for a specified amount of time during power
failures.
2. Switch S1:
The duty cycle of the pulse wave form determines the relationship between the
input & output voltages. The duty cycle is the ratio of the on time ton, to the period
T of the pulse waveform.
Where
ton = On-time of the pulse waveform toff=off-time of the pulse wave form
=1/frequency or T = 1/f
Lower operating frequency improve efficiency & reduce electrical noise, but
require large filter components (inductors & capacitors).
3. Filter F1:
It converts the pulse waveform from the output of the switch into a dc voltage.
Since this switching mechanism allows a conversion similar to transformers, the
switching regulator is often referred to as a dc transformer.
The output voltage Vo of the switching regulator is a function of duty cycle & the
input voltage Vin.
Vo is expressed as follows,
i) Step – Down
ii) Step – Up
The internal switching frequency is set by the timing capacitor CT, connected
between pin12 & ground pin 11. The initial duty cycle is 6:1. The switching
frequency & duty cycle can be modified by the current limit circuitry, IPK sense,
pin14, 7 the comparator, pin9 & 10.
Comparator:
The comparator modifies the OFF time of the output switch transistor Q1 & Q2. In
the step – up & step down modes, the non-inverting input(pin9) of the comparator
is connected to the voltage reference of 1.3V (pin8) & the inverting input (pin10) is
connected to the output terminal via the voltage divider network.
In the Inverting mode the non – inverting input is connected to both the
voltage reference & the output terminal through 2 resistors & the inverting
terminal is connected to ground.
When the output voltage is correct, the comparator output is in high state &
has no effect on the circuit operation.
However, if the output is too high & the voltage at the inverting terminal is
higher than that at the non-inverting terminal, then the comparator output goes low.
In the LOW state the comparator inhibits the turn on of the output switching
transistors. This means that, as long as the comparator output is low, the system is
in off time.
As the output current rises or the output voltage falls, the off time of the
system decreases.
Consequently, as the output current nears its maximum IoMAX, the off time
approaches its minimum value.
In all 3 modes (Step down, step up, Inverting), the current limit circuit is
completed by connecting a sense resistor Rsc, between IPK sense & Vcc.
The current limit circuit is activated when a 330mV potential appears across
Rsc.
Rsc is selected such that 330mV appears across it when the desired peak
current IPK, flows through it.
When the peak current is reached, the current limit circuit is turned on.
The forward voltage drop, VD, across the internal power diode is used to
determine the value of inductor L off time & efficiency of the switching regulator.
In the step down mode an “output saturation volt” is 1.1V typical, 1.3VMAX.
In the step up mode an “Output saturation volt” is 0.45V typical, 0.7 maximum.
The desired peak current value is reached; the current limiting circuit turns ON &
immediately terminates the ON time & starts OFF time.
If the IL decreased then Vout increased, to compensate for this, the OFF time of
the output is increased automatically.
CT is the timing capacitor which decides the switching frequency. Rsc is the
current sensing resistance. Its value is given by
The Non-inverting terminal of the internal op-amp (pin9) is connected to the
1.3V reference (pin8).
Resistances R1 & R2 from a potential divider, across the output voltage Vo.
Their value should be such that the potential at the inverting input of the op-amp
should be equal to 1.3V ref when Vo is at its desired level.
The output capacitance Co is used for reducing the ripple contents in the output
voltage. It acts as a filter along with the inductor L.
The inductor L is a part of filter connected on the output side, to reduce the
ripple percentage.
The 0.1μF capacitor connected between pin8 & ground bypasses any noise
voltage coupled to the reference (pin8).
(ii) Step – Up Switching Regulator:
When Q1 is ON, the output is shorted & the collector current of Q1 flows
through L.
The inductor stores the energy. When the Q1 is turned OFF, there is a self
induced emf that appears across the inductor with polarities.
Vo = Vin + VL
Hence it will be always higher than Vin & step up operation is achieved.
(iii) Inverting Switching Regulator:
Basic Representation:
The simplest switched capacitor (SC) circuit is the switched capacitor resistor,
made of one capacitor C and two switches S1 and S2 which connect the capacitor
with a given frequency alternately to the input and output of the SC. Each
switching cycle transfers a charge q from the input to the output at the switching
frequency f. Recall that the charge q on a capacitor C with a voltage V between the
plates is given by:
q=CV
where V is the voltage across the capacitor. Therefore, when S1 is closed while S2
is open, the charge transferred from the source to CS is:
qIN=CSVIN
And when S2 is closed while S1 is open, the charge transferred from CS to the load
is:
qOUT = CSVOUT
Q=qOUT-qIN=Cs(VOUT-VIN)
Since a charge q is transferred at a rate f, the rate of transfer of charge per unit time
is:
I=qf
Note that we use I, the symbol for electric current, for this quantity. This is to
demonstrate that a continuous transfer of charge from one node to another is
equivalent to a current. Substituting for q in the above, we have:
I=Cs(VOUT-VIN)f
Let us define V, the voltage across the SC from input to output, thus:
V=VOUT-VIN
R=V/I=1/Csf
This same circuit can be used in discrete time systems (such as analog to digital
converters) as a track and hold circuit. During the appropriate clock phase, the
capacitor samples the analog voltage through switch one and in the second phase
presents this held sampled value to an electronic circuit for processing.
The switched capacitor filter allows for very sophisticated, accurate, and tuneable
analog circuits to be manufactured without using resistors.
Advantages: resistors are hard to build on integrated circuits (they take up a lot
of room), and the circuits can be made to depend on ratios of capacitor values
(which can be set accurately), and not absolute values (which vary between
manufacturing runs).
Consider the circuit shown with a capacitor connected to two switches and two
different voltages.
∆q=C1(v2-v1)
If this switching process is repeated N times in a time (t, the amount of charge
transferred per unit time is given by
∆q/∆t=C1(v2-v1) N/∆t
the number of cycles per unit time is the switching frequency (or clock frequency,
fCLK)
i= C1(v2-v1) fCLK
Rearranging we get
(v2-v1) / I = [ 1/ C1 fCLK ] -R
Which states that the switched capacitor is equivalent to a resistor? The value of
this resistor decreases with increasing switching frequency or increasing
capacitance, as either will increase the amount of charge transferred from V 2 to
V1 in a given time.
Now consider the integrator circuit. You have shown (in a previous lab) that the
input-output relationship for this circuit is given by (neglecting initial conditions):
We can also write this with the "s" notation (assuming a sinusoidal input, Ae st,
s=jω)
If you replaced the input resistor with a switched capacitor resistor, you would get
Thus, you can change the equivalent ω' of the circuit by changing the clock
frequency. The value of ω' can be set very precisely because it depends only on the
ratio of C1 and C2, and not their absolute value.
MF10:
The MF10 contains two of the second-order universal filter sections found in the
MF5. Therefore with MF10, two second order filters or one fourth-order filter can
be built. As the MF5 and MF10 have similar filter sections, the design procedure
for them is same.
Frequency to Voltage (F-V) and voltage to frequency convertors (V-
F)
It is basically a FM discriminator.
Input frequency is applied to comparator A.
For negative spike of V 01, comparator COMP triggers one shot multivibrator with
threshold 7.5V The output of multivibrator closes the switch SW, for a time TH,
this causes voltage Vo to build up and inject thru R and this continues until current
out of summing input of opamp is equal to that injected by Vo through R
continuously.
When switch SW is open the current flows into capacitor Ci and charges it, and
node voltage Vo1 produce ramp down.
When V01 =0 CMP triggers and sends a triggering signal to one shot multivibrator
that closes the switch SW and turns transistor Q ON for time TH.
F0=Vi/7.5 RC
Power Audio Amplifier IC LM 380:
Introduction:
Small signal amplifiers are essentially voltage amplifier that supplies their loads
with larger amplifier signal voltage.
On the other hand, large signal or power amplifier supply a large signal current to
current operated loads such as speakers & motors.
In audio applications, however, the amplifier called upon to deliver much higher
current than that supplied by general purpose op-amps. This means that loads such
as speakers & motors requiring substantial currents cannot be driven directly by
the output of general purpose op-amps. To handle it following is done
Features of LM380:
7. High impedance.
LM380 circuit description:
It is connected of 4 stages,
The choice of PNP input transistors Q1 & Q2 allows the input to be referenced
to ground i.e., the input can be direct coupled to either the inverting & non-
inverting terminals of the amplifier.
The current in the PNP differential pair Q3-Q4 is established by Q7, R3 & +V.
The current mirror formed by transistor Q7, Q8 & associated resistors then
establishes the collector current of Q9.
Transistor Q5 & Q6 constitute of collector loads for the PNP differential pair.
D1 & D2 are temperature compensating diodes for transistors Q10 & Q11 in
that D1 & D2 have the same characteristics as the base-emitter junctions of Q11.
Therefore the current through Q10 & (Q11-Q12) is approximately equal to the
current through diodes D1 & D2.
Emitter follower formed by NPN transistor Q10 & Q11. The combination of
PNP transistor Q11 & NPN transistor Q12 has the power capability of NPN
transistors but the characteristics of a PNP transistor.
To decouple the input stage from the supply voltage +V, by pass capacitor in
order of micro farad should be connected between the bypass terminal (pin 1) &
ground (pin 7).
The overall internal gain of the amplifier is fixed at 50. However gain can be
increased by using positive feedback.
Applications:
When the power amplifier is used in the non inverting configuration, the
inverting terminal may be either shorted to ground, connected to ground through
resistors & capacitors.
Similarly when the power amplifier is used in the inverting mode, the non
inverting terminal may be either shorted to ground or returned to ground through
resistor or capacitor.
The increase in gain is possible due to the use of positive feedback, this setup
to obtain a gain 200.
With this arrangement we get an output voltage swing which is twice that of a
single LM380 amplifier.
As the voltage is doubled, power output will increase by four times that of a
single LM380 amplifier. The pot R4 is used to balance the output offset voltages of
the two chips.
(v) Intercom system using LM 380:
When the switch is in Talk mode position, the master speaker acts as a
microphone.
In either phone the overall gain of the circuit is the same depends on the turns
of transformer T.
They are used to couple signal from one point to other optically, by providing
a complete electric isolation between them. This kind of isolation is provided
between a low power control circuit & high power output circuit, to protect the
control circuit.
It is defined as the ratio of output collector current (Ic) to the input forward current
(If)
CTR = Ic/If * 100%. Its value depends on the devices used as source & detector.
It is the maximum voltage which can exist differentially between the input &
output without affecting the electrical isolation voltage is specified in K Vrms with
a relative humidity of 40 to 60%.
Response time indicates how fast an opto coupler can change its output state.
Response time largely depends on the detector transistor, input current & load
resistance.
Even though the opto couplers are electrically isolated for dc & low frequency
signals, an impulsive input signal (the signal which changes suddenly) can give
rise to a displacement current Ic= Cf*dv/dt. This current can flow between input &
output due to the capacitance Cf existing between input & output. This allows the
noise to appear in the output. Depending on the type of light source & detector
used we can get a variety of opto couplers.
LED photodiode shown in figure, here the infrared LED acts as a light source
& photodiode is used as a detector.
The advantage of using the photodiode is its high linearity. When the pulse at
the input goes high, the LED turns ON. It emits light. This light is focused on the
photodiode.
In response to this light the photocurrent will start flowing though the
photodiode. As soon as the input pulse reduces to zero, the LED turns OFF & the
photocurrent through the photodiode reduces to zero. Thus the pulse at the input is
coupled to the output side.
(ii) LED – Phototransistor Opto coupler:
The LED phototransistor opto coupler shown in figure. An infrared LED acts
as a light source and the phototransistor acts as a photo detector.
This is the most popularly used opto coupler, because it does not need any
additional amplification.
When the pulse at the input goes high, the LED turns ON. The light emitted by
the LED is focused on the CB junction of the phototransistor.
The input & output waveforms are 180º out of phase as the output is taken at
the collector of the phototransistor
Due to unidirectional signal transfer, noise from the output side does not get
coupled to the input side.
Disadvantages:
Slow speed.
Applications:
Opto couplers are used basically to isolate low power circuits from high power
circuits.
At the same time the control signals are coupled from the control circuits to
the high power circuits.
One of the most important applications of an opto coupler is to couple the base
driving signals to a power transistor connected in a DC-DC chopper.
Opto coupler IC:
The optocouplers are available in the IC form MCT2E is the standard optocoupler
IC which is used popularly in many electronic application.
This input is applied between pin 1& pin 2. An infrared light emitting diode is
connected between these pins.
The infrared radiation from the LED gets focused on the internal
phototransistor.
The base of the phototransistor is generally left open. But sometimes a high
value pull down resistance is connected from the Base to ground to improve the
sensitivity.
The block diagram shows the opto-electronic-integrated circuit (OEIC) and the
major components of a fiber-optic communication facility.
The block diagram shows the opto-electronic-integrated circuit (OEIC) and the
major components of a fiber-optic communication facility.