Professional Documents
Culture Documents
Exp. No:
Date
:
AIM:
To test of ICs by using verification of truth table of basic ICs.
COMPONENTS REQUIRED:
S.NO
COMPONENT NAME
RANGE
1.
Digital trainer kit
2.
IC7408, IC7432, IC7486,
IC7404, IC7400, IC7402.
3.
Breadboard
4.
Connecting wires
QUANTITY
1
Each 1
1
THEORY:
1. AND gate (IC 7408)
The operation of AND gate is such that the output is HIGH only when all of the inputs
are HIGH. When any of the inputs are LOW, the output is LOW. The basic purpose of
AND gate is to determine whether certain conditions are simultaneously true.
AND function, Z=A.B
2. OR gate (IC 7432)
The operation of OR gate is such that the output is HIGH when any of the inputs are
HIGH. When all of the inputs are LOW, the output is LOW. The basic purpose of OR
gate is to determine whether one or more input bit(s) are HIGH.
OR function, Z=A+B
3. NOT gate (IC 7404)
The inverter (Not gate) performs a basic logic function called inversion or
complementation. The purpose of the inverter is to change one logic level to opposite
level. In terms of bits, it changes a 1 to 0 and vice-versa.
NOT function, Z=A' or Z=A
4. NAND gate (IC 7400)
The term NAND is a contraction of NOT-AND and implies an AND function with a
complemented (inverted) output. The logical operation of the NAND gate is such that, a
LOW output occurs when all inputs are HIGH. When any of the inputs are LOW, the
output will be HIGH.
NAND function, Z=A.B
Department of Electrical and Electronics Engg
Truth Table
A
B
Input
A
B
0
0
0
1
1
0
1
1
Z
IC7400
PinDiagram
Output
Z=A.B
0
0
0
1
14
13
I
C
7
4
0
8
3
4
5
6
12
11
10
9
A
B
Truth Table
Z
IC7400
Input
A
B
0
0
0
1
1
0
1
1
Pin Diagram
Output
Z=A.B
1
1
1
0
1
2
I
C
7
4
0
0
3
4
5
6
7
Truth Table
Input
A
0
0
1
1
Output
B
0
1
0
1
Z=A+B
1
0
0
0
3
A
B
5
6
7
1
2
1
1
1
0
Pin Diagram
8
1
4
1
3
1
IC7402
2
3
4
1
4
1
3
I
C
7
4
0
2
1
2
1
1
1
9
8
Truth Table
Pin Diagram
Input
A
B
Output
Z=A B
0
0
1
1
0
1
1
0
0
1
0
1
A
B
IC7486I
C7
4
8
6
3
4
5
6
7
Truth Table
A
B
Z
IC7432
Input
A
B
0
0
0
1
1
0
1
1
12
111
0
9
8
14
13
Pin Diagram
Output
Z=A+B
0
1
1
1
1
2
3
4
5
14
13
I
C7
4
3
2
12
11
10
9
6
7
Truth Table
Z
IC7404
Input
A
0
1
Output
Z=A'
1
0
Pin Diagram
1
2
3
4
5
6
7
14
I
C
7
4
0
4
13
12
11
10
9
8
Flip
Flop
RS Flip Flop
Characteristic/Truth Table
R
Q
7408
R
0
0
1
1
7402
CP
Q'
S
0
1
0
1
Q(t+1)
Q(t)
1
0
*
* - indeterminate state
D Flip Flop
Characteristic/Truth Table
D
Q
7408
Q(t)
0
0
1
1
7402
Q'
D
0
1
0
1
Q(t+1)
0
1
0
1
JK Flip Flop
K
Q
7411
CP
Characteristic/Truth Table
7402
J
Department of Electrical and Electronics Engg
J
0
0
1
1
Q'
K
0
1
0
1
Q(t+1)
Q(t)
1
0
Q(t)
Exp. No:
Date :
AIM:
To design and implement
(i)
Half Adder
(ii)
Full Adder
(iii)
Half Subtractor
(iv)
Full Subtractor using logic gates.
Department of Electrical and Electronics Engg
COMPONENTS REQUIRED:
S.NO
1.
2.
3.
4.
COMPONENT NAME
Digital trainer kit
IC7408, IC7432, IC7486
Breadboard
Connecting wires
RANGE
QUANTITY
1
Each 1
1
Theory:
Combinational Circuits
The present output(s) depends on the present input(s) only.
Eg: Adder, Subractor, Encoder, Decoder, Multiplexers, Demultiplexers, Comparator Code
converters, and Parity generator and checker.
General Block Diagram
I1
I2
Combinational
Circuit
.
.
.
O1
O2
.
.
.
In
In- Input
On -Output
On
Half Adder
A Half Adder is a combinational circuit used for the addition of two bits. Thus we find
that the circuit needs two binary inputs (A and B) and two binary outputs. The input
variables designate the augend and addend bits, the output variables produce the Sum (S)
and the Carry (C).
Sum, S = A B=AB' +A'B
Carry, C= AB
Half Adder
Implementation
Truth Table
Sum
A
B
IC7486
carry
Input
A
B
0
0
0
1
1
0
1
1
IC7408
Output
S
C
0
0
1
0
1
0
0
1
Carry, C
B
A 0
1
0 0
0
1
Carry, C= AB
Full Adder
A Full Adder is a combinational circuit used for the addition of three bits. Thus we find
that the circuit needs three binary inputs and two binary outputs. The input variables are
designated by A, B and Carry in (C in), the output variables produce the Sum (S) and the
Carry out (Cout).
Sum, S = A BCin =AB'Cin' +A'BCin'+A'B'Cin+ABCin
Carry, Cout = AB + ACin +BCin
Truth Table:
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
1
Cin
0
1
0
1
0
1
0
1
S
0
1
1
0
1
0
0
1
Cout
0
0
0
1
0
1
1
1
Implementation:
10
out, Cout
CCarry
in
0
1
AB
00 0 0
01 0 1
11 1 1
10 0 1
+A'BCin'+A'B'Cin+ABCin
Half Subtractor
A Half Subtractor is a combinational circuit that subtracts two bits and produces their
difference. It has two outputs. One output generates the difference (D) and the second
output generates the borrow (B)
Difference D=AB+AB
Borrow
Bo=AB
Truth Table:
A
0
0
1
1
B
0
1
0
1
Bo
0
1
0
0
D
0
1
1
0
11
Function:
D=AB+AB= A B
Bo=AB
Implementation
IC7486
A
B
A B
IC7408
Bo=AB
Full Subtractor
Full subtractor is a combinational circuit that performs a subtraction between two bits .It
has three inputs (A, B, C) and two outputs (D, Bo).
Difference D=ABC+ABC+ABC+ABC
Borrow
Bo=AB+AC+BC
Truth Table
A
0
0
0
0
1
1
1
1
B
0
0
1
1
0
0
1
1
C
0
1
0
1
0
1
0
1
Bo
0
1
1
1
0
0
0
1
D
0
1
1
0
1
0
0
1
Logic Function
Difference D=ABC+ABC+ABC+ABC
Borrow Bo=AB+AC+BC
Logic Diagram:
Department of Electrical and Electronics Engg
12
A
B
C
D
IC7486
IC7404
Bo
IC7432
IC7408
PROCEDURE:
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Apply the inputs to the respective input pins.
4. Verify the output with the truth table.
DISCUSSION QUESTIONS
1. Difference between combinational circuits and sequential circuits?
Combinational circuit
When logic gates are connected
together to produce a specified
output for certain specified
combinations of input variables,
with no storage involved, the
resulting circuit is called
combinational logic.
Sequential circuit
In sequential circuits the output
variables dependent not only on
the present input Variables but
they also depend up on the past
history of these input variables.
13
RESULT:
Thus the combinational circuits(ii)
Half Adder
(iii)
Full Adder
(iv)
Half Subtractor
(v)
Full Subtractor was designed and implemented using the logic gates.
Exp. No:
Date
:
AIM:
(ii)
COMPONENETS REQUIRED:
S.NO
1.
2.
3.
4.
COMPONENT NAME
Digital trainer kit
IC7486
Breadboard
Connecting wires
RANGE
THEORY:
14
QUANTITY
1
1
1
A code converter is a circuit that makes the two systems compatible even though
each uses a different binary code.
Since, we design a 4-bit converter; let A, B, C and D be the inputs
W, X, Y, and Z be the outputs.
(i) Binary to Gray code conversion
Gray code is also called as reflective code. In order to convert the given Binary
code into Gray code, the steps to be followed are,
1. Retain MSB as such.
2. Add the successive digits to obtain the four bit Gray code.
Advantage of Gray code
1. Gray code undergoes a single bit change.
2. Error detection is easier.
K-map simplification is used in order to obtain the output (Gray code) in terms of the
input A, B, C.
Implementation
A
W=A
IC7486
x A B
yBC
Z C D
TRUTH TABLE
(i) Binary to Gray code conversion
Department of Electrical and Electronics Engg
15
Binary code
A B C
0
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
1
1
1
D
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Gray code
W X
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
Y
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
Z
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
A=W
B W X
Gray code
Binary code
W X Y Z A B C CD W X Y
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0 D1 W X Y Z
0
0
1
1
0
0
1
0
0
0
1
0
0 IC7486
0
1
1
0
1
1
0
0
1
0
0
Truth Table
0
1
1
1
0
1
0
1
0
1
0
1
0
1
1
0
0
1
0
0
0
1
1
1
1
1
0
0
1
0
0
0
1
1
0
1
1
0
0
1
1
1
1
1
1
0
1
0
1
1
1
0
1
0
1
1
Department of Electrical and Electronics Engg
1
0
1
0
1
1
0
016
1
0
1
1
1
1
0
1
1
0
0
1
1
1
1
0
1
0
0
0
1
1
1
1
PROCEDURE:
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Find the output in terms of inputs using k-map.
4. Apply the inputs to the respective input pins.
5. Verify the output with the truth table.
DISCUSSION QUESTIONS:
1. What are applications of code converter?
i) Electromechanical switches.
ii) Digital communication.
2. What are the advantages of gray code?
a .Single output changes at a time
b .Multiphase, multifrequency clock generator.
3. Give another name of gray code?
Reflected binary code.
4. Define fan in.
Fan in is defined as the total number of inputs to a logic gate.
5. Define noise margin.
17
RESULT:
Thus the 4-bit
(i)
Binary to Gray Code conversion
(ii)
Gray code to Binary code converter were designed and implemented using the
logic gates.
Exp. No:
Date 3 :
DESIGN AND IMPLEMENTATION OF BCD TO EXCESSCODE CONVERSION & VICE-VERSA USING LOGIC GATES
AIM
To design and implement 4-bit
(i)
(ii)
COMPONENETS REQUIRED:
S.NO
COMPONENT NAME
1.
Digital trainer kit
2.
IC7408, IC7432, IC7486
3.
Breadboard
4.
Connecting wires
Department of Electrical and Electronics Engg
RANGE
18
QUANTITY
1
Each 1
1
THEORY:
A binary number of n digits can be represented by n circuit elements, each
having an output of 1or 0. Binary code is used to represent any discrete element of
information which is different among a group of quantities. The availability of large
codes for the same elements of information results in the use of different codes by
different digital systems. Thus a conversion circuit must be inserted between the two
systems if they use different codes. A code converter is a circuit that makes the two
systems compatible even though each uses a different binary code.
Since, we design a 4-bit converter; let A, B, C and D be the inputs
W, X, Y, and Z be the outputs.
BCD to Excess-3 code conversion
An Excess-3 code is obtained by adding 3 to each digit. For BCD code-10
combinations are only possible. Even though there are 4 inputs with 16 possible
combinations, the remaining 6 combinations are assumed to be dont care terms as they
will never occur. Hence the dont care terms (denoted by X) can be assigned an output
of 0 or 1. K-map simplification is used in order to obtain the output (Excess-3 code) in
terms of the input A, B, C and D
A
B
B
D
B'
C
B'
D
C'
D
'
19
D
D
TRUTH TABLE:
BCD to Excess-3 code conversion
BCD code
A B C
0 0 0
0 0 0
0 0 1
0 0 1
0 1 0
0 1 0
0 1 1
0 1 1
1 0 0
1 0 0
D
0
1
0
1
0
1
0
1
0
1
Excess-3 code
W X Y Z
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
3
1
3
2
12
The BCD code can be obtained from Exces-3-code by applying reverse procedure
of the above conversion. i.e, By subtracting 3 from the Excess-3-code.
3
4
5
1
2
13
12
1
2
A
1
20
Excess-3 code
W X Y Z
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
BCD code
A B C
0 0 0
0 0 0
0 0 1
0 0 1
0 1 0
0 1 0
0 1 1
0 1 1
1 0 0
1 0 0
D
0
1
0
1
0
1
0
1
0
1
Truth Table
PROCEDURE:
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Find the output in terms of inputs using k-map.
Department of Electrical and Electronics Engg
21
AIM
To implement
(i)
Even Parity Generator/Checker
(ii)
Odd Parity Generator/Checker using IC74180
COMPONENTS REQUIRED:
S.NO
1.
2.
3.
4.
COMPONENT NAME
Digital trainer kit
IC74180
Breadboard
Connecting wires
RANGE
QUANTITY
1
1
1
THEORY:
A parity generator is a circuit that, given an n-1 bit data word, generates an extra
(parity) bit that is transmitted with the word. The value of this parity bit is determined by
the bits of the data word.
Department of Electrical and Electronics Engg
22
In an even parity scheme, the parity bit is a 1 if there is an odd number of 1's in the
data word. Thus when we examine all the bits transmitted (data word + parity), we see an
even number of ones (thus "even" parity).
At the receiving end of the transmission, a parity checker uses this extra information
to detect single-bit errors in the transmitted data word. It does so by regenerating the
parity bit in the same manner as the generator and comparing the two parity bits.
Disagreement between these bits means that one of the transmitted bits is incorrect,
though the checker cannot determine which bit is in error. Note that single-bit parity
scheme is unable to detect an even number of errors (e.g. 4 bits are wrong).
PROCEDURE:
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Connections are made as per the logic diagram.
4. Apply the inputs to the respective input pins.
5. Verify the output with the truth table.
Design
Pin Diagram of IC74180 (8-bit Parity Generator/Checker)
A
B
EVEN
ODD
Even O/P
Odd O/P
Gnd
14
13
12
11
10
9
8
I
C
7
4
1
8
0
Vcc
H
G
F
E
D
C
Even Odd
input input
1
0
Even
output
1
23
Odd
output
0
Odd
Even
Odd
For example
Generator
Even Odd
0
0
0
1
0
1
0
1
0
0
0
0
0
0
0
0
1
0
0
1
DISCUSSION QUESTIONS:
1. What is meant by parity bit?
A parity bit is an extra bit included with a message to make the total
number of 1's either even or odd.
2. What is an parity generator?
The circuit that generates the parity bit in the transmitter is called
parity generator.
3. What is an parity checker?
The circuit that checks the parity an receiver is called parity checker.
4. What is an odd parity?
A binary digit that is added to ensure that the number of bits with value
of one in a given set of bits is always odd is an odd parity.
5. What is an even parity?
A binary digit that is added to ensure that the number of bits with value
of one in a given set of bits is always odd is an even parity.
Department of Electrical and Electronics Engg
24
RESULT
Thus the implementation of
1. Even Parity Generator/Checker
2. Odd Parity Generator/Checker using IC74180
Exp. No:
Date :
COMPONENT NAME
Digital trainer kit
IC7411, IC7432, IC7404
Breadboard
Connecting wires
RANGE
THEORY:
Department of Electrical and Electronics Engg
25
QUANTITY
1
Each 1
1
.
.
.
I inputs
Y output
S Selection lines
.
.
.
In-1
2nx 1
MUX
S0, S1 Sn-1
Kinds:
2x1 MUX, 4x1 MUX, 16x1 MUX, 32x1 MUX and so on..
2x1 MUX
A logical symbol for 2 inputs (I0, I1) MUX consists of 1 selection line - S0 and one
output (Y).
4x1 MUX
A 4-to-1 line multiplexer consists of 4 inputs (I0, I1, I2, I3) and 2 selection lines (S0,
S1 ) . The circuit operation is as follows. Consider S0, S1, as 10. The AND Gate associated
with input I2 has two of its inputs as 1 and the third input is connected to I 2. For the other
AND gates at least one input is zero which makes the net output from the AND gate to be
zero. The OR gate value is now equal to the value of I2 ,
I0
I1
I2
I3
S1
Logic diagram:
S0
S1 '
Y
Y
I0
I1
I2
I3
26
I1 S0 'S1 +
I2 S0 S1'+
I2 S 0 S 1
S1
0
1
0
1
I1
Truth Table
S0
0
0
1
1
S0 '
I0
S1
Y= I0 S0 'S1 '+
S0
7411
I2
4x 1
MUX
I3
1x2n
DEMUX
.
.
.
Y0
Y1
.
.
.
Yn-1
D inputs
Y output
S Selection lines
S0, S1 Sn-1
Kinds:
1x2 DEMUX, 1x 4 DEMUX, 1x 16 DEMUX, 1x 32 DEMUX and so on..
1x2 DEMUX
A logical symbol for 1 input (Din ) MUX consists of 1 selection line - S0 and one
output (Y).
1x4 DEMUX
A 1-to-4line demultiplexer consists of 1 input(D 0) ,4 outputs (Y0, Y1, Y2, Y3) and 2
selection lines (S0, S1 ) . The circuit operation is as follows. Consider S 0, S1, as 10. The
AND Gate associated with output Y2 has two of its inputs as 1 and the third input is
connected to Din. For the other AND gates at least one input is zero which makes the net
output from the AND gate to be zero. Thus the output gets distributed in the I 2. Hence,
DEMUX is also called as a Data distributor.
S0
S1
PROCEDURE:
1. Obtain the required IC along with the Digital trainer kit.
2. Connect zero volts to GND pin and +5 volts to Vcc .
3. Apply the inputs to the respective input pins.
4. In 4x1 MUX the inputs are varied for checking the truth table.
5 In 1x4 DEMUX the selection line is varied to verify the truth table
Logic Diagram
Y0
Y1
Y2
S1
27
Y3
S0
Y0
Y1
Y2
Y3
S1 '
1x4
DEMUX
S0 '
Din
Din
7411
Truth Table
S0
0
0
1
1
S1
0
1
0
1
Y3
0
0
0
Din
Y2
0
0
Din
0
Y1
0
Din
0
0
Y0
Din
0
0
0
28
DISCUSSION QUESTIONS:
1. Define multiplexer?
A multiplexer is a combinational circuit that selects one digital
information from several sources and transmits the selected information on a
single output line.
2. What is demux?
Demultiplexer is a circuit that receives information on a single line and
transmits this information on one of 2n possible output lines. A demultiplexer is a
decoder with an enable input.
3. What is combinational circuit? Give an example.
A combinational circuit consists of logic gates whose outputs at any time
are determined from the present combination of inputs. Examples of
combinational circuits are adder, coder, magnitude comparator etc.
4. Where Multiplexers are used?
Department of Electrical and Electronics Engg
29
RESULT:
Thus the combinational circuits
(i) 4x1 Mux (Multiplexer)
(ii) 1x4 Demux (Demulitplexer) were designed and implemented using the logic
gates.
A
B
3x8
Decoder
.
.
.
Truth Table
30
D0
D1
D7
I0
I1
I2
I3
S1
S0
S0
S1 '
S1
I3
Truth Table
S0
0
0
1
1
S1
0
1
0
1
Y
I0
I1
I2
I3
31
I1 S0 'S1 +
I2 S0 S1'+
I2 S 0 S 1
I2
Y= I0 S0 'S1 '+
I1
7411
S0 '
4x 1
MUX
I0
Exp. No:
Date
:
32
33
34
35
36
37
38
S.NO
1.
2.
3.
4.
COMPONENT NAME
Digital trainer kit
IC7411, IC7432, IC7404
Breadboard
Connecting wires
RANGE
QUANTITY
1
Each 1
1
THEORY:
Multiplexer (or) Data selector (or) MUX
A digital multiplexer is a combinational circuit that selects binary information
from one of many input lines and directs it into a single output line. The selection of a
particular input line is controlled by a set of selection lines (S0, S1 Sn-1)
Department of Electrical and Electronics Engg
39
Block Diagram
I0
I1
.
.
.
2nx 1
MUX
I inputs
Y output
S Selection lines
.
.
.
In-1
S0, S1 Sn-1
Kinds:
2x1 MUX, 4x1 MUX, 16x1 MUX, 32x1 MUX and so on..
2x1 MUX
A logical symbol for 2 inputs (I0, I1) MUX consists of 1 selection line - S0 and one
output (Y).
4x1 MUX
A 4-to-1 line multiplexer consists of 4 inputs (I0, I1, I2, I3) and 2 selection lines (S0,
S1 ) . The circuit operation is as follows. Consider S0, S1, as 10. The AND Gate associated
with input I2 has two of its inputs as 1 and the third input is connected to I 2. For the other
AND gates at least one input is zero which makes the net output from the AND gate to be
zero. The OR gate value is now equal to the value of I2 ,
S1
Y0
S1 '
Y1
S1
Y3
Y2
S0
7411
S0 '
1x4
DEMUX
Y0
Y1
Y2
Y3
Din
Din
S0
Logic Diagram
40
Truth Table
S0
0
0
1
1
S1
0
1
0
1
Y3
0
0
0
Din
Y2
0
0
Din
0
Y1
0
Din
0
0
Y0
Din
0
0
0
1x2
DEMUX
.
.
.
Y0
Y1
.
.
.
Yn-1
D inputs
Y output
S Selection lines
S0, S1
Sn-1
Kinds:
1x2 DEMUX, 1x 4 DEMUX, 1x 16 DEMUX, 1x 32 DEMUX and so on..
1x2 DEMUX
A logical symbol for 1 input (Din ) MUX consists of 1 selection line - S0 and one
output (Y).
1x4 DEMUX
A 1-to-4line demultiplexer consists of 1 input(D 0) ,4 outputs (Y0, Y1, Y2, Y3) and 2
selection lines (S0, S1 ) . The circuit operation is as follows. Consider S 0, S1, as 10. The
AND Gate associated with output Y2 has two of its inputs as 1 and the third input is
connected to Din. For the other AND gates at least one input is zero which makes the net
output from the AND gate to be zero. Thus the output gets distributed in the I 2. Hence,
DEMUX is also called as a Data distributor.
PROCEDURE:
Department of Electrical and Electronics Engg
41
5.
6.
7.
8.
5
42
DISCUSSION QUESTIONS:
6. Define multiplexer?
A multiplexer is a combinational circuit that selects one digital
information from several sources and transmits the selected information on a
single output line.
7. What is demux?
Demultiplexer is a circuit that receives information on a single line and
transmits this information on one of 2n possible output lines. A demultiplexer is a
decoder with an enable input.
8. What is combinational circuit? Give an example.
A combinational circuit consists of logic gates whose outputs at any time
are determined from the present combination of inputs. Examples of
combinational circuits are adder, coder, magnitude comparator etc.
9. Where Multiplexers are used?
It is used in data selection, data routing, parallel to serial conversion, logic
function generation.
10. What is the other name for demultiplexer?
As the serial data is changed to parallel data, the input caused toappear aon
one of the n output lines, the demultiplexer is also called as distributor or a
serial to parallel converter.
Department of Electrical and Electronics Engg
43
RESULT:
Thus the combinational circuits
(iii) 4x1 Mux (Multiplexer)
(iv) 1x4 Demux (Demulitplexer) were designed and implemented using the logic
gates.
A
B
3x8
Decoder
.
.
.
D0
D1
D7
Truth Table
Inputs
A B C
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
D7
0
0
0
0
0
0
0
1
D6
0
0
0
0
0
0
1
0
D5
0
0
0
0
0
1
0
0
44
Outputs
D4 D3
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
D2
0
0
1
0
0
0
0
0
D1
0
1
0
0
0
0
0
0
D0
1
0
0
0
0
0
0
0
Exp. No:
Date
:
COMPONENT NAME
Digital trainer kit
IC7411, IC7432, IC7404
Breadboard
Connecting wires
RANGE
THEORY:
Decoder
45
QUANTITY
1
Each 1
1
A binary code of n inputs can be represented as 2n (or less) Min terms. Decoder
is a combinational logic circuit that accepts a set of inputs that represents a binary
number and activates only the output that corresponds to that input number.
Its generally represented as n-to-m line decoder (or) (n x m) decoder where, m2n
Block Diagram
A0
A1
.
.
.
nxm (or)
n
m
Decoder
.
.
.
An-1
D0
D1
Dn-1
A inputs
D outputs
(only 1 o/p is active for each i/p).
Kinds:
C
C'
B'
IC7404
A'
Logic Diagram
1
2
13
IC7411
D0=A'B'C'
12
D1=A'B'C
D2=A'BC'
D3=A'BC
D4=AB'C'
D5=AB'C
D6=ABC'
Department of Electrical and Electronics Engg
46
D7=ABC
3-to-8 Decoder
(or) Binary-to-Octal decoder (or) 1-out-of 8 Decoder
n=3(inputs); m2n ; i.e, m=8(outputs).
The 3 inputs are decoded into 8 outputs, each output representing one of the min terms. A
particular application of this decoder would be a binary to octal conversion. The 3
invertors provide the complement of the inputs and each one of the AND gates generates
the min terms.
Encoder
Encoder is a combinational logic circuit that performs a reverse decoder function.
i.e, An Encoder accepts an active level on one of its inputs representing a digit such as a
decimal (or) octal and converts it to a coded output lines such as binary or BCD. An
encoder has 2n (or less) input lines and n output lines.
Its generally represented as m-to-n line encoder (or) (m x n) encoder where, m2n
Block Diagram
I0
I1
.
.
.
In-1
mxn (or)
m n
Encoder
.
.
.
A0
A1
An-1
I inputs
A outputs
(only 1 o/p is active for each i/p).
8-to-3 Encoder
n=3; m2n ; i.e,m=8. (m inputs and n outputs).
The Encoder can be implemented with OR gates. The inputs are determined directly from
truth table.
PROCEDURE:
1.
2.
3.
4.
47
8x3 Encoder
D0
D1
D7
8x3
.
.
.
Encoder
Truth Table
D7
0
0
0
0
0
0
0
1
D6
0
0
0
0
0
0
1
0
D5
0
0
0
0
0
1
0
0
Inputs
D4 D3
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
0
D2
0
0
1
0
0
0
0
0
D1
0
1
0
0
0
0
0
0
D0
1
0
0
0
0
0
0
0
A
0
0
0
0
1
1
1
1
Outputs
B C
0
0
0
1
1
0
1
1
0
0
0
1
1
0
1
1
Logic Diagram
D7
D6 D5 D4 D3 D2 D1
D0
A=D4+D5+D6+D7
B=D2+D3+D6+D7
C=D1+D3+D5+D7
48
DISCUSSION QUESTIONS:
1. Define Decoder?
A decoder is a logic circuit that converts an n-bit binary input code into 2n
output lines, such that each output line will be activated for only one of the
possible combinations of inputs.
2. What is binary decoder?
A decoder which has an n-bit binary i/p code and a one activated output
out of 2n output code is called binary decoder. It is used when it is necessary to
activate exactly one of 2 n out puts based on an n - bit input value.
3. Define Encoder?
An encoder has 2n input lines and n output lines. In encoder the output lines
generate the binary code corresponding to the input value.
4. What is priority Encoder?
A priority encoder is an encoder circuit that includes the priority function. In
priority encoder, if 2or more inputs are equal to 1 at the same time, the input
having the highest priority will take precedence.
5. Mention some applications of decoders.
Decoders are used in counter systems, analog to digital converters, used to
drive display system
RESULT:
Thus the combinational circuits
(i)
3x8 Decoder
(ii)
8x3 Encoder were designed and implemented using the logic gates.
49
JA
CLK
QA
JB
FF A
KA
QB
JC
FF B
Q'A
KB
Q'B
KC
QB
QC
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
QB
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
50
QA
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
QD
FF C
Q'C
KD
QC
JD
FF C
QA
CLK
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
QC
Q'D
QD
Exp. No:
Date
:
RANGE
QUANTITY
1
Each 1
1
THEORY:
Counter:
A counter is a sequential circuit that undergoes through a prescribed sequence of
binary states upon the application of clock pulse.
Types:
1. Asynchronous Counter
2. Synchronous Counter
Asynchronous Counter:
It is otherwise called as serial or ripple counter. In an asynchronous counter, each
flip flop is triggered by the output from the previous flip flop which limits its speed of
operation. The settling time in asynchronous counters is the cumulative sum of individual
settling times of flip flops. The first stage of the counter thus switches first on the
application of a clock pulse to the flipflop and successive stages change their states in
turn causing a ripple through effect of the count pulses. As the triggers move through the
flip flops like a ripple, it is called ripple counter.
Synchronous Counter
Each FF is applied with the clock pulse at the same time so as to trigger the FF
simultaneously.
General representation of the counter
n-bit counter requires n FF,
has 2n states,
counts from 0 to 2n -1,
called as MOD n counter or divide by n counter.
51
QA
JB
QB
A
KA
JC
B
Q'A
KB
QC
0
0
0
0
1
1
1
1
QB
0
0
1
1
0
0
1
1
QA
0
1
0
1
0
1
0
1
QB
1
1
0
0
1
1
0
QA
1
0
1
0
1
0
1
QC
1
1
1
1
0
0
0
C
Q'B
CLK
52
QC
KC
Q'C
53
54
DISCUSSION QUESTIONS:
1. What do you mean by present state?
The information stored in the memory elements at any given time defines the
present state of sequential circuit.
2. What do you mean by next state?
The present state and the external inputs determine the outputs and the next
state of the Sequential circuit.
3. Define synchronous sequential circuit
In synchronous sequential circuits, signals can affect the memory elements
only at discrete instant of time.
4. Define Asynchronous sequential circuit?
In asynchronous sequential circuits change in input signals can affect memory
element at any instant of time
5. What do you mean by counters?
A counter, by function is a sequential circuit consisting of set of flip flops
connected in a suitable manner to count the sequence of input pulses presented to
it in digital form.
RESULT:
Thus the 3-bit Synchronous (Parallel) up/down counter and 4 bit asynchronous
counter was designed and verified using JK Flipflop.
55
Data
in
DA QA
DB QB
DC QC
FF A
FF B
FF C
Q'A
Q'B
DD QD
Data
out
FF D
Q'C
Q'D
MSB
LSB
CLK
CLK
0
1
2
3
4
5
6
7
QA
0
1
0
1
0
0
0
0
QB
0
0
1
0
1
0
0
0
QC
0
0
0
1
0
1
0
0
QD
0
0
0
0
1(MSB)
0
1
0(LSB)
DB QB
DC QC
FF B
FF C
Q'B
DD QD
FF D
Q'C
Q'D
MSB
CLK
Data
out
LSB
QA
QB
56
QC
QD
Exp. No:
Date
:
COMPONENT NAME
Digital trainer kit
D fliflop
Breadboard
Connecting wires
RANGE
QUANTITY
1
4
1
THEORY:
Registers:
A group of binary cells (or) flip-flops used for storing the information.
Shift register: A register which is capable of shifting the information either to right/left is
known as shift register.
Types:
1. SISO (Serial in Serial out)
2. SIPO (Serial in Parallel out)
3. PISO (Parallel in Serial out)
4. PIPO (Parallel in Parallel out)
Assume a 4-bit shift register implemented using D FF. (Eg data: 0101)
Initially all the FF are under RESET condition. Loading the FF starts from LSB.
1. At the end of each clock pulse; a new data is stored inside the FF.
2. At the end of 4th clock pulse; data is loaded into the FF.
3. At the end of 5th clock pulse; data is shifted out.
Data is entered in a serial fashion. Once the data are stored, each bit appears on its
respective output line rather than on a bit-by-bit fashion.
Serial in- Serial out Shift Register:
This type of shift register accepts data serially; i.e one bit at a time on a single
input line.It produces the stored information on its single output also in serial form. Data
may be shifted left using left shift register or shifted right using shift right register.
57
CLK
0
1
2
3
4
QA
0
1
0
1
0
QB
0
0
1
0
1
QC
0
0
0
1
0
QD
0
0
0
0
1(MSB)
DA QA
DB QB
DC QC
FF A
FF B
FF C
Q'A
Q'B
DD QD
FF D
Q'C
Q'D
MSB
CLK
LSB
QA
QB
58
QC
QD
59
i/p
i/p
Shift/Load
i/p
DA QA
DB
FF A
QB
DC
FF B
Q'A
QC
FF C
Q'B
DD QD
FF D
Q'C
MSB
Q'D
LSB
CLK
QA
0
0
0
0
0
0
QB
0
1
0
0
0
0
QC
0
0
1
0
0
0
60
QD
0
1(MSB)
0
1
0(LSB)
0
Serial
out
DISCUSSION QUESTIONS:
1.
If a serial in serial out shift register has N stages and if the clock
frequency is f, What will be the time delay between input and output?
N
3.
4.
RESULT:
Thus the 4-kinds of shift registers were implemented using D flip-flop.
61
CIRCUIT DIAGRAM:
INVERTING AMPLIFIER:
Rf = 10K
R1= 5K
LM741
10K
3
Rcomp
Vi
4
4-V
Vo
+V
Rf = 10K
R1= 5K
LM741
10K
3
Rcomp
Vi
4
4-V
62
+V
Vo
Exp. No:
Date
:
(A)
(B)
AIM:
To study the operation of an inverting & non inverting amplifier and to verify the
slew rate.
COMPONENTS REQUIRED:
S.NO
1.
2.
3.
4.
5.
6.
7.
DESIGN:
COMPONENT NAME
Regulated variable power
supply
Signal generator
CRO
Resistors
Op- amp
Breadboard
Connecting wires
RANGE
(0-30) Volts
QUANTITY
1
1MHz
20MHz
10K,5K,
LM741
1
1
1,1
1
FORMULA USED:
1.
A = -(Rf / R1)
V0 = AVin
A = 2,
(Rf + R1) / R1
A = 1 + (Rf/R1) -----------------(2)
Assume
A = 2,
63
44-V
LM741
3
7
Vi
Vo
Offset Null
No Connection
Inverting input
V+
Output
Offset Null
+V
V-
IC741
MODEL GRAPH:
Inverting Amplifier
Input Voltage
(Volts)
Time (ms)
Output Voltage
(Volts)
Time (ms)
64
3.
Slewrate
2fVm V
s
106
THEORY:
1) Inverting amplifier:
Input signal Vi is applied to the inverting input terminal through R1 and
non-inverting input terminal of op-amp is grounded. The output voltage V o is fed back to
the inverting input terminal through the Rf R1 network where Rf is the feedback resistor.
Therefore the closed loop gain of the inverting amplifier is
Acl =
Rf
Vo
=
R1
Vi
The negative sign indicates a phase shift of 180o between Vi and Vo. Since
inverting input terminal is at virtual ground, the effective input impedance is R 1. The
value of R1 should be fairly large to avoid loading effect. This however limits the gain
that can be obtained from the circuit. A load resistor R L is usually kept at the output in
actual practice otherwise, the input impedance of the measuring device such as
oscilloscope or DVM acts as the load.
2) Non inverting amplifier:
If this signal is applied to the non-inverting input terminal and feedback is
given to the inverting input terminal, the circuit amplifies without inverting the input
signal. Such a circuit is called Non-Inverting amplifier. So, it may be noted that the noninverting amplifier is also a negative feedback system as output is being feedback to the
inverting input terminal. Therefore the closed loop gain for non-inverting amplifier is
Acl =
Rf
Vo
= 1
R1
Vi
65
inverting amplifier is extremely large as the op-amp draws negligible current from the
signal source.
Non-Inverting Amplifier
Input Voltage
(Volts)
Time (ms)
Output Voltage
(Volts)
Time (ms)
Time (ms)
Output Voltage
(Volts)
Time (ms)
66
3) Slew rate:
It is the parameter that determines the op-amp for high frequency applications.
It is defined as the maximum change in the output voltage caused by a step input
voltage and is expressed in V/s. Usually op-amp with wide band width will have higher
slew rates. An ideal slew rate is infinite which means that op-amps output voltage should
change instantaneously in response to input step voltage. Practical IC op-amps have
specified slew rates from 0.1V/ s to above 1000 V/ s. It is also a function of
temperature and generally decreases with increase in temperature. The slew rate is
normally caused by a capacitor within or outside an op-amp to prevent oscillation. This
capacitor which prevents the output voltage from responding immediately to a fast
change in input. The rate at which the voltage across the capacitor Vc increases is given
dVc
I
dt
C
by,
It is the maximum current furnished by op-amp to the capacitor C. For obtaining faster
slew rate op-amp should have either a higher current or a small compensating capacitor.
Therefore slew rate is given by
Slewrate
2fVm V
s
10 6
(a)PROCEDURE:
Inverting and non inverting amplifier:
1. Connect the circuit as per the circuit diagram.
2. For the inverting amplifier the input voltage is given to the inverting terminal of opamp.
3. Measure the output voltage using CRO and enter the readings in the tabular column..
4. For non inverting amplifier, the input is given to the non inverting terminal.
5.
Measure the output voltage using CRO and enter the readings in the tabular column.
67
6. Calculate the values of gain using formula (both theoretical & practical) and enter the
readings in the tabular column.
TABULAR COLOUMN:
INVERTING AMPLIFIER:
Vi (volts)
Ri K
Vo (volts)
Rf K
Theoretical
Practical
Gain
Gain
Theoretical
Practical
Gain
Gain
Ri K
Vo (volts)
Rf K
Vi (volts)
Vo (Volts)
68
(b)PROCEDURE:
Slew Rate
1. Connect the circuit as per the circuit diagram.
2. Adjust the input sine wave signal generator so that the output is 1 Volt peak sine
wave at 1 K Hz.
3. Slowly increase the input signal frequency until the output gets just distorted.
4. Calculate the Slew rate, using above formula.
5. Now give a square wave input and repeat above procedure.
6. Increase the input frequency slowly until the output is just barely a triangular
wave. Calculate the slew rate.
69
70
DISCUSSION QUESTIONS:
1. What are the characteristics of an ideal operational amplifier?
Open loop voltage gain, AOL = , Input impedance, Ri = ,
Output impedance, Ro = 0,
Bandwidth = .
2. List the assumptions made in negative feedback circuit.
The current drawn by either of the input terminals (non-inverting and
inverting) is negligible.
The differential input voltage Vd between non-inverting and inverting
terminals is essentially zero.
3. What is an op-amp?
An op-amp is a direct coupled, high gain amplifier consisting of one or
more differential amplifiers, followed by a level translator and an output stage.
An operational amplifier is available as a single integrated circuit package. It is
a versatile device that can be used to amplify dc as well as ac input signals.
4. Explain the meaning of open loop and closed loop operation of op-amp.
In open loop, the input signals are applied at non-inverting and inverting
input terminals. Since the gain is infinite, the output of op-amp is at positive or
negative saturation level. It does not operate linear in this mode.
In closed loop, negative feedback is provided and the input signals are
applied either to inverting or non-inverting terminal. The output in this case is
not driven into saturation level. In this mode it operates linearly.
5. What is a voltage follower?
The output voltage is equal to input voltage both in magnitude and phase.
In other words, the output voltage follows the input voltage exactly.
RESULT:
Thus the Slew rate of an operational amplifier was verified and operation of
inverting and non-inverting amplifier was studied.
Department of Electrical and Electronics Engg
71
CIRCUIT DIAGRAM:
INTEGRATOR
Rf
Cf
R1
VOS1
1
6
OUT
3
+ 7
1 Vpp
OS2
V+
U2
Rcomp
DIFFERENTIATOR:
Rf
Cf
R1
C1
4
-
VOS1
OUT
3
1 Vpp
+ 7
Rcomp
72
OS2
V+
1
6
5
LM741
U2
Vout
Exp. No:
Date
:
APPLICATIONS OF OP-AMP
AIM:
To design and analyze the integrator, Differentiator, Adder and Comparator
circuits.
COMPONENTS REQUIRED:
S.NO
1.
2.
3.
4.
5.
6.
7.
DESIGN:
APPARATUS NAME
Signal generator
CRO
Op- amp
Resistors
Regulated power supply
Capacitor
Breadboard
RANGE
1MHz
20MHz
LM741
10K, 5K
(0-30) Volts
0.1F
QUANTITY
2
1
1
2,1
3
1
INTEGRATOR:
The output voltage is given by
Vo (t )
1
R1C F
in
(t )dt Vo (o)
To find Cf:
R1
------- (1)
1 j R f C f
Rf
fa = 2R C ---------------- (2)
f
f
fa
73
COMPARATOR:
4
4
R= 10K
2
-V
6
10K
Vref
Vo
+V
Vi
ADDER:
V1
V2
V3
Rf = 10K
R1= 10K
R2= 10K
R3 = 10K
4
4-V
6
3
7
Rcomp
10K
74
+V
Vo
To find R1 :
Let Gain (A) = 1 and substitute all remaining values in equation (1), then
find the value of R1.
Rcomp = R1Rf
Time constant:
T = R f Cf
DIFFERENTIATOR:
The output voltage is given by
Vo RF C1
dvin
dt
jR f C1
(1 jR1C1 ) 2
------------------- (1)
fa = 2R C ------------------- (2)
f
1
fb
1
2R1C 1
------------------- (3)
1. Choose fa equal to the highest frequency of the input signal. i.e. fa = 100Hz
2. Choose C1 to be less than 1 micro Farad and calculate the value of Rf.
Choose C = 1micro Farad and from equation (2) and Calculate Rf.
3. Choose fb = 10fa which ensures that fa < fb. Now find R1 using eq.(3)
Differentiator
4. To find Cf , use
RfCf = R1C1 .
Input
Voltage
(Volts)
Time
(msec)
MODEL GRAPH:
Output
Voltage
(Volts)
75
Time
(msec)
Integrator
Input
Voltage
(Volts)
Time
(msec)
Output
Voltage
(Volts)
Time
(msec)
ADDER:
The nodal equation by KCL at node A is
76
V1 V2 V3 V0
0
R1 R2 R3 R f
Rf
Rf
Rf
V0
V1
V2
V3
R2
R3
R1
or,
Where R1 = R2 = R3 = Rf then
V0= - [V1+V2 + V3]
Assume Rf =10K
Rf/R1 = 1
R1 = 10K
Rf/R2 = 1
R2 = 10K
Rf/R3 = 1 ,
R3 = 10K
Rcomp = R1R2R3Rf
THEORY:
Integrator:
In an integrator circuit, the output voltage waveform is the integral of the input
voltage waveform. Such a circuit is obtained by using a basic inverting amplifier
configuration if the feedback resistor Rf is replaced by a capacitor Cf.
The output voltage is given by
Vo (t )
1
R1C F
in
(t )dt Vo (o)
Where C is the integration constant and is proportional to the value of the output voltage
Vo at time t = 0 seconds. The above equation indicates that the output voltage is directly
Comparator
proportional to the negative integral of the input voltage and inversely proportional to the
time constantInput
R1Cf. For eg.if the input is a sine wave, the output will be a cosine wave.
voltage
77
Time
(msec)
Offset Null
No Connection
Inverting input
V+
Output
Offset Null
V-
IC741
circuits to reduce the error voltage at the output, a resistor R F is connected across the
feedback capacitor CF. Thus RF limits the low frequency gain and hence minimizes the
variations in the output voltage. Both the stability and the low frequency roll off
problems can be corrected by the addition of a resistor RF.
Differentiator:
78
dvin
dt
Thus the output voltage Vo is equal to RFC1 times the negative instantaneous rate of
change of the input voltage Vin with time. The differentiator performs the reverse of
integrators function, a cosine wave input will produce a sine wave output or a triangular
input will produce a square wave output. The gain of the circuit (R F/Xc1) increases with
increase in frequency at a rate of 20 dB/decade. This makes the circuit unstable and break
into oscillations. However the input impedance XC1 decreases with increase in frequency,
which makes the circuit very susceptible to high frequency noise. Both the stability and
the high frequency noise problems can be corrected by the addition of two components
R1 and CF. These components R1C1 and RFCF help to reduce significantly the effect of
high frequency input, amplifier noise and offsets.
Inverting summing Amplifier:
Operational amplifier may be used to design a circuit whose output is the sum of
several input signals. Such a circuit is called summing amplifier or summer. The
summing amplifier may be inverting or non inverting one Assume that the op-amp is an
ideal one, that is AoL =
there is no voltage drop across the resistor Rcomp and hence the non inverting input
terminal is at ground potential. The voltage at node A is zero as the non inverting input
terminal is grounded. The nodal equation by KCL at node A is given by
TABULATION:
Department of Electrical and Electronics Engg
79
ADDER:
V1 (volts )
V2(volts)
V3 (volts)
V0 = -(V1+V2+V3)volts
Output voltage
(ms)
(V)
COMPARATOR:
Input voltage
(V)
Output voltage
(ms)
(V)
V1 V2 V3 V0
0,
R1 R2 R3 R f
80
Rf
Rf
Rf
V0
V1
V2
V3
R2
R3
R1
Thus the output is an inverted, weighted sum of the inputs. In the special
case, when
R1 = R2 = R3 = Rf ,we have
V0= - [V1+V2 + V3]
Comparator:
A comparator is a circuit which compares a signal voltage applied at one input of
an op-amp with a known reference voltage at the other input. It is basically an open loop
op-amp with output Vsat (=Vcc).Comparators are used in circuits such as digital
interfacing, Schmitt triggers, voltage level detectors. A fixed reference voltage Vref is
applied to the (-) input and the time varying signal voltage V in is applied to the (+) input.
Because of this arrangement, the circuit is called non-inverting comparator. The output
voltage is at Vsat for Vi less than Vref because the voltage at the (-) input is higher than at
the (+) input. And Vo goes to +Vsat for Vi greater than Vref. Thus V0 changes from one
saturation level to another.
PROCEDURE:
DIFFERENTIATOR AND INTEGRATOR:
1. Connect the circuit as per the circuit diagram.
2. For the integrator circuit, the square wave is given as the input waveform and the
triangular wave is taken as the output using CRO.
3. For the differentiator circuit, square wave is given as input and spike wave is
taken as output.
4. Measure the input and output voltage and enter it into tabular column.
5. After completing the experiments, reduce the supply to zero potential and
disconnect the circuit diagram.
ADDER AND COMPARATOR:
1.
2.
3.
4.
5.
81
6.
7.
For the adder circuit, set the voltages as 1V, 2V and 3V at V1,V2,V3.
Note down the readings and enter in the tabulation.For an inverting summing
amplifier the output will be the inverted sum of these input signals.
82
DISCUSSION QUESTIONS:
1. What is integrator?
A circuit in which the output voltage waveform is the integral of the input
waveform is the integrator or integration amplifier.
Vo
1
R1C F
in
dt c
RESULT:
Thus the Differentiator, Integrator, Adder and Comparator circuits were designed
and analyzed.
CIRCUIT DIAGRAM:
Department of Electrical and Electronics Engg
83
MONOSTABLE MULTIVIBRATOR:
+Vcc
8
3
Vout
7
555
C = 0.01F
2
Trigger input
ASTABLE MULTIVIBRATOR:
+VCC
RA
7
RB
Vo
555
C = 0.01F
Exp. No:
Date
:
84
APPARATUS NAME
Regulated power supply
Signal generator
CRO
Resistors
Timer IC
Capacitors
RANGE
(0-30) Volts
1MHz
20MHz
10k
NE555
0.1F,0.01F
DESIGN:
Astable Multivibrator:
Let
Vcc = 5V
Vc
= Vcc
T= 0.69 (RA+2RB) C
f
1
1.45
T R A 2 RB C
Let RA = RB = R
T = 2.1RC
Assume R = 10K and C = 0.1F for T = 2.1ms
Also Ton = 0.69(RA+RB) C
Toff = 0.69RBC
MODEL GRAPH:
MONOSTABLE MULTIVIBRATOR
Output voltage
Department of Electrical and Electronics Engg
85
QUANTITY
1
1
1
2
1
1
T (ms)
1/3
Vcc
2/3
Vcc
Tlow
Thigh
Ground
Vcc
Trigger
Discharge
555
Output
Threshold
Reset
Control
Voltage
Monostable Multivibrator:
T = 1.1RC
Assume R = 10K and C = 0.1F for T = 1.1ms
Department of Electrical and Electronics Engg
86
THEORY:
IC 555:
The astable and monostable circuit are commonly available in monolithic ICs,
and IC timers. The timer 555 is one example which has gained wide acceptance in terms
of cost and versatility. It was first introduced by Signetics Corporation as SE/NE 555.
Some important applications of this device are monostable and astable multivibrators,
dc-dc converters, digital logic probes, waveform generators, analog frequency meters and
tachometers, temperature measurement and control, infrared transmitters, burglar and
toxic gas, alarms, voltage regulators, etc.
The IC 555 timer is a 8-pin IC that can be connected to external components for
either astable or monostable operation. The 555 timer will work with any supply voltage
between 4.5V and 10V.In the internal structure of the 555 timer there are one flip flop
and two op-amps. The non-inverting input of upper op-amp is called as threshold voltage
and inverting input is called as control voltage.Multivibrators is group of regenerative
circuits. They are widely used in timing applications.Multivibrators are classified as
(1) Bistable multivibrators
(2) Monostable Multivibrators
(3) Astable Multivibrators
ASTABLE MULTIVIBRATORS:
Astable circuits are used to generate square waves. It is also known as
free running multivibrator.It has two quasistable states. Thus there is no oscillation
between these two states and no external signals to produce the change in state.
As there is no need of trigger input the second pin is connected to the sixth
pin. Comparing with monostable operation, the timing resistor is now split into two
sections RA and RB. Pin 7 is connected to the junction of R A and RB. When the power
supply Vcc is connected, the external timing capacitor C charges towards Vcc with a time
constant (RA+RB) C. When the threshold voltage exceeds Vcc, the upper op-amp has a
ASTABLE MULTIVIBRATOR:
87
o/p
voltage
Output voltage
1/3
Vcc
2/3
Vcc
T(ms)
Tlow
Thigh
high input and this sets the flip flop allowing the capacitor discharging through R B.
Therefore the discharge time constant is R BC. When the capacitor drops below +Vcc/3,
the lower amplifier has higher input and this resets the flip flop. The capacitor C is thus
Department of Electrical and Electronics Engg
88
periodically charged and discharged between (2/3) Vcc and (1/3) Vcc. The total time period
is given by
T = 0.69 (RA+2RB) C.
MONOSTABLE MULTIVIBRATORS:
The 555 timer configured for monostable operation is shown in the figure.
Monostable multivibrator often called a one shot multivibrator is a pulse generating
circuit in which the duration of this pulse is determined by the RC network connected
externally to the 555 timer. In a stable or standby state, the output of the circuit is
approximately zero or a logic-low level. When external trigger pulse is applied output is
forced to go high ( VCC). The time for which 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 stable state. The output stays low until trigger
pulse is again applied. Then the cycle repeats. The monostable circuit has only one stable
state (output low) hence the name monostable. The time during which the output remains
high is given by
PROCEDURE:
1. Get the required components and check the condition of them.
2. Connect the circuit as per the circuit diagram.
3. Switch on the power supply and look at the output with CRO.
4. Measure the width and time period of the output waveform.
5. Look at the voltage across the capacitor, an exponentially rising and falling wave
between5V and 10V is noted.
6. After completing the experiments, reduce the supply to zero potential and
disconnect the circuit diagram.
TABULATION:
Department of Electrical and Electronics Engg
89
MONOSTABLE MULTIVIBRATOR:
Parameter
Amplitude(V)
Time period(ms)
Output voltage
Capacitor voltage
ASTABLE MULTIVIBRATOR :
Parameter
Amplitude(V)
Time period(ms)
Output voltage
Capacitor voltage
DISCUSSION QUESTIONS:
1. What are the applications of 555 timers?
The applications of 555 timers include oscillator, pulse generator, burglar
alarm,
and traffic light control
2. Define duty cycle.
Department of Electrical and Electronics Engg
90
The duty cycle D of a circuit is defined as the ratio of ON time to the total
time period T= (tON +toff).
3. What is the function of 555 Timer?
The 555 timer is a highly stable device for generating accurate time delay or
oscillation. A single 555 timer can provide time delay ranging from microseconds
to hours
.
4. What are the modes of operation of a timer?
The modes of operation of timers are monostable and astable mode.
5. What are the applications of 555 timer in monostable mode?
The applications of 555 timer in Monostable mode are
(i)
Missing Pulse Detector
(ii)
Linear Ramp Generator
(iii)
Frequency Divider
(iv)
Pulse Width Modulation
6. What are the applications of 555 timer in Astable mode?
The applications of 555 timer in Astable mode are
(i) Pulse-Position Modulator
(ii) FSK Generator
(iii) Schmitt Trigger
Preparation
Performance
Record
Total
30
30
40
100
RESULT:
Thus the astable and monostable multivibrators was designed and tested using
NE555 timer.
+Vcc
10k
CIRCUIT DIAGRAM:
20k
10k
c
20k
D3
10k
20k
IC741
20k
3
100k
D2
Rcomp
D1
20k
Department of Electrical and Electronics Engg
91
-VR = 5V
4
-Vcc
Vo
MODEL GRAPH:
Analog output
Digital Input
.
Exp. No:
Date
:
92
COMPONENTS REQUIRED:
S.
Components
No
1. Op-amp
2. Resistors
3.
4.
Breadboard
Regulated power supply
Range
Quantity
LM741
10K, 20K,
100K
1
1,5,1
(0-30V)
1
2
PROCEDURE:
1. Make the connections as shown in the circuit diagram.
2. With all inputs (d0 to d2) shorted to ground, check whether any offset voltage
at the input of the op-amp.
3. Measure the output voltage for all binary inputs (000 to 111) states and plot a
graph of binary inputs Vs output voltage.
THEORY:
In R-2R ladder type DAC only two values of resistors are required. It is well
suited for integrated realization. The typical values of R range from 2.5K to 10K. The
binary inputs are simulated by switches D 1 through D3 and the output is proportional to
the binary inputs. Binary inputs can be in either high (+5) or low (0V) state. Assume that
the most significant bit which is connected to +5V and other switches are connected to
ground. This switch position corresponds to binary word to 100.The voltage at node c can
be easily calculated by the set procedure of network analysis as (-V R/4).The output
voltage Vo = (VR/2).The great advantage of the D/A converter is that it requires only two
sets of precision resistance values and number of bits can be expanded by adding more
sections of same R and 2R values. As the number of binary inputs is increased beyond
four, the circuits get complex and their accuracy degenerates.
TABULAR COLUMN:
INPUTS
D1
D2
OUTPUT
VOLTAGE
D3
93
Offset Null
No Connection
Inverting input
V+
Output
Offset Null
V-
IC741
DISCUSSION QUESTIONS:
1. What are the types of digital to analog converters?
The types of DAC are
Weighted resistor DAC
R-2R ladder DAC
Inverted R-2R ladder DAC.
2. Why an inverted R-2R ladder network DAC is better than R-2R ladder
DAC.
Department of Electrical and Electronics Engg
94
In R-2R ladder type DAC current flowing through the resistors changes as
The input data changes .More power dissipation causes heating which in turn
Creates nonlinearity in DAC.
3. Define resolution of converter
It is the smallest change in voltage which may be produced at the output of
the converter.
Resolution (in volts) = VFS / (2n-1) = 1 LSB increment.
4. What is DAC?
A digital to analog converter is used to convert a digital signal to an analog
signal. Hence the input is an n-bit binary word and combined with a
reference voltage VR to give an analog output signal. The output of DAC
is either a voltage or current.
5. Mention any two differences between weighted resistor DAC and R-2R
DAC.
S.No Weighted Resistor DAC
1.
Requires a wide range of
resistor values
2.
Higher values of resistor
required for the LSB.
R-2R DAC
Requires only two values of
resistors.
No such restriction as only two
resistor values are used what ever
may be the inputs.
RESULT:
Thus a three bit R-2R ladder type Digital to analog converter is
constructed and the transfer characteristics were drawn.
FREQUENCY MULTIPLIER:
95
Input
Signal
Phase
Comparator
Low Pass
Filter
Amplifier
N
Network
+Vcc
1.5 K
RT
0.001F
8
3
Vc
NE/
SE 566
1K
7
CT
96
4
1
111
111
11
VCO
Exp. No:
Date
:
Range
2K,10K,1.5K
10F
0.01F
0.001F
(0-30)V
1MHZ
20MHZ
DESIGN:
(a) Frequency Multiplier
fL
Capture Range f
c
2 3.6 *103 C
2 V Vc
CT RT (V )
where
3
(v ) vc (v)
4
Department of Electrical and Electronics Engg
97
quantity
1,1,1
1
1
1
1
1
1
1
1
1
CIRCUIT DIAGRAM:
+V = 10V
C
10F
0.001F
R = 2K
C1
10
2
NE/SE 565
fin
fout
3
Vcc=+5V
9
5
CT
11
0.01F
-V = -10V
7490(/5)
2 3 6 7 10
1010
MODEL GRAPH:
fin
1 Cycle
Time
fout
5 Cycle
Time
98
THEORY:
Frequency Multiplier:
The frequency multiplier using the 565 PLL is shown in the block diagram. As shown in
the diagram, the frequency divider is inserted between the VCO and the phase
comparator. Since the output of the divider is locked to the input frequency f in, the VCO
is actually running at a multiple of the input frequency. The desired amount of
multiplication can be obtained by selecting a proper divide by N network, where N is an
integer. For example, to obtain the output frequency fout = 5fn, a divide-by-N = 5 network
is needed. The circuit shows this function performed by a 7490 (4-bit binary counter)
configured as a divide-by-5 circuit.
To verify the operation of the circuit, one must determine the input frequency
range and then adjust the free-running frequency fout of the VCO by means of R1 and C1
so that the output frequency of the 7490 divider is midway within the predetermined
input frequency range. The output of the VCO now should be 5f in. In the circuit, the
output frequency fout can be adjusted from 1.5 kHz to 15 kHz by varying potentiometer
R1. This means that the input frequency fin range has to be within 300Hz to 3 kHz. In
addition, the input waveform can be either sine or square and may be applied to input
pins 2 or 3. The above input output waveform represents f out = 5fin. Even though supply
voltages of 10V are used, the NE565 can be operated on 5V supply voltages instead. A
small capacitor, typically 1000pf, is corrected between pins 7 and 8 to eliminate possible
oscillations. Also capacitor C2 should be large enough to stabilize the VCO frequency.
Voltage to frequency Characteristics of VCO:
There are applications such as frequency modulation, tone generators, and
frequency shift keying, where the frequency needs to be controlled by means of an input
voltage called control voltage. This function is achieved in the voltage controlled
oscillator. A common type of VCO available in IC form is signetics NE/SE 566.A timing
capacitor CT is linearly charged or discharged by a constant current source/sink. The
amount of current can be controlled by changing the voltage V c applied at the modulating
99
input (pin5) or by changing the timing resistor RT external to the chip. The voltage at pin
6 is held at the same voltage as pin 5. Thus, if the modulating voltage at pin 5 is
Pin Diagram:
Ground 1
NC
Sq.wave
3
output
Triangular 4
wave output
NE/SE 566
VCO
+Vcc
CT
RT
5 Modulation
Input
-Vcc
14
NC
Input
13
NC
Input
12
NC
11
NC
VCO output 4
NE / SE 565
10
Reference 6
Output
Demodulated 7
Output
9
8
100
+Vcc
External capacitor
for VCO
External resistor
for VCO
increased, the voltage at pin 6 also increases, resulting in less voltage across RT and there
by decreasing the charging current. A small capacitor of 0.001F should be connected
Frequency Multiplier:
between pins 5 and 6 to eliminate possible oscillations in the control current source. The
frequency of oscillations is determined by an external resistor RT ,capacitor CT, and the
voltage applied to the control terminal 5.
PROCEDURE:
1.
2.
3.
4.
5.
6.
7.
8.
101
Time Period
Triangular Wave
Amplitude
Time Period
Output Frequency
(KHZ)
102
DISCUSSION QUESTIONS:
1. List the basic building blocks of a PLL (Phase locked loop)
A phase locked loop consists of a phase detector/comparator, low pass filter, error
amplifier, voltage controlled oscillator.
2. Give the uses of low pass filter used in PLL and state its types.
The low pass filter may be active or passive type. The LPF not only removes the
high frequency components and noise, but also controls the dynamic characteristics of
the PLL such as capture range, lock range, bandwidth and transient response.
3. List the applications of PLL.
The PLLs are used as frequency multiplier, divider, AM detection, FM
demodulation and FSK demodulator
4. Write the expression for voltage to frequency conversion factor.
The voltage to frequency conversion factor kv is defined as
kv
f o
v c
Where vc is the modulation voltage required to produce the frequency shift fo for a
VCO.
5. What is voltage controlled oscillator?
The voltage controlled oscillator generates an output frequency that is directly
proportional to input voltage. These are also called as voltage to frequency converters.
RESULT:
Thus the Frequency Multiplier using NE/SE 565 and Voltage to frequency
characteristics using NE/SE566 was designed and tested.
Department of Electrical and Electronics Engg
103
104