Professional Documents
Culture Documents
LAB MANUAL
SUBJECT: DIGITAL ELECTRONICS LAB [ECP-156]
Chandigarh University
Gharuan, Mohali
Table of Contents
AIM: Truth table verification of OR, AND, NOT, XOR, NAND and NOR gates
THEORY: Digital circuits have two state operations. In two state operations all signals are either
low(0) or high(1). Logic gate is a digital circuit with one or more input voltages, but only one
output voltage. It works according to some logical relationships between input & output voltages.
The relation between possible values of input and output voltage is expressed in the form of table,
is called truth table.
NOT Gate: NOT gate has only one input and one output. Output is complement (reverse) of
input. IC for NOT gate is 7404.
OR Gate: OR gate perform a logical addition. If any or all inputs are high, output is high. The IC
used for OR gate ( 7432).
NOR Gate: Combination of NOT gate and OR gate is NOR. All inputs must be low to get a high
output. If any of input is high, output is low. IC used is 7402.
AND Gate: AND gate performs logical multiplication. Output is high only when all the inputs are
high.
NAND Gate: It is combination of AND and NOT gate. All the inputs must be high to get a low
output.
X-OR Gate: The exclusive- OR gate has a high output only when odd number of inputs are high
or all inputs are different, when both inputs are low and high, output is high.
CIRCUIT DIAGRAM:
PROCEDURE:
1. Plug the chips you will be using into the breadboard. Point all the chips in the same direction
with pin1 at the upper-left corner. (Pin 1 is often identified by a dot or a notch next to it on the chip
package).
2. Connect +5V and GND pins of each chip to the power and ground bus strips on the breadboard.
3 Make the connections as per the circuit diagram.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Note down the output readings for half/full adder and sum and the carry bit for different
combinations
of inputs in following Tables where S & V indicating logic value of the output. And fill your result
in
S (V) and C (V) in voltage. Where 5V indicating logic 1 and 0V indicating logic 0.
RESULT :
Truth table of gates and implementation has been verified.
PRECAUTIONS :
1. Connections should be proper & tight.
2. Check the connections checked before switching on kit.
EXPERIMENT NO 2
AIM: Realization of OR, AND, NOT and XOR functions using universal gates.
THEORY: Digital circuits have two state operations. In two state operations all signals are either
low(0) or high(1). Logic gate is a digital circuit with one or more input voltages, but only one
output voltage. It works according to some logical relationships between input & output voltages.
The relation between possible values of input and output voltage is expressed in the form of table,
is called truth table.
The figure shows two ways in which a NAND gate can be used as an inverter (NOT gate).
1. All NAND input pins connect to the input signal A gives an output A’.
2. One NAND input pin is connected to the input signal A while all other input pins are
connected to logic 1. The output will be A’.
An AND gate can be replaced by NAND gates as shown in the figure (The AND is replaced
by a NAND gate with its output complemented by a NAND gate inverter).
IMPLEMENTING OR USING NAND GATE :
An OR gate can be replaced by NAND gates as shown in the figure (The OR gate is replaced
by a NAND gate with all its inputs complemented by NAND gate inverters).
replaced by a NOR gate with all its inputs complemented by NOR gate inverters)
CIRCUIT DIAGRAM:
PROCEDURE:
1. Plug the chips you will be using into the breadboard. Point all the chips in the same direction
with pin1 at the upper-left corner. (Pin 1 is often identified by a dot or a notch next to it on the chip
package).
2. Connect +5V and GND pins of each chip to the power and ground bus strips on the breadboard.
3 Make the connections as per the circuit diagram.
4. Switch on VCC and apply various combinations of input according to truth table.
5. Note down the output readings for half/full adder and sum and the carry bit for different
combinations
of inputs in following Tables where S & V indicating logic value of the output. And fill your result
in
S (V) and C (V) in voltage. Where 5V indicating logic 1 and 0V indicating logic 0.
RESULT :
Truth table of gates and implementation has been verified.
PRECAUTIONS :
3. Connections should be proper & tight.
4. Check the connections checked before switching on kit.
EXPERIMENT NO 3
AIM: a) To design and verify the truth table of Half Adder using gates.
(b) To design and verify the truth table of Full Adder using gates.
APPARATUS USED :
Trainer kit , 7486,7432,7408,Connecting Wires.
THEORY :
Half Adder : A logic used for the addition of two one bit signals is known as a half
adder
Full Adder : A half adder has only 2 input terminals and there is no provision to add
a carry coming from the lower order bits when binary numbers are added. For this
purpose a third input terminal is added and this circuit is used to add An,Bn& Cn-1
where An & Bn are the nth order bits of the numbers.
CIRCUIT DIAGRAM:
PROCEDURE:
PRECAUTIONS:
1. Check the connections before switching On the kit.
2. Connections should be done properly.
3. Observations should be taken properly.
EXPERIMENT NO 4
AIM: (a) To design and verify the truth table of Half Subtractor using gates.
(b) To design and verify the truth table of Full Subtractor using gates.
APPARATUS USED:
Trainer kit, 7486,7408,7432,7404 & Connecting Wires
THEORY:
SUBTRACTION:
In a similar fashion subtraction can be performed using binary numbers. The truth
table for a single bit or half-subtractor with inputs A and B is given below along with
its circuit diagram (Fig.1). A full subtractor circuit accepts a minuend (A) and the
subtrahend (B) and a borrow (BIN) as inputs from a previous circuit. A full subtractor
circuit can be realized by combining two half subtractor circuits and an OR gate as
shown in (Fig.2).
CIRCUIT DIAGRAM:
OBSERVATIONS:
Truth Table for Half Subtractor and Full Subtractor are as shown
BN-1 A B Q BN
0 0 1 1 1
0 1 0 1 0
0 1 1 0 0
1 0 0 1 1
1 0 1 0 1
1 1 0 0 0
1 1 1 1 1
RESULT: The truth tables for half and full Subtractor have been verified.
PRECAUTIONS:
1. Check the connections before switching on the kit.
2. Connections should be done properly.
3. Observations should be taken properly.
EXPERIMENT NO 5
APPARATUS USED:
Mini Digital Training and Digital Electronic Sets.
IC 7404, IC 7408, IC 7432, IC 74153 & connecting wires.
THEORY:
Fig. IC of MUX
PROCEDURE:-
OBSERVATION:-
PRECAUTIONS:
a. All ICs should be checked before starting the experiment.
b. All the connection should be tight.
c. Always connect ground first and then connect Vcc.
d. Suitable type wire should be used for different types of circuit.
e. The kit should be off before change the connections.
f. After completed the experiments switch off the supply of the apparatus.
EXPERIMENT NO 6
APPARATUS USED:
Digital trainer kit, 7432 IC, 7404 IC, 74139 and Connecting wires, LEDs, 220Ohm
resistor, Power supply.
THEORY:
De- multiplexer:-
A de-multiplexer is a circuit that has one input and more than one output. A de-
multiplexer is often abbreviated as d-mux. It is used when a circuit wishes to send a
signal to one of many devices. The output line to which the input gets connected
depends on the selection/control lines. This description sounds similar to the
description given for a decoder, but a decoder is used to select among many devices
while a demultiplexer is used to send a signal among many devices.
Fig. Demux IC
Procedure:-
1. Connect the supply from the trainer kit through patch chords; also connect circuit
as per circuit diagram.
2. Give input connections at I, and at selection line.
3. Observe the output D0, D1 on the trainer kit through LED’s.
The logic diagram for the de-Multiplexer is given below:-
OBSERVATION:-
RESULT: The truth table for 1:4 Demultiplexer has been verified.
PRECAUTIONS:
a. All ICs should be checked before starting the experiment.
b. All the connection should be tight.
c. Always connect ground first and then connect Vcc.
d. Suitable type wire should be used for different types of circuit.
e. The kit should be off before change the connections.
f. After completed the experiments switch off the supply of the apparatus.
EXPERIMENT NO 7
APPARATUS USED:
IC's of Hex-Inverters, 2-input AND, 2-input AND, 2-input XOR gates, IC 74184,
logic trainer kit and connecting leads.
THEORY:
BCD is binary coded decimal number, where each digit of a decimal number is
respected by its equivalent binary number. That means, LSB of a decimal number is
represented by its equivalent binary number and similarly other higher significant
bits of decimal number are also represented by their equivalent binary numbers.
Procedure:
1. Use data sheets to get pins description for the IC are used in the circuit as shown
in the logic diagram.
2. Connect the inputs of the circuit to the corresponding logical switches A, B, C and
D.
3. Connect the outputs of the circuit to the logical LEDs.
4. Connect the ground and Vcc of for all IC's used in the circuit through the logical
trainer kit.
RESULT: The truth table for Binary to BCD converter has been verified.
PRECAUTIONS:
a. All ICs should be checked before starting the experiment.
b. All the connection should be tight.
c. Always connect ground first and then connect Vcc.
d. Suitable type wire should be used for different types of circuit.
e. The kit should be off before change the connections.
f. After completed the experiments switch off the supply of the apparatus.
EXPERIMENT NO 8
APPARATUS USED:
2-input AND, 2-input AND, 2-input XOR gates, Not gates logic trainer kit and
connecting leads.
THEORY:
2-Bit Comparator
A 2-bit comparator compares two binary numbers, each of two bits and produces
their relation such as one number is equal or greater than or less than the other. The
figure below shows the block diagram of a two-bit comparator which has four inputs
and three outputs.
The first number A is designated as A = A1A0 and the second number is designated
as B = B1B0. This comparator produces three outputs as G (G = 1 if A>B), E (E = 1,
if A = B) and L (L = 1 if A<B).
Procedure:
1. Use data sheets to get pins description for the IC are used in the circuit as shown
in the logic diagram.
2. Connect the inputs of the circuit to the corresponding logical switches A, B, C and
D.
3. Connect the outputs of the circuit to the logical LEDs.
4. Connect the ground and Vcc of for all IC's used in the circuit through the logical
trainer kit.
The figure below shows the logic diagram of a 2-bit comparator using basic logic
gates. It is also possible to construct this comparator by cascading of two 1-bit
comparators.
OBSERVATION:-
PRECAUTIONS:
a. All ICs should be checked before starting the experiment.
b. All the connection should be tight.
c. Always connect ground first and then connect Vcc.
d. Suitable type wire should be used for different types of circuit.
e. The kit should be off before change the connections.
f. After completed the experiments switch off the supply of the apparatus.
EXPERIMENT NO 9
AIM: (a) To verify the truth tables of Flip Flops 7476 (J-K) and 7474 (D)
(b) To design and implement the S-R flip flop using NAND / NOR gates.
APPARATUS USED :
1. Logic Trainer kit.
2. flip flop kit 7476 & 7474,7400&7402
3. Connecting Wires.
CIRCUIT DIAGRAM:
THEORY :
PROCEDURE:
OBSERVATIONS:
Truth tables are as shown:
RESULT:
Design and verification of S-R flip flop, verification of truth tables of J-K and D flip
flop have been done.
PRECAUTIONS:
1. Check the connections before switching on the kit.
2. Connections should be done properly.
3. Observations should be taken properly.
EXPERIMENT NO 10
AIM: To design and implement the Shift Register using D Flip Flops, for various modes: SISO,
SIPO, PISO, PIPO.
APPARATUS USED :
1. Logic Trainer kit.
2. flip flop kit 7474,7400&7402
3. Connecting Wires.
CIRCUIT DIAGRAM:
THEORY:
1. Serial in serial out shift register:-A basic 4-bit shift register can be
constructed using four D flip-flops, as shown in a figure. The register is
first cleared, forcing all four outputs to zero. The input data is then
applied sequentially to the D input of the first flip-flop from the left
(FF0). During each clock pulse, one bit is transmitted from left to right.
The least significant bit (LSB) of the data is the first to be shifted
through the registers i.e. From FF0 to FF3.
2. Serial in parallel out shift register: In this kind of register, data bits are
entered serially in the same manner as discussed above. The difference
is the way in which the data bits are taken out of the register. Once the
data are stored, each bit appears on its respective output line, and all bits
are available simultaneously. A construction of a 4-bit serial in parallel
out register is shown below.
3. Parallel in serial out shift register: A 4-bit parallel in serial out shift
register is shown below. The circuit uses D flip- flops and NAND gates
for entering or loading data (i.e. writing) to the register.D0, D1, D2 and
D3 are the parallel inputs, where D0 is the most significant bit and D3 is
the least significant bit. To load or write data, the mode control line is
taken LOW and the data is clocked in. The data can be shifted when the
mode control line is HIGH as SHIFT is active high. The register
performs right shift operation on the application of clock pulse.
4. Parallel in parallel out shift register: The following circuit is a four-bit
Parallel in parallel out shift register constructed by D flip-flops. In case of
parallel in parallel out shift registers, all data bits appear on the parallel
outputs immediately following the simultaneous entry of the data bits.
Procedure:
four inputs. For this, you have to toggle the switches corresponding to the inputs
D1–D3 at the respective logic levels.
For serial shift of inputs
9. Toggle the switch corresponding to CLK INH input i.e. I1 to logic 0 level.
10. Toggle the switch corresponding to SHIFT/LOAD’ input i.e. I0 to logic1level.
11. Connect the CLK socket using patch cords to socket A of CLK IN. Give
logic 0 to 1 transitions to CLK input.
12. Observe outputs on LED display of the output section. It will be reverse of what
you had loaded earlier. The LSB or input at D3 will be shifted and displayed first
(i.e. if your input was 011, the output will first display 1, then 1and then 0).
13. Verify the truth table.
OBSERVATIONS:
Precautions:
EXPERIMENT NO 11
AIM: To design and implement the 4-bit Asynchronous Counters using J-K Flip Flops.
APPARATUS USED:
1. Logic Trainer kit.
2. flip flop kit 7474,7400&7402
3. Connecting Wires.
CIRCUIT DIAGRAM:
THEORY:
Asynchronous Counter: The events do not have a fixed time relationship with each
other and do not occur at the same time. Counters are classified according to the way they
are clocked. In asynchronous counters, the first flip-flop is clocked by the external clock
pulse and then each successive flip-flop is by clocked the output of the preceding flip-
flop. The main characteristic of an asynchronous counter is each flip-flop derives its own
clock from other flip-flops and is therefore independent of the input clock. Consequently,
the output of each flip-flop may change at different time, hence the term asynchronous.
From the asynchronous counter diagram above, we observed that the output of the first
flip-flop becomes the clock input for the second flip-flop, and the output of the second
flip-flop becomes the clock input for the third flip-flop etc.
2. Note that for simplicity, the transitions of Q0, Q1 and CLK in the timing diagram
above are shown as simultaneous even though this is an asynchronous counter.
Actually, there is some small delay between the CLK, Q0 and Q1 transitions.
3. Usually, all the CLEAR inputs are connected together, so that a single pulse can
clear all the flip-flops before counting starts. The clock pulse fed into FF0 is
rippled through the other counters after propagation delays, like a ripple on water,
hence the name Ripple Counter.
Precautions: