DLD Lab Manual Final
DLD Lab Manual Final
i
Digital Electronics Lab Manual
ii
Preface
The basic idea of Digital electronics is mandatory for microprocessor & microcontroller and also
for computer architecture. So, any application which involves microprocessor or a computer has
digital electronics in it.Digital logic has brought “intelligence” to many products of our daily use.
So to understand the modern technology one must have the basic knowledge of digital
electronics.
The objective of this manual is to learn the use of different digital logic gate IC to design,
simulate and implement of different combinational and sequential logic circuit. Also to learn the
application of combinational and sequential circuits in practical field.
After completing this course student can design different useful circuit based on digital logic
design such as-
6 Digital Toshbi.
iii
Contents
Familiarization with Seven segment display and BCD to seven segment decoder IC. 24
iv
Experiment List with necessary components
v
International Islamic University Chittagong (IIUC)
Department of Electrical and Electronic Engineering (EEE)
Experiment No. 01: Familiarization with necessary resources of Digital Electronics Sessional.
1.1 Objectives:
7 Ground 14 +Vcc
7 Ground 14 +Vcc
7 Ground 14 +Vcc
1 Input 2 Output
3 Input 4 Output
5 Input 6 Output
13 Input 12 Output
11 Input 10 Output
9 Input 8 Output
7 Ground 14 +Vcc
7 Ground 14 +Vcc
7 Ground 14 +Vcc
PIN
PIN no. Function Function
no.
7 Ground 14 +Vcc
PIN
PIN no. Function Function
no.
7 Ground 14 +Vcc
i. HD74LS78A Dual J-K Flip-Flops with Preset, Common Clear, and Common Clock
PIN description
PIN
PIN no. Function Function
no.
8, 9 2Q, 2 Q 5 CLR
PIN description
Output Output
2,6 3,5
( Q A, Q B) QA, QB
CLKA, Reset
12,9 13,10
CLKB (RA,RB)
Input
1,8 7 GND
(JA,JB)
Input
4,11 14 Vcc
(KA,KB)
After opening ISIS 7 Professional, you will see the following window.
The selected component can be located on the left side window of the design diagram.
To put the component to the design sheet, just left click the component and put it to the
sheet.
To move the components, simply right click on the component (the component will be
red-lighted), and left click and drag the component to the desired location.
Selection of power and ground terminals: For power terminal and ground, the
component is NOT selected from the library. Select the “terminals mode” icon at the left-
side toolbar. Select POWER and GROUND terminals.
Component Parameter Settings: To edit the component, select the component (right-
click) and left-click to open the Edit Component dialog. The dialog is different according
to the devices. Set the parameters as your circuit requirement.
Power source and signal input: To supply circuit power and different input signals such
as DC, SIN, PULSE, Clock and Audio etc select Generator Mode. You can also select
voltage and current sources from library.
Graphs: To trace the graphs the following three modes are required.
a) Graph Mode.
b) Voltage Probe Mode.
c) Current Probe Mode.
Having drawn the schematic, you choose the type of circuit analysis you require (transient,
frequency, noise, etc.) by placing a Graph of the appropriate type on the schematic. You can
place as many graphs as you want and can even have several graphs of the same type if you
wish. Graph types supported include: Analogue, Digital and Mixed transient graphs as well as
Frequency, Transfer, Noise, Distortion, Fourier, AC Sweep and DC Sweep and Audio graphs.
Set voltage probe or current probe to the circuit node or branch in which you want to see the
graphs. Then drag the probe to graph box or right click the graph box to add probe parameter by
“Add Traces” option. Finally right click the graph box and select “Simulate Graph” option.
Step3: Play and observe the output logic for different combination of input logic.
Pick and place the component according to circuit diagram and enjoy simulation.
Lab Report:
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Describe different parts (Logic input switch, logic output display, power supply, Push
switch, 7-segment display, Bread Board etc.) of Trainer Kit.
Answer these questions carefully. The answer of these questions is available under the topic
“Integrated circuit”, chapter 2 [Digital logic and computer Design by Morris Mano].
Experiment No. 02: Verification of operation of different Logic Gate IC (AND, OR, NOT,
NAND, NOR and XOR).
2.1 Objectives:
1. To examine the operation of fundamental logic gates AND, OR, NOT, NAND, NOR,
XOR and determine their logical properties.
2. To derive the truth tables of logic gates and verify their logic equations.
1. Place the components of the circuit shown in figure 2.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill in the data table.
6. Verify the truth tables and output equations obtained for different logic gates.
0 0
0 1
1 0
1 1
Output
Equations
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions:
a. Why we use a series resistance to connect LED with the output pin of digital IC?
b. How you can construct NAND and NOR gates using the basic logic gates AND, OR,
NOT?
c. Why NAND and NOR gates are called universal gate?
d. Construct AND, OR and NOT gate by using NAND gate only. Also, construct these
gates by using NOR gate only.
Experiment No. 03: Implementation of basic logic gates by diodes, transistors and resistors.
3.1 Objectives:
2. To derive the truth tables of logic gates and verify their logic equations.
D1
A
Y
B
D2
D1
A
Y
B
D2
R= 1KΩ
5V
+Vcc
R2= 1KΩ
Y
R1= 1KΩ
A Q
1. Place the components of the circuit shown in figure 3.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill in the data table.
7. Verify the truth tables and output equations obtained for different logic gates.
0 0
0 1
1 0
1 1
Output Equations
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. Discuss the function of every component that you have used to make the circuit.
6. List the output of the circuit and include it with your report.
7. The circuit is working properly or not. If not, where did you think the errors lie?
8. Simulate the circuit in PROTEUS and attach simulation result in lab report.
9. Answer the following questions :
a) Draw the circuit diagram of a NOR gate using diodes, transistors and resistors.
b) Draw the circuit diagram of a NAND gate using diodes, transistors and resistors.
4.1 Objectives:
1. To implement the given Boolean function and develop the truth table.
F= ́ ́ ́ ́
2. To simplify the function and develop the truth table and verify it.
Y
F = 𝑋́ 𝑌́ 𝑍 𝑋́ 𝑌𝑍 𝑋𝑌́
1. Place the components of the circuit shown in figure 4.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill up the truth table.
8. Verify the truth table obtained from the simplified logic diagram.
X Y Z F
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Output Equations
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions:
a) Draw the logic diagram for given Boolean function:
b) Discuss some important postulates of Boolean algebra.
5.1 Objectives:
1. To implement a Half-adder.
S=X Y and C = XY
X
S=X Y Z
Y
C = Z(X Y) + XY
Figure 5.2: Implementation of a Full-adder with two half adder and an OR gate.
1. Place the components of the circuit shown in figure 5.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill up the truth table.
X Y S C
0 0
0 1
1 0
1 1
Output Equations
X Y Z S 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
Output Equations
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions :
a. What do you mean by combinational circuit? Write down the procedure to design a
combinational circuit.
b. Mention some application of combinational circuit.
c. Design a combinational circuit to control the traffic at “Tiger Pass Circle,
Chittagong”
Name of Experiment 6: Familiarization with Seven segment display and BCD to seven segment
decoder IC.
6.1 Objective:
This package accepts a 1-2-4-8 positive-logic Binary Coded Decimal (BCD) input and converts
it to the proper pattern necessary to illuminate a 7 segment display. A high output is intended to
light the segment. (Common cathode), meaning the negative connection of all of the LEDs is tied
together.
The outputs are open-collector but have internal 2K ohm pull-up resistors and have a maximum
low-level output sink current of 6 milliamperes (6mA).
For normal operation the Lamp Test pin and BI/RBO (OUT) must be pulled high (connected to
the positive supply).
All segments are extinguished when a low (logical zero) signal is applied to pin 4 (OUT). A
PWM (pulse-width modulated) signal can be applied to this pin to provided varying brightness to
the LED display being driven, allowing user control of LED dimming for applications such as
power saving by decreasing the brightness during times of low ambient light.
Com
g f Cathode a b
a
f b
g
e c
d dp
e d Com c dp
Cathode
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. Discuss the function of every component that you have used to make the circuit.
6. List the output of the circuit and include it with your report.
7. The circuit is working properly or not. If not, where did you think the errors lie?
8. Simulate the circuit in PROTEUS and attach simulation result in lab report.
9. Answer the following questions :
a) What is the difference between common cathode and common anode 7 segment
display?
b) What is pull-up and pull-down resistor? What is the purpose of pull-up and pull-down
resistor?
c) A BCD to seven-segment decoder is a combinational circuit that accepts a decimal
digit in BCD and generates the appropriate outputs for the selection of segments in a
display indicator used for displaying the decimal digit. The seven output of the
decoder (a,b,c,d,e,f,g) select the corresponding segments in the display as shown in
figure 6a. The numeric designation chosen to represent the decimal digit is shown in
figure 6b. Design the BCD to seven segment decoder circuit.
6a: Segment
designation 6b: Numerical designation for display
7.1 Objectives:
1. To implement a de-multiplexer.
2. To implement a multiplexer.
3. Multimeter.
1. Place the components of the circuit shown in figure 7.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill up the truth table.
E S1 S0 D0 D1 D2 D3
0 0 0
1 0 0
0 0 1
1 0 1
0 1 0
1 1 0
0 1 1
1 1 1
Output Equations
0 0 0 0
0 0
1 1 1 1
0 0 0 0
0 1
1 1 1 1
0 0 0 0
1 0
1 1 1 1
0 0 0 0
1 1
1 1 1 1
Output Equations
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions :
a) Implement a Quadruple 2-to-1 line multiplexer.
b) Write down an application of Multiplexer and Demultiplexer.
c) Implement a full adder circuit with multiplexer.
8.1 Objectives:
1. Place the components of the circuit shown in figure 8.1 on the trainer board and link
the connections correctly.
2. Use the data switches for input and LEDs for output.
4. Observe the outputs for different input configurations and fill up the truth table.
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuits in PROTEUS and attach simulation result in lab report.
8. Answer the following questions :
Figure 8.5: Implement a T Flip-Flop by the help of a D Flip-Flop and other necessary gates
9.1 Objectives:
1. Place the components of the circuit shown in figure 9.1 on the trainer board and link
the connections correctly.
2. Connect data switch line to trainer board data switch (for normal operation it should be
5V, and to reset the counter make it 0V) and CLK to clock input.
3. Connect outputs of three JK Flip-Flops Qa, Qb and Qc to three LEDs or, 7-segment
Display. Consider Qc as MSB and Qa as LSB.
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions:
a) What do you mean by synchronous and asynchronous counter?
b) Design a 3-bit synchronous down counter (Use J-K Flip flop).
c) Write down some application of counter.
d) Write down the IC number of a counter IC with pin diagram.
e) Design and simulate a 0 to 99 counter.
Note:
If IC 74107 is not available in Lab, you can use IC 7478. IC 7478 has an additional pin than
74107 called Preset. But it has only one clock pin for two flip-flop’s, for this reason IC 7478 is
not suitable for asynchronous counter.
Connect W of Fig.1 to +5V (Logic 1), X to a data switch and CLK to clock input.
Connect outputs of three JK Flip-Flops QA, QB and QC to three LEDs. Consider QC as
MSB and QA as LSB.
10.1 Objectives:
1. Place the components of the circuit shown in figure 10.1 on the trainer board and link the
connections correctly.
2. Connect data switch line to trainer board data switch (for normal operation it should be
5V, and to reset the counter make it 0V) and CLK to clock input.
3. Connect outputs of three JK Flip-Flops Qa, Qb,Qc and Qd to four LED’s of trainer board.
Consider Qd as MSB and Qa as LSB.
4. Power on the trainer board.
5. Observe the outputs sequence and fill up the truth table.
6. Verify obtained truth tables.
7. Don’t disconnect the circuit. Figure 10.1 and 10.2 is almost similar; only rearrange the 3-
connections (Clock input of flip-flop B, C and D should be connected with complement
output of flip-flop A, B and C respectively). Other connections remain same.
8. Repeat step 4, 5 and 6.
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions :
a) Define MOD number. Design an asynchronous BCD counter.
b) What is the difference between BCD and decade counter?
c) What is the function of Preset Pin of a Flip-Flop IC? Design an asynchronous counter
that will count from 3 to 7.
d) Suppose the frequency of input clock of figure 10.1 is 32 KHz. Find out the
frequency of Qd output. [Hints: output of last (MSB) FF = (input frequency/MOD
No) ]
e) How many flip-flops are required for MOD-60 counter? [Hints: 2N=MOD No]
f) A counter is needed that will count the number of items passing on a conveyor belt. A
photo cell and light source combination is used to generate a single pulse each time
an item cross its path. The counter must be able to count as many as one thousand
items. How many flip-flops are required?
11.1 Objective:
1. Place the components of the circuit shown in figure 10.1 on the trainer board and link the
connections correctly.
2. Connect Y1 and Y2 line to trainer board data switch. Normally Y1 and Y2 should be
low. To set the flip-flop output, make it high for a while. Y1 can set left two flip-flops
and Y2 can set right two flip-flops.
3. Connect Y3 line to trainer board data switch (for normal operation it should be 0V, and to
reset the counter make it 5V) and CLK to clock input (Push Switch).
4. Connect data input line to trainer board data switch.
5. Power on the trainer board.
Clock Y1 Y2 Y3 Data D1 D2 D3 D4
Sequence Input (Data Out)
0 1 0 0 1
1 0 0 0 1
2 0 0 0 0
3 0 0 0 0
4 0 0 0 1
5 0 0 0 0
6 0 0 0 0
7 1 0 0 0
8 0 1 0 1
9 0 0 1 0
10 0 0 0 0
11 0 0 0 1
12 0 0 0 1
You are responsible for documenting your work and your report must include (at minimum) the
following:
1. Cover sheet (Showing your Name, ID, Semester, Section, Exp. Name, Course Title,
Course Code at least)
2. Objectives of the experiment.
3. List of Components.
4. Draw proper circuit diagrams and figures.
5. List the output of the circuit and include it with your report.
6. The circuit is working properly or not. If not, where did you think the errors lie?
7. Simulate the circuit in PROTEUS and attach simulation result in lab report.
8. Answer the following questions :
a) Write down the basic functions of shift register.
b) Discuss the importance of register in microprocessor architecture.