Digital Electronics Lab Manual
Digital Electronics Lab Manual
9 21 - 32
Design and verify the 4-bit synchronous counter
10 33 - 35
To verify the operation of shift registers
2
Introduction to the equipments and resources of lab
Connecting the Circuit: Throughout these experiments we will use TTL chips to build
circuits. The steps for wiring a circuit should be completed in the order described below:
a) Turn the power (Trainer Kit) off before you build anything.
b) Make sure the power is off before you build anything.
3
c) Connect the +5V and ground (GND) leads of the power supply to the power and
ground bus strips on the breadboard.
d) Plug the chips you will be using into the breadboard. Point all the chips in the same
direction with pin 1 at the lower-left corner (Pin 1 is often identified by a dot or a notch
next to it on the chip package).
e) Connect +5V and GND pins of each chip to the power and ground bus strips on the
breadboard.
f) Select a connection on your schematic and place a piece of hook-up wire between
corresponding pins of the chips on your breadboard. It is better to make the short
connections before the longer ones.
g) Get one of your group members to check the connections, before you turn the power
on.
h) If an error is made and is not spotted before you turn the power on, Then turn the
power off immediately before you begin to rewire the circuit.
i) At the end of the laboratory session, collect the wires, chips and all equipment and
return them to the demonstrator.
j) Tidy the area that you were working in and leave it in the same
condition as it was before you started.
Build a circuit to implement the Boolean function F = /(/A./B), please note that the notation /A
refers to . You should use that notation during the write-up of your laboratory experiments.
4
Sometimes the chip manufacturer may denote the first pin by a small circle above the first
pin of the chip. Place your chips in the same direction, to avoid confusion at a later stage.
Remember that you must connect power to the chips to get them work.
7400(NAND) 7402(NOR)
7404(NOT) 7408(AND)
5
7410(3 i/p NAND) 7485 4-bit comparator
6
Experiment No. 1
Objective: Introduction to digital electronics lab nomenclature of digital ICs, specification, study,
study of the datasheet, concept of Vcc and ground, verification of the truth table of logic gate using
TTL ICs.
Apparatus Required: ICs 7408, 7432, 7404, 7400, 7402, 7486, Breadboard, Digital Trainer Kit,
Connecting wires, etc.
Theory: There are many different types of logic in electronics, where gates are
made up of many different devices such as diodes, relays, transistors, and most importantly,
integrated circuits (ICs). Different types of logic gates including their output truth tables when
two Boolean inputs exist i.e. combination of input and their corresponding outputs of logic gates
can be represented by truth table. Given below is the various types of logic gates used in Digital
Electronics.
AND Gate
Fig 1.2 shows the circuit symbol and truth table of the AND gate.
7
OR Gate
Fig 1.3 shows the circuit symbol and truth table of the OR gate.
NOR Gate
Fig 1.4 shows the circuit symbol and truth table of the NOR gate.
XNOR Gate
Fig 1.5 shows the circuit symbol and truth table of the XNOR gate.
8
NAND Gate
Fig 1.6 shows the circuit symbol and truth table of the NAND gate.
XOR Gate
Fig 1.7 shows the circuit symbol and truth table of the XOR gate.
NOT Gate
Fig 1.8 shows the circuit symbol and truth table of the NOT gate.
9
Fig. 1.8 Circuit symbol and truth table of NOT gate.
Procedure:
a. Verify the gates.
b. Switch on VCC and apply various combinations of input according to truth table.
c. For various inputs verify the corresponding output of the truth table with the help of logic
probe.
d. Perform the above steps to study all the gates using their corresponding ICs.
Result: All logic gates have been successfully studied and their truth tables have been verified.
Precautions:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the components on the
breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from the bread
board.
g. Make sure that power supply of the trainer board does not get short.
10
Experiment No. 2
Objective: Implementation of the given Boolean function using logic gates in both SOP and
POS forms.
Theory: The Boolean variables are either in complemented or in un- complemented form and
the terms are arranged in one of the two standard forms of Boolean functions.
1) Sum of product form (SOP)
2) Product of sum form (POS)
Let us consider following Boolean algebra and its logic circuit and truth is given in Fig: 2.2
Logic Diagram
11
Truth Table
A B Output
0 0 0
0 1 1
1 0 1
1 1 1
Let us consider following Boolean algebra and its logic circuit and truth is given in Fig:
Logic Diagram
Truth Table
A B Output
0 0 0
0 1 0
1 0 0
1 1 1
Procedure:
a. Make the connections as per the circuit diagram.
b. Switch on VCC and apply various combinations of input according to truth
table.
c. Verify the truth table of both the circuits.
12
Result: The logic diagram and truth table of the given Boolean expression have beensuccessfully
verified.
Precautions:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the components onthe
breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from thebread
board.
g. Make sure that power supply of the trainer board does not get short.
EXPERIMENT NO. 3
Objective: Implementation and verification truth table of half Adder and Full Adder.
HALF ADDER
The half adder add two input bits and generate carry and sum which are the two outputs of half-
adder. The input variables of the half adder are called the augend and the addend bits. The output
variables are the sum and carry.
A B Sum Carry
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Expression:
S = A.B’ + A’.B
C = A.B
FULL ADDER
A full-adder adds binary numbers and accounts for values carried in as well as out. A
one-bit full adder adds three one-bit numbers, often written as A, B and Cin; A and B are
the operands, and Cin is a bit carried in from the next less significant stage. The full adder
is usually a component in a cascade of adders, which adds 8, 16, 32, etc. bit binary
numbers.
A B Cin S Cout
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Expression:
S = (A.B’ + A’.B).Cin’ + (A.B’ +
A’.B)’.CinCout = A.B + B.C + C.A
Procedure:
a. Verify the gates.
b. Switch on VCC and apply various combinations of input according to truth table.
c. For various inputs verify the corresponding output of the truth table with the help of logic
probe.
d. Perform the above steps to study all the gates using their corresponding ICs.
Result: Half adder and Full adder have been designed and verified.
Precautions:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the components on
the breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from the
bread board.
g. Make sure that power supply of the trainer board does not get short.
15
Experiment No. 4
Theory:
Magnitude Comparator:
Magnitude Comparator compares two binary data signals A and B and generates the results of
comparison in form of three output signals A>B, A=B, A<B. IC 7485 is a 4-bit comparator.
Definition:
A magnitude comparator is a combinational circuit that compares two numbers
A and B to Determine.
i. A > B, or
ii. A = B, or
iii. A < B
Inputs:-
1) First n-bit number A
2) Second n-bit number B
Outputs:-
3 output signals (GT, EQ, and LT), where:
1) GT = 1 if A > B
2) EQ = 1 if A = B
3) LT = 1 if A < B
16
Example: One bit Comparator
Procedure:
a. Place the IC’s on the bread board provided on kit.
b. Make the connections as per the circuit diagram.
c. Switch on power.
d. Apply different combinations of input and verify the outputs.
e. The readings of outputs should be tabulated.
f. Now verify the truth table of the magnitude comparator.
IC Diagram
17
Truth Table:
Fig. 4.3 pin diagram of IC 7485 4-bit comparator and its truth table
Result: The truth table of the magnitude comparator has been successfully verified.
Precautions:
18
Experiment No. 5
Theory:
Multiplexer- The multiplexer shortened to “MUX” is a combinational logic circuit designed
to switch one of several input lines to a single common output line by the application of a control
logic. In digital electronics, multiplexers are also known as data selectors because they can
“select” each input line.
Generally, the selection of each input line in a multiplexer is controlled by an additional set of
inputs called control lines or selection lines and according to the binary condition of these
control inputs, either “HIGH” or “LOW” the appropriate data input is connected directly to the
output. Normally, a multiplexer has an even number of 2N data input lines and “N”number of
“control” inputs that correspond with the number of data inputs.
4 :1 MUX
A 4-to-1 multiplexer has a four input (D0 to D3), two selection lines (S1 and S0) and single
output (Y).
19
Fig. 5.3 Logic Diagram of 4:1 MUX
Truth Table
1:4 DeMUX
A 1-to-4 demultiplexer has a single input (Din), two selection lines (S1 and S0) and four outputs
(Y0 to Y3). The input data goes to any one of the four outputs at a given time for a particular
combination of select lines.
20
Fig. 5.5 Block Diagram of 1:4DeMUX
S1 S0
Truth Table
21
Procedure:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the
components on the breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from the bread
board.
g. Make sure that power supply of the trainer board does not get short.
22
Precautions:
23
Experiment No.6
Objective: Verification of state tables of RS, JK, T and D flip-flops using NAND and NOR
gates.
Theory:
Flip Flop- A flip-flop is a circuit that has two stable states and can be used to store state
information. The circuit can be made to change state by signals applied to one or more control
inputs and will have two outputs. A circuit incorporating flip-flops has the attribute of state; its
output depends not only on its current input, but also on its previous inputs. Such a circuit is
described as sequential logic.
Flip-flop types -Flip-flop can be divided into common types: the RS ("reset-set"), D ("data"
or "delay"), T ("toggle"), and JK types are the common ones.
SR Flip Flop: The clocked RS latch or flip flop circuit is very similar in operation to the basic
latch. The S and R inputs are normally at logic 0, and must be changed to logic 1 to change the
state of the latch. However, with the third input, a new factor has been added. This input is
typically designated C or CLK, because it is typically controlled by a clock circuit of some sort,
which is used to synchronize several of these latch circuits with each other. The output can only
change state while the CLK input is logic 1. When CLK is logic 0, the S and R inputs will have
no effect.
24
Fig 6.2 Circuit symbol and truth table SR flip flop.
In most ways, the JK flip-flop behaves just like the RS flip-flop. The Q and Q' outputs will only
change state on the falling edge of the CLK signal, and the J and K inputs will control the future
output state pretty much as before. However, there are some important differences. If both the J
and K inputs are held at logic 1 and the CLK signal continues to change, the Q and Q' outputs
will simply change state with each falling edge of the CLK signal. (The master latch circuit will
change state with each rising edge of CLK.) We can use this characteristic to advantage in a
number of ways. A flip-flop built specifically to operate this way is typically designated as a T
(for Toggle) flip-flop. The alone T input is in fact the CLK input for other types of flip-flops.
25
Fig 6.4 Circuit symbol and truth table T Flip Flop
T flip-flop are similar to JK flip-flop. T flip-flop are single input version of JK flip-flops. This
modified form of JK flip-flop is obtained by connecting both inputs J and K together. This flip-
flop has only one input along with Clock pulse. These flip-flops are called T flip-flop because of
their ability to complement its state (i.e.) Toggle. So they are called as Toggle flip-flop.
The D flip-flop is that when the clock input falls to logic 0 and the outputs can change state, the
Q output always takes on the state of the D input at the moment of the clock edge. This was not
true of the RS and JK flip-flops. The RS master section would repeatedly change states to match
the input signals while the clock line is logic 1, and the Q output would reflect whichever input
most recently received an active signal. The JK master section would receive and hold an input
to tell it to change state, and never change that state until the next cycle of the clock. This
behavior is not possible with a D flip-flop.
26
Procedure:
a. Make connections as shown in figure for each flip flop one by one (Refer pin diagram ofICs )
b. Connect +5V to pin no. 14 and ground to pin no. 7 of ICs.
c. Connect pulsar switch output to clock input CP of flip flop.
d. Connect input 1 or 0 to inputs of the flip flops as per truth table shown.
e. Switch on the instrument.
f. Press pulsar switch to get output.
g. Verify outputs on 8 bits LED display or logic probe.
h. Repeat above steps 4, 5, 6 for other input combinations.
i. Verify Truth Table.
Result: Studied and verified all the flip flop truth table.
Precautions:
Objective: Design and verify the 4 bit Encoder (Binary to Gray code converter)
Theory:
GRAY CODE
The reflected binary code, also known as Gray Code is a binary numerical system where two
successive values differ in only one bit. It is a non-weighted code.
Truth Table:
Input Output
BINARY GRAY
0000 0000
0001 0001
0010 0011
0011 0010
0100 0110
0101 0111
0110 0101
0111 0100
1000 1100
1001 1101
Procedure:
h. Connect all the components properly.
i. Place ICs and other components on breadboard on their proper position.
j. Ensure connections are tight.
k. Ensure power supply at its proper position and proper value according to ICs.
l. Ensure power supply is switched off before placing and connecting the
components on the breadboard.
m. Pins of ICs should not be bent or broken. While inserting and removing it from the breadboard.
n. Make sure that power supply of the trainer board does not get short.
Precautions:
Theory:
EXCESS-3 CODE
Excess-3 code is obtained by adding 3 to the BCD number. Excess-3 code is an unweighted
code.
Truth Table:
Input Output
BCD EXCESS-3
0000 0011
0001 0100
0010 0101
0011 0110
0100 0111
0101 1000
0110 1001
0111 1010
1000 1011
1001 1101
Procedure:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the
components on the breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from the breadboard.
g. Make sure that power supply of the trainer board does not get short.
Precautions:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the components on
the breadboard.
f. Pins of ICs should not be bent or broken, while inserting and removing it from the
bread board.
g. Make sure that power supply of the trainer board does not get short.
Experiment No. 9
Apparatus Required: IC 7476, IC7408, IC7404, IC7400, Breadboard, Digital trainer kit,
Connecting wires, Power supply etc.
Theory:
Synchronous Counters: In synchronous counters, the clock inputs of all the flip-flops are
connected together and are triggered by the input pulses. Thus, all the flip-flops change state
simultaneously (in parallel). The circuit below is a 4-bit synchronous counter. The J and K
inputs of FF0 are connected to HIGH. FF1 has its J and K inputs connected to the output of FF0,
and the J and K inputs of FF2 are connected to the output of an AND gate that is fed by the
outputs of FF0 and FF1.
Pay attention to what happens after the 3rd clock pulse. Both outputs of FF0 and FF1 are
HIGH. The Positive edge of the 4th clock pulse will cause FF2 to change its state due to the
AND gate. The count sequence for the 3-bit counter is shown on the right. The most important
advantage of synchronous counters is that there is no cumulative time delay because all flip-
flops are triggered in parallel. Thus, the maximum operating frequency for this counter will be
significantly higher than for the corresponding ripple counter.
Fig. 8.2 4-bit synchronous UP counter
Procedure:
a. Connections make the as per the circuit diagram. (Refer pin diagram of ICs)
b. Clock pulses are applied one by one at the clock I/P and the O/P Observed at
QA, QB, QC and QD for IC 7476.
c. Verify outputs on 8 bits LED display.
d. Verify the truth table of 4 bit synchronous counter.
Result: Study and verified the operation of the synchronous Counter.
Precautions:
a. Connect all the components properly.
b. Place ICs and other components on breadboard on their proper position.
c. Ensure connections are tight.
d. Ensure power supply at its proper position and proper value according to ICs.
e. Ensure power supply is switched off before placing and connecting the
components onthe breadboard.
f. Pins of ICs should not be bent or broken. While inserting and removing it from
the breadboard.
g. Make sure that power supply of the trainer board does not get short.
34
Experiment No. 10
Theory:
Registers are simply a group of flip flops that can be used to store a binary number. A shift
register is nothing but a register which can accept binary number and shift it. The data can be
entered in the shift register either in serial or in parallel. The output can be taken either in serial
or in parallel. Since there are two ways to shift data in to a register and two ways to shift data out
of the register four types of registers can be constructed.
35
3. Parallel In Parallel Out (PIPO)
Serial input shift register (SISO+SIPO): As its name suggests serial input shift register allows
data to enter serially. The output data can be available in parallel or serial
36
Serial output shift register (SISO+PISO using mode control): As its name suggests serial
output shift register allows data to out serially. The input data can be available in parallel or
serial
Procedure:
a. Test all the components using multimeter and digital IC tester
b. Set up serial input shift register using D FF. Clear all FF using clear pin. Feed 1011 to the
serial input starting from LSB using the PRESET and CLEAR pins.
Result: The performance of shift registers using D FF are set up and studied
Precautions:
37
38