18ec42 Module 5 (SB Bkit)
18ec42 Module 5 (SB Bkit)
18ec42 Module 5 (SB Bkit)
1
Linear IC based circuits.
Contents:
Op-Amp Circuits:
Text Books:
8
i) DAC Converter with binary Weighted resistors:
13
Where each of the inputs b3, b2, b1, and b0 may
either be high (+5V) or low (0V)
15
Advantages:
Disadvantages:
16
ii) DAC CONVERTER
WITH R-2R RESISTORS:
17
R-2R Resistive Ladder Network
• As its name implies, the “ladder” description comes
from the ladder-like configuration of the resistors
used within the network.
• A R-2R resistive ladder network provides a simple
means of converting digital voltage signals into an
equivalent analogue output.
• Input voltages are applied to the ladder network at
various points along its length and the more input
points the better the resolution of the R-2R ladder.
• The output signal as a result of all these input
voltage points is taken from the end of the ladder
which is used to drive the inverting input of an
operational amplifier.
18
Then a R-2R resistive ladder network is nothing
more than long strings of parallel and series
connected resistors acting as interconnected
voltage dividers along its length, and whose output
voltage depends soley on the interaction of the
input voltages with each other.
19
ii. DAC CONVERTER WITH R-2R RESISTORS:
20
The figure shows a D/A converter with R and 2R
resistors.
The binary inputs are simulated by switches b0
through b3, and the output is proportional to the
binary inputs.
Binary inputs can be in either the high (+5V) or low
(0V) state.
Assume that the most significant bit (MSB) switch
b3 is connected to +5V and other switches are
connected to ground, as shown in the figure
21
By applying Thevenin's theorem for the R-2R ladder
circuit, Equivalent resistance RTH is calculated as
𝑅𝑇𝐻 = [{[(2𝑅 || 2𝑅 + 𝑅 )|| 2𝑅] + 𝑅 }|| 2𝑅 ]+ 𝑅 = 2𝑅 =
20𝑘Ω
The resultant circuit after applying Thevenin's
theorem is as shown below
22
In the figure shown above, the negative input is
at virtual ground;
therefore the current through RTH is 0A.
The Current through 2R connected to +5V is
𝐼 = 5𝑉 20𝑘 Ω = 0.25𝑚𝐴
The same current I flows through RF and in turn
produces the output voltage of
𝑉𝑂 = − 20𝑘Ω 0.25𝑚𝐴 = −5𝑉
23
Where each of the inputs b3, b2, b1, and b0 may be
either high (+5V) or low (0V).
The below graph shows the analog outputs versus
possible combinations of
inputs.
24
Advantages:
• Only two resistor values are used in R-2R ladder type.
• It does not need as precision resistors as Binary
weighted DACs.
• It is cheap and easy to manufacture.
Disadvantages:
• It has slower conversion rate.
26
This 4-bit resistive ladder circuit may look
complicated, but its all about connecting resistors
together in parallel and series combinations and
working back to the input source using simple circuit
laws to find the proportional value of the output.
Lets assume all the binary inputs are grounded at 0
volts, that is: VA = VB = VC = VD = 0V (LOW).
The binary code corresponding to these four inputs
will therefore be: 0000.
27
Starting from the left hand side and using the simplified
equation for two parallel resistors and series resistors, we can
find the equivalent resistance of the ladder network as
28
Then RA is equivalent to “2R”. Now we can see that the
equivalent resistance “RA” is in parallel with R4 with the parallel
combination in series with R5.
29
So RB combination is equivalent to “2R”. Hopefully we can see
that this equivalent resistance RB is in parallel with R6 with the
parallel combination in series with R7 as shown.
30
Again, resistor combination RC is equivalent to “2R” which is
in parallel with R8 as shown
Input VA is HIGH and logic level “1” and all the other inputs
grounded at logic level “0”. As the R/2R ladder network is a
linear circuit we can find Thevenin’s equivalent resistance using
the same parallel and series resistance calculations as above to
calculate the expected output voltage. The output voltage,
VOUT is therefore calculated at 312.5 milli-volts (312.5 mV). 33
• As we have a 4-bit R-2R resistive ladder network,
this 312.5 mV voltage change is one-sixteenth the
value of the +5V input (5/0.3125 = 16) voltage so is
classed as the Least Significant Bit, (LSB).
34
R-2R DAC with Input VB
With input VB HIGH and logic level “1” and all the other inputs
grounded at logic level “0”, the output voltage, VOUT is calculated
at 625mV, and which is one-eighth (1/8th) the value of the +5V
input (5/0.625 = 8) voltage.
We can also see that it is double the output voltage when only
input bit VA was applied, and we would expect this as its the
2nd bit (input) so has double the weighting of the 1st bit. 35
R-2R DAC with Input VC
.With input VC HIGH and logic level “1” and the other input bits
at logic level “0”, the output voltage, VOUT is calculated at 1.25
volts, and which is one-quarter (1/4) the value of the +5V input
(5/1.25 = 4) voltage.
.Again we can see that this voltage is double the output of input
bit VB but also 4 times the value of bit VA.
• This is because input VC is the 3rd bit so has double the
weighting of the 2nd bit and four times the weighting of the 36
R-2R DAC with Input Vd
With only input VD HIGH and logic level “1” and the other inputs
at logic level “0”, the output voltage, VOUT is calculated at 2.5
volts. This is on-half (1/2) the value of the +5V input (5/2.5 = 2)
voltage.
Again we can see that this voltage is double the output of input
bit VC, 4 times the value of bit VB and 8 times the value of input
bit VA as it is the 4th bit and therefore classed as the Most
37
Significant Bit, (MSB).
Digital-to-Analogue Output Voltage Equation
40
41
Notice that the full-scale analogue output voltage for
a binary code of 1111 never reaches the same value
as the digital input voltage (+5V) but is less by the
equivalent of one LSB bit, (312.5mV in this example).
• However, the higher the number of digital input
bits (resolution) the nearer the analogue output
voltage reaches full-scale when all the input bits
are HIGH.
• Likewise when all the input bits are LOW, the
resulting lower resolution of LSB makes
VOUT closer to zero volts.
42
Analog to Digital Converter
Circuit
SUCCESSIVE-APPROXIMATION
A/D CONVERTER:
43
What is an analog-digital converter?
The output of a microphone, the voltage at a
photodiode or the signal of an accelerometer are
examples of analog values that need to be converted so
that a microprocessor can work with them. light
entering a digital camera, into a digital signal.
Application of ADC
• Used in computer to convert the analog signal to
digital signal.
• Used in cell phones.
• Used in microcontrollers.
• Used in digital signal processing
44
ADC’s Analog-to-Digital Converters basics
• As much as it’s an analog world, it is often
being chopped up into digital pieces.
45
Just what does an
A/D converter DO?
2 steps
Sampling and Holding (S/H)
Quantizing and Encoding (Q/E)
47
Sampling and
Holding
signal
Data-Converter Circuits
Because digital integrated
circuits are economical and
accurate, it is convenient to
process signals in digital
form, for example, to
perform algebraic
manipulations, to transmit
or store signals.
Figure 9.36 The process of periodically sampling an analog signal. (a) Sample-and-hold (S/H) circuit. The switch closes for a small part ( t seconds)
of every clock period (T). (b) Input signal waveform. (c) Sampling signal (control signal for the switch). (d) Output signal (to be fed to A/D 49
converter).
A digital signal synchronizes to a clock frequency.
According the Nyquist criteria, ADCs sample at a rate
of at least twice the highest frequency of the analog
input signal that is to be digitized. This frequency is
called the Nyquist sampling rate.
50
Analog → Digital Conversion
2-Step Process:
51
Step 1: Quantizing
Example:
52
Quantizing
• The number of possible states that the
converter can output is: N=2n
Example:
• For a 3 bit A/D converter, N=23=8.
Analog quantization size:
54
Accuracy of A/D Conversion
There are two ways to best improve accuracy of
A/D conversion:
55
Resolution:
⚫ Resolution (number of discrete values the converter
can produce) = Analog Quantization size (Q)
(Q) = Vrange / 2n,
where Vrange is the range of analog voltages which
can be represented
57
ADC granularity increases with sampling rate and
resolution as shown in the diagram below. The y axis is
the resolution which is actually the number of bits of
the ADC. The x axis is the sampling rate.
ADC Accuracy
Depends on the
Sampling Rate
and Resolution
58
The basic types of ADCs include:
1. Flash ADC.
2. Sigma-delta ADC.
3. Dual slope converter.
4. Successive approximation converter.
59
1. Flash ADC
⚫ Consists of a series of comparators, each one
comparing the input signal to a unique reference voltage.
• Advantages
Disadvantages
• High resolution • Slow due to oversampling
• No precision external
61
components needed
3. Dual Slope Converter
63
Successive approximation
• A successive-approximation ADC uses a comparator
and a binary search to successively narrow a range
that contains the input voltage.
65
The figure shows a successive approximation type of
A/D converter.
A successive approximation A/D converter consists of a
comparator, a successive approximation register (SAR),
output latches, and a D/A converter.
The main part of the circuit is the 8-bit SAR, whose
output is given to an 8-bit D/A converter.
The analog output Va of the D/A converter is then
compared to an analog signal Vin by the comparator.
The output of the comparator is the serial data input to
the SAR.
The SAR then adjusts its digital output (8-bits) until it
is equivalent to analog input Vin.
The 8-bit latch at the end of the conversation holds onto
the resultant digital data output. 66
Working of successive-approximation A/D
converter:
At the start of a conversion cycle, the SAR is reset by
making the start signal (S) high.
The MSB of the SAR (Q7) is set as soon as the first
transition from LOW to HIGH is introduced.
The output is given to the D/A converter which
produces an analog equivalent of the MSB and is
compared with the analog input Vin.
If comparator output is LOW, D/A output will be
greater than Vin and the MSB will be cleared by the SAR.
If comparator output is HIGH, D/A output will be less
than Vin and the MSB will be set to the next position (Q7
to Q6) by the SAR.
67
Working of successive-approximation
69
Working of successive-approximation
70
71
Successive Approximation
Advantages
⚫ Capable of high speed and reliable
⚫ Medium accuracy compared to other ADC types
⚫ Good tradeoff between speed and cost
⚫ Capable of outputting the binary number in serial (one
bit at a time) format.
Disadvantages
⚫ Higher resolution successive approximation ADC’s will
be slower
⚫ Speed limited to ~5Msps
72
SMALL-SIGNAL HALF-WAVE
RECTIFIERS:
73
i). Positive small-signal half-wave
rectifier circuit
77
ii. Negative small-signal half-wave
rectifier circuit:
80
Negative small-signal HWR
82
ACTIVE FILTERS:
An electric filter is often a frequency selective circuit
that passes a specified band of frequencies and blocks or
alternates signals and frequencies outside this band.
1. Analog or digital.
2. Active or passive
3. Audio (AF) or Radio Frequency (RF)
83
1. Analog or digital filters:
• Analog filters are designed to process analog signals,
• while digital filters process analog signals using the
digital technique.
2. Active or Passive:
• Depending on the type of elements used in their
construction, a filter may be
• classified as passive or active
1) Elements used in passive filters are Resistors,
capacitors, inductors.
2) Elements used in active filters are transistor or op-
amp.
84
Active filters offer the following advantages
over passive filters:
1. Gain and Frequency adjustment flexibility:
Since the op-amp is capable of providing a gain, the i/p
signal is not attenuated as it is in a passive filter. [Active
filter is easier to tune or adjust].
2. No loading problem:
Because of the high input resistance and low o/p
resistance of the op-amp, the active filter does not cause
the loading of the source or load.
3. Cost:
Active filters are more economical than the passive filter.
This is because of the variety of cheaper op-amps and
the absence of inductors. 85
The most commonly used filters are
these:
86
The frequency response of the active filters:
87
1. Low Pass Filter:
• It has a constant gain from 0 Hz to a high cutoff
frequency f1.
• At fH the gain in down by 3db.
• The frequency between 0Hz and fH is known as the
passband frequencies.
Whereas the range of frequencies beyond fH, that are
attenuated includes the stopband frequencies.
• Butterworth, Chebyshev, and causer filter are some of
the most commonly used practical filters.
• The key characteristic of the butter worth filter is
that it has a flat passband as well as a stop band. For
this reason, it is sometimes called flat-flat filters.
88
• Chebyshev filter -> has a ripple pass band & flat
stopband.
• Causer Filter -> has a ripple pass band & ripple
stopband. It gives the best stopband response among
the three.
90
5.4.1: FIRST ORDER_ LOW-PASS
BUTTERWORTH FILTER:
91
FIRST ORDER LOW-PASS BUTTERWORTH
FILTER:
93
And the output voltage of the non inverting
amplifier circuit is,
94
The gain magnitude and phase angle equations of the
low-pass filter can be obtained by converting the above
equation into its equivalent polar form, we get
95
The operation of the low-pass filter can be verified
from the gain magnitude equation:
2. At f = fH ,
3. At f > fH ,
96
• Thus the low-pass filter has a constant gain
Af
from 0 Hz to the high cutoff frequency fH.
97
Filter Design First Order LPF Butterworth
Filter:
A low-pass filter can be designed by
implementing the following steps:
• Choose a value of high cutoff frequency fH.
99
SECOND ORDER_ LOW-PASS
BUTTERWORTH FILTER:
101
The voltage gain magnitude equation for a
second order low-pass Butterworth filter is
given by
102
Filter Design:
1. Choose a value for a high cut off freq (fH ).
value of R .
5.4.3: FIRST ORDER_HIGH-
PASS BUTTERWORTH
FILTER:
104
FIRST ORDER_HIGH-PASS
BUTTERWORTH FILTER:
106
Simplifying the above equation we get
107
Where
Gain of the filter as function of
frequen. Passband of the filter
5. At f = fL
6. At f > fL
, 109
Filter Design First Order LPF Butterworth
Filter:
A high-pass filter can be designed by implementing the
following steps:
• Choose a value of low cutoff frequency fH.
• Select a value of C less than or equal to 1µF.
• Calculate the value of R using R = 1/2𝜋fL C
• Finally, select values of R1 and RF dependent on the
desired passband gain Af using Af = 1 +Rf / R1
110
5.4.4: SECOND ORDER HIGH-
PASS BUTTERWORTH
FILTER:
111
SECOND ORDER HIGH-PASS
BUTTERWORTH FILTER:
113
• The voltage gain magnitude euation for a
second order low-pass Butterworth filter is
given by
114
5.4.5: BAND-PASS
FILTERS:
115
A band-pass filter has a passband between two cutoff
frequencies fH and fL such that fH > fL.
• Any input frequency outside this passband is
attenuated.
116
• Thus Q is a measure of selectivity, meaning the
higher the value of Q the more selective is the filter,
or the narrower is the bandwidth (BW).
• The relationship between Q, the -3db bandwidth,
and the centre frequency fc is given by an equation
121
• The circuit components are determined from the
following relationships,
Let C1 = C2 = C
122
• The advantageof the abovenarrow band-pass filter
circuit is that its centre frequency fC can be changed
to new centre frequency fC′ without changing the
gain or bandwidth.
• This can be accomplished by changing R2 to R2′ so
that
_______ __ __ _
123
5.5: THE 555 TIMER:
124
• The 555 is a monolithic timing circuit that can
produce accurate and highly stable time delays or
oscillation.
125
The important fetures of the 555 timer
are:
• It operates on +5V TO +18V supply voltage in both
astable and monostable modes.
• It has an adjustable duty cycle.
• Timing is from microseconds through hours.
• It has a high current output.
• The output can drive TTL.
• It has a temperature stability of 50 parts per million
(ppm) per degree Celsius change in temperature.
126
THE 555 TIMER IC CONFIGURATION
AND BLOCK DIAGRAM:
Pin 1: Ground:
• All voltages are measured with respect to
this terminal.
Pin 2: Trigger:
• The o/p of the timer depends on the
amplitude of the external trigger pulse
applied to this pin.
128
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 )
• (Between Pin 3 & + Vcc - OFF load )
• When the input is low: The load current flows
through the load connected between Pin 3 & +Vcc in
to the output terminal & is called the sink current.
• When the output is high: 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..
129
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.
Pin 7: Discharge:
• This pin is connected internally to the collector of
transistor Q1.
• When the output is high Q1 is OFF.
• When the output is low Q is (saturated) ON.
Pin 8: +Vcc:
• The supply voltage of +5V to +18V is applied to this
pin with respect to ground.
131
Block diagram of 555 Timer:
132
• In the block diagram of 555 timer, 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.
135
THE 555 TIMER AS A MONOSTABLE
MULTIVIBRATOR:
136
• A monostable multivibrator is also called as one-shot
multivibrator.
• It is a pulse generating circuit in which the duration of
the pulse is determined by the RC network connected
externally to the 555 timer.
• In a stable state or standby state the output of of the
circuit is approximately zero or at logic-low level.
• When an external trigger pulse is applied, the output
is forced to go high (≅ 𝑉𝐶𝐶 ).
• The time output remains high is determined by the
external RC network connected to the timer.
• At the end of the timing interval, the output
automatically reverts back to its logic-low state
137
• The output stays low until the trigger pulse is again
applied.
• Then the cycle repeats.
• The monostable circuit has only one stable state
(outout low), hence the name monostable.
• Normally, the output of the monostable
multivibrator is low.
• Figure shows the 555 timer configured for
monostable multivibrator
138
Monostable Operation:
139
• Initially when the output is low, that is, the circuit is
in a stable state, transistor Q1 is on and the capacitor
C is shorted out to ground.
• When negative trigger pulse is applied to pin 2, the
transistor Q1 is turned off, which releases the short
circuit across the external capacitor C and drives the
output high.
• The capacitor C now starts charging up towards VCC
through RA.
• When the voltage across the capacitor equals 2/3VCC,
comparator 1’s output switches from low to high,
which inturn drives the output to its low state via the
output of the flip-flop
140
• At the same time, the output of the flip-flop turns
transistor Q1 on, and hence capacitor C rapidly
discharges through the transistor.
141
The figure shows the trigger input, output voltage, and
the capacitor voltage waveforms.
142
The voltage across the capacitor as in fig (b) is
given by
144
5.5.2: THE 555 TIMER AS AN ASTABLE
MULTIVIBRATOR
145
THE 555 TIMER AS AN ASTABLE
MULTIVIBRATOR:
146
Astable operation:
1. Initially, when the output is high :
• Capacitor C starts charging toward Vcc through RA
& RB.
• However, as soon as voltage across the capacitor
equals 2/3 Vcc, Comparator 1 triggers the Flip-Flop
& output switches low.
2. When the output becomes Low:
• Capacitor C starts discharging through RB and
transistor Q1.
• when the voltage across C equals 1/3 Vcc, comparator
2’s output triggers the Flip-Flop & the output goes
High.
147
• Then cycle repeats.
• The output voltage snd capacitor voltage waveforms
are shown in the figures.
• As sown in the waveforms, the capacitor is
periodically charged and discharged between 2/3 VCC
and 1/3 VCC, respectively.
148
• The time during which the capacitor charges from
1/3 VCC to 2/3 VCC is equal to the time the output is
high and is given by
𝑡𝑐 = 0.69 (𝑅𝐴 + 𝑅𝐵 ) C
150
END
151