Digital Microprocessor Lab Manual 5th Sem
Digital Microprocessor Lab Manual 5th Sem
LABORATORY
MANUAL
Digital Electronics & Microprocessor Lab
(5th Semester)
1
3-9
2
10-14
3
15-17
4
18-19
5
20-21
6
22-27
7
28-31
8
32-35
9
36-39
10
40-42
11
43-45
12
46-47
Sl. No Name of the Experiment Pages
1
3-9
2
10-14
3
15-17
4
18-19
5
20-21
6
22-27
7
28-31
8
32-35
9
36-39
10
40-42
11
43-45
12
46-47
Inverter Gate (NOT Gate) 7404LS 2-Input AND Gate 7408LS
Aim: - To Verify truth tables of AND, OR, NOT, NOR, NAND, XOR, XNOR gates.
Apparatus Required: -
1.All the basic gates mention in the fig.
2.IC Trainer Kit
Procedure: -
Kit.
6. Disconnect output from the LEDs and note down the corresponding
A O/P
0 1
1 0
2-Input AND Gate 7408LS
A B O/P
0 0 0
0 1 0
1 0 0
1 1 1
A B O/P
0 0 0
0 1 1
1 0 1
1 1 1
A B O/P
0 0 1
0 1 1
1 0 1
1 1 0
2-Input NOR Gate 7402LS
A B O/P
0 0 1
0 1 0
1 0 0
1 1 0
A B O/P
0 0 0
0 1 1
1 0 1
1 1 0
0 1 0
1 0 0
1 1 1
Conclusion:-
Truth table of logic gates are verified.
Experiment No:2 Date: / /
Aim: - Implementation of various gates by using universal properties of NAND & NOR gates
and
Verify truth table.
APPARATUS REQUIRED
THEORY:
NAND OR NOR gates are sufficient for the realization of any logic expression. because of
this reason, NAND and NOR gates are known as UNIVERSAL gates.
PROCEDURE:
A B AB
0 0 0
0 1 0
1 0 0
1 1 1
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
A B
0 0 1
0 1 0
1 0 0
1 1 0
A B A⊕B
0 0 0
0 1 1
1 0 1
1 1 0
A B AʘB
0 0 1
0 1 0
1 0 0
1 1 1
2.For NOR gate as universal gate
PROCEDURE:
A Ā
0 1
1 0
A B A+B
0 0 0
0 1 1
1 0 1
1 1 1
A B AB
0 0 0
0 1 0
1 0 0
1 1 1
A B AB
0 0 1
0 1 1
1 0 1
1 1 0
A B A⊕B
0 0 0
0 1 1
1 0 1
1 1 0
A B AʘB
0 0 1
0 1 0
1 0 0
1 1 1
Conclusion:-
We have constructed and verified truth table of all gates using universal gates NAND and NOR gate.
Experiment No:3 Date: / /
Aim: - Implementation of half adder and Full adder using logic gates.
APPARATUS REQUIRED
THEORY:
Half-Adder: A combinational logic circuit that performs the addition of two data bits, A and B, is
called a half-adder. Addition will result in two output bits; one of which is the sum bit, S, and the
other is the carry bit, C. The Boolean functions describing the half-adder are:
S =A ⊕ B C=AB
Full-Adder: The half-adder does not take the carry bit from its previous stage into account. This
carry bit from its previous stage is called carry-in bit. A combinational logic circuit that adds two
data bits, A and B, and a carry-in bit, Cin, is called a full-adder. The Boolean functions describing
the full-adder are:
S = (x ⊕ y) ⊕ Cin C = xy + Cin (x ⊕ y)
Procedure: -
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to the
truth table.
4. Note down the output readings for half and full adder sum and the carry
bit for different combinations of inputs.
Half adder
A B S C
0 0
0 1
1 0
1 1
Conclusion: -
Half adder and full adder are constructed and their truth tables are verified.
Experiment No:4 Date: / /
Aim: - Implementation of half subtractor and Full subtractor using logic gates.
APPARATUS REQUIRED
THEORY:
Half Subtractor: Subtracting a single-bit binary value B from another A (i.e. A -B) produces a
difference bit D and a borrow out bit B-out. This operation is called half subtraction and the circuit
to realize it is called a half subtractor. The Boolean functions describing the halfSubtractor are:
D =A ⊕ B Br = Α̅ B
Full Subtractor: Subtracting two single-bit binary values, B, Cin from a single-bit value A produces a
difference bit D and a borrow out Br bit. This is called full subtraction. The Boolean functions
describing the full-subtracter are:
Procedure: -
1. Verify the gates.
2. Make the connections as per the circuit diagram.
3. Switch on VCC and apply various combinations of input according to the
truth table.
4. Note down the output readings for half and full subtractor difference and
borrow bit for different combinations of inputs.
Using X – OR and Basic Gates (a)Half Subtractor
Full Subtractor
Half Subtractor
A B D Br
0 0
0 1
1 0
1 1
Full Subtractor
A B Bin D Br
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Conclusion: -
Half subtractor and full subtractor are constructed and their truth tables are verified.
Experiment No:5 Date: / /
APPARATUS REQUIRED
1. IC 7486
2.Digital trainer kit
THEORY:
Gray Code is one of the most important codes. It is a non-weighted code which belongs to a
class of codes called minimum change codes.
In this codes while traversing from one step to another step, only one bit in the code group
changes.
The input variable are designated as B3, B2, B1, B0 and the output variables are designated as
G3, G2, G1, G0.
Procedure: -
1. The circuit connections are made as shown in fig.
2. Pin (14) is connected to +Vcc and Pin (7) to ground.
3. In the case of binary to gray conversion, the inputs B0, B1, B2 and B3 are given at
respective pins and outputs G0, G1, G2, G3 are taken for all the 16 combinations of
the input.
4. The values of the outputs are tabulated.
TRUTH TABLE:
B3 B2 B1 B0 G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 1 0 1 1 1 1
1 0 1 1 1 1 1 0
1 1 0 0 1 0 1 0
1 1 0 1 1 0 1 1
1 1 1 0 1 0 0 1
1 1 1 1 1 0 0 0
K-Map for G3:
G 3 = B3
Conclusion: -
4-bit Binary to Gray code converter is constructed and their truth tables are verified.
Experiment No:6 Date: / /
APPARATUS REQUIRED
THEORY:
Magnitude Comparator is a logical circuit, which compares two signals A and B and generates
three logical outputs, whether A > B, A = B, or A < B.
Procedure: -
1. The circuit connections are made as shown in fig.
2. Pin (14) is connected to +Vcc and Pin (7) to ground.
3. The inputs A,B are given at respective pins and outputs A > B, A = B, or A < B are
connected to the output LED.
4. The values of the outputs are tabulated.
TRUTH TABLE
INPUTS OUTPUTS
A B A>B A=B A<B
0 0 0 1 0
0 1 0 0 1
1 0 1 0 0
1 1 0 1 0
LOGIC DIAGRAM
Conclusion: -
A Single bit digital comparator is constructed and it’s truth tables are verified.
Experiment No:7 Date: / /