DSD Lab @azdocuments - in
DSD Lab @azdocuments - in
DSD Lab @azdocuments - in
DEPARTMENT OF
ELECTRONICS AND COMMUNICATION
ENGINEERING
To impart high quality education in Engineering, Technology and Management with a difference,
enabling students to excel in their career by
1. Attracting quality Students and preparing them with a strong foundation in fundamentals so as to
achieve distinctions in various walks of life leading to outstanding contributions.
2. Imparting value based, need based, and choice based and skill based professional education to the
aspiring youth and carving them into disciplined, World class Professionals with social
responsibility.
3. Promoting excellence in Teaching, Research and Consultancy that galvanizes academic
consciousness among Faculty and Students.
4. Exposing Students to emerging frontiers of knowledge in various domains and make them
suitable for Industry, Entrepreneurship, Higher studies, and Research & Development.
5. Providing freedom of action and choice for all the Stake holders with better visibility.
1. To achieve and foster excellence in core Electronics and Communication engineering with focus
on the hardware, simulation and design.
Course objectives:
Course Outcomes
After studying this course, students will be able to:
Demonstrate the truth table of various expressions and combinational circuits using logic
CO1
gates.
Design and test various combinational circuit such as adders, subtractors, comparators,
CO2
multiplexers.
CO3 Realize Boolean expression using decoders.
CO4 Construct and test flips-flops, counters and shift registers.
CO5 Simulate full adder and up/down counters.
CO mapping to PO/PSOs
CO /
PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
PO & PSO
CO1 3 2 2 3 2 3 3
CO2 3 2 3 3 2 3 3
CO3 3 2 3 3 2 3 3
CO4 3 2 3 3 2 3 3
CO5 3 2 3 3 2 3 3
5
DIGITAL ELECTRONICS [17ECL38]
Note
1. The Course Outcomes and RBT levels indicated for each course in the syllabus are
indicative/suggestive. The faculty can set them appropriately according to their lesson plan.
There will be two full questions (with a maximum of Four sub questions) from each module.
Each full question will have sub questions covering all the topics under a module.
Students will have to answer 5 full questions, selecting one full question from each module.
6
DIGITAL ELECTRONICS [17ECL38]
CREDITS – 02
NOTE:
1. Use discrete components to test and verify the logic gates. The IC umbers given are
suggestive. Any equivalent IC can be used.
2. For experiment No. 11 and 12 any open source or licensed simulation tool may be used.
Laboratory Experiments:
1. Verify
(a) Demorgan‘s Theorem for 2 variables.
(b) The sum-of product and product-of-sum expressions using universal gates.
5. Realize
(a) Adder & Subtractor using IC 74153.
(b) 3-variable function using IC 74151(8:1MUX).
6. Realize a Boolean expression using decoder IC74139.
7. Realize Master-Slave JK, D & T Flip-Flops using NAND Gates.
8. Realize the following shift registers using IC7474/IC 7495
(a) SISO (b) SIPO (c) PISO (d) PIPO (e) Ring and (f) Johnson counter.
7
DIGITAL ELECTRONICS [17ECL38]
Course Outcomes: On the completion of this laboratory course, the students will be able to:
Demonstrate the truth table of various expressions and combinational circuits
using logic gates.
Design and test various combinational circuit such as adders, subtractors,
comparators, multiplexers.
Realize Boolean expression using decoders.
Construct and test flips-flops, counters and shift registers.
Simulate full adder and up/down counters.
INDEX
Sl.no Laboratory Experiments Page no.
1 Verify
(a) Demorgan‘s Theorem for 2 variables.
20
(b)The sum-of product and product-of-sum expressions using
universal gates.
2 Design and implement
(a) Full Adder using (i) basic logic gates and (ii) NAND gates. 24
(b) Full subtractor using (i) basic logic gates and (ii) NAND
gates
3 Design and implement 4-bit Parallel Adder/ Subtractor using IC 27
7483
4 Design and Implementation of 5-bit Magnitude Comparator using 31
IC 7485.
5 Realize
(a) Adder & Subtractor using IC 74153. 34
(b) 3-variable function using IC 74151(8:1MUX).
6 Realize a Boolean expression using decoder IC74139. 39
7 Realize Master-Slave JK, D & T Flip-Flops using NAND Gates. 43
8 Realize the following shift registers using IC7474/IC 7495 50
(a)SISO (b) SIPO (c) PISO (d) PIPO (e) Ring and (f) Johnson
counter.
9 Realize 56
(i) Mod-N Asynchronous Counter using IC7490 and
(ii) Mod-N Synchronous counter using IC74192
10 Design Pseudo Random Sequence generator using 7495. 61
11 Simulate Full- Adder using simulation tool. 68
12 Simulate Mod-8 Synchronous UP/DOWN Counter using 70
simulation tool.
.
9
DIGITAL ELECTRONICS [17ECL38]
INTRODUCTION TO IC’S
An Integrated Circuit or monolithic integrated circuit (also referred to as an IC, a chip, or a
microchip) is a set of electronic circuits on one small plate ("chip") of semiconductor material
(normally silicon). This can be made much smaller than a discrete circuit made from independent
electronic components. ICs can be made very compact, having up to several billion transistors and
other electronic components in an area of the size of a human finger nail. The width of each
conducting line in a circuit can be made smaller, as the technology advances. According to the survey
the size was reduced to 100 nanometers in 2008 and 14 nanometers in 2014.
Integrated circuits (ICs) are key building blocks in modern electronics. They are the heart and brain
of most circuits. They are the ubiquitous little black “chips” that are found on almost every circuit
board. Figure 1 indicates inside view of digital IC.
Invention:
Early developments of the integrated circuit go back to 1949, when German engineer Werner Jacobi
(Siemens AG) filed a patent for an integrated-circuit-like semiconductor amplifying device showing
five transistors on a common substrate in a 3-stage amplifier arrangement. Jacobi disclosed small and
cheap hearing aids as typical industrial applications of his patent.
The idea of the integrated circuit was conceived by Geoffrey W.A. Dummer (1909–2002), a radar
scientist working for the Royal Radar Establishment of the British Ministry of Defence. A precursor
idea to the IC was to create small ceramic squares (wafers), each containing a single miniaturized
component. Components could then be integrated and wired into a bi-dimensional or tri-dimensional
compact grid. This idea, which seemed very promising in 1957, was proposed to the US Army by
Jack Kilby and led to the short-lived Micro module Program (similar to 1951's Project Tinkertoy).
However, as the project was gaining momentum, Kilby came up with a new, revolutionary design,
the IC that is as shown in Figure 2.
10
DIGITAL ELECTRONICS [17ECL38]
Kilby recorded his initial ideas concerning the integrated circuit in July 1958, successfully
demonstrated the first working integrated example on 12 September 1958 and filed a patent in 1959.
He described his new device as "a body of semiconductor material, wherein all the components of the
electronic circuit are completely integrated." Kilby won the Nobel Prize in Physics in 2000. His work
was named as an IEEE Milestone in 2009.
Later, Robert Noyce at Fairchild Semiconductor developed his own idea of an integrated circuit that
solved many practical problems. Noyce's design was made of silicon, whereas Kilby's chip was made
of germanium. Noyce credited Kurt Lehovec of Sprague Electric for the principle of p–n junction
isolation caused by the action of a biased p–n junction (the diode) as a key concept behind the IC.
Generations:In the early days of simple integrated circuits, the technology's large scale limited each
chip to only a few transistors, and the low degree of integration meant the design process relatively
simple. As the technology progressed, millions, then billions of transistors could be placed on one
chip, and good designs required thorough planning, giving rise to new design methods. They are
listed in the table below.
IC Packages
The package encapsulates the integrated circuit die and plays it into a device which can be easily
connected. Each outer connection on the die is connected via a tiny piece of gold wire to a pad or pin
on the package. Pins are the silver extruding terminals on an IC, which can be connected to other
parts of a circuit.
There are many different types of packages, each of which has unique dimensions, mounting-types,
and/or pin-counts as shown in Figure 3.
11
DIGITAL ELECTRONICS [17ECL38]
All ICs are polarized and every pin is unique in terms of both location and function. Most ICs will
use either a notch or a dot to indicate which pin is the first pin as shown in the figure 4. (Sometimes
both, sometimes one or the other) .
Logic families
A logic family of monolithic digital integrated circuit devices is a group of electronic logic
gates, constructed using one of several different designs, usually with compatible logic levels and
power supply characteristics within a family. A "logic family" may also refer to a set of techniques
used to implement logic within VLSI integrated circuits such as central processors, memories, or
other complex functions.
Some of the popularly used logic families are:
● TTL (Transistor-Transistor Logic): Made of bipolar transistors mainly used for logical
operations.
● CMOS (Complementary Metal Oxide Semiconductor): Made from MOSFETs and
requires less power to operate and wide range of supply voltages.
● ECL (Emitter Coupled Logic): Used for extremely high speed operation.
● NMOS,PMOS: Used for Very Large Scale Integrated Circuits (VLSI)
12
DIGITAL ELECTRONICS [17ECL38]
Some of the IC’s used in this laboratory are IC 74XX series, IC 74151, IC7474, and IC7476 to name
a few.
IC 74XX series:
The 74XX series contains hundreds of devices that provide everything from basic logic gates to flip-
flops, counters, special purpose bus transceivers and arithmetic logic units (ALU). These series can
either be designed using TTL logic or CMOS technology.
The part numbers for 74XX series logic devices use the following naming convention:
● Two or three letter prefix indicates the manufacturer of the device for Ex: SN7400 where SN
for Texas Instruments.
● Two digits, where "74" indicates a commercial temperature range device and "54" indicates
military temperature range and "64" indicates a short-lived series with an intermediate
"industrial" temperature range.
● The next alphabet/s represents its electrical characteristics. Some of them are:
L: Low power. Larger resistors allowed 1 mW dissipation at the cost of a very slow 33 ns
gate delay.
H: High -speed. 6 ns gate delay but 22 mW power dissipation.
S: High -speed Schottky. It performs faster operation than 74H at the cost of increased power
consumption.
LS: Low power Schottky. It is same as ‘S’ but with reduced power consumption and
switching speed.
AS: Advanced Schottky with greater speed, lower power consumption.
F: Fast. It is the Fairchild's version of TI's 74AS.
All the above ICs use bipolar transistors. However, ICs with CMOS technology is also the most
widely used. Some of them are:
HC: High-speed CMOS, similar performance to LS,
HCT: High speed, compatible logic levels to bipolar parts.
● The last alphabet/s represents the manufacturer’s suffix. For example SN74LS08N means this
is a device made by Texas Instruments (SN). It is a commercial temperature range TTL device
(74). It is a member of the "Low power Schottky" family (LS), and it is housed in a plastic
through-hole DIP (N).
13
DIGITAL ELECTRONICS [17ECL38]
Operating Instruction:
Connect the 230 volts AC power supply and switch ‘ON’ the Toggle switch on the left side of the
Top Panel and we can see LED will glow. Digital IC Trainer is ready for use.
Select the TTL/CMOS IC to be used for the experiment insert the IC in ZIF socket and lock the ZIF
by moving lever up wards. Now all the pins of the IC are available outside at 2mm sockets for
connecting inputs and outputs using patch cards.
Inputs such as logic clocks, of different frequency, monopulse, logic levels, BCD inputs, can be
selected from the patch panel. Outputs are observed through LED indicators.
14
DIGITAL ELECTRONICS [17ECL38]
Theory: Logic gates are the basic components in digital electronics. A logic gate is a general purpose
electronic device used to construct logic circuits. These logic gates perform the basic Boolean
functions, such as AND, OR, NAND, NOR, Inversion, Exclusive-OR, Exclusive-NOR. Table 1.
below shows the circuit symbol, Boolean function, and truth table. The gate has one or more inputs
and one output. The small circle on the output of the circuit symbols designates the logic
complement. The AND, OR, NAND, and NOR gates can be extended to have more than two inputs.
A gate can be extended to have multiple inputs if the binary operation it represents is commutative
and associative.
These basic logic gates are implemented as small-scale integrated circuits (SSICs) or as part of more
complex medium scale (MSI) or very large-scale (VLSI) integrated circuits. Digital IC gates are
classified not only by their logic operation, but also the specific logic-circuit family to which they
belong. Each logic family has its own basic electronic circuit upon which more complex digital
circuits and functions are developed.
15
DIGITAL ELECTRONICS [17ECL38]
AND, OR and NOT are called as basic gates. AND, OR logic gates can have ‘n’ inputs
(n≥ 2) and gives single output. NOT gate also called as “inverter”, has
single input and produces single output.
AND gate: It is a basic logic gate that produces high state output only when all the inputs are logic
high or at logic ‘1’ state. It performs logical multiplication.
OR gate: It is a basic logic gate that produces high state output if any one of the inputs is logic high.
It performs logical addition.
NOT gate: It is a basic logic gate that produces an inverted output for a given input.
NOR gate: It is a universal logic gate that produces high output only when all the inputs are logic
high. It is the complement of OR gate.
There are two other types of digital logic gates which although are not the basic gates in their own ,
however, as they are constructed by combining together with other logic gates, their output Boolean
function is important enough to be considered as complete logic gates. These two “hybrid” logic
gates are called the Exclusive-OR (Ex-OR) Gate and its complement the Exclusive-NOR (Ex-NOR)
Gate.
Ex-OR gate: It is a logic gate that that produces high state output if it has odd number of ones.
Ex-NOR gate: It is a logic gate that that produces high state output if it has even number of ones. It
is the complement of Ex-OR gate.
Procedure:
1. Identify the IC required.
2. Check the components for their working.
3. Insert the appropriate IC into the IC base of the trainer kit such that the notch of the IC is
facing towards the Vcc, where the IC pin no. 7 and 14 are connected to ground and VCC
respectively.
4. Make connections as shown in the circuit diagram. Switch on the power supply.
5. Provide the input data via the input switches as per the truth table and observe the output on
output LEDs.
16
DIGITAL ELECTRONICS [17ECL38]
Table 1.
2 INPUT QUADRUPLE AND GATE : PIN DIAGRAM:
SYMBOL:
PROCEDURE:
· Check the components for their working.
· Insert the appropriate IC into the IC base.
· Make connections as shown in the circuit diagram.
· Provide the input data via the input switches and observe the output on output LEDs
Viva Questions:
1. Which of the following is the fastest logic?
A. ECL B. TTL C. CMOS D. LSI
2. Output will be a LOW for any case when one or more inputs are zero for a(n):
A. OR gate B. NOT gate C. AND gate D. NOR gate
1. TTL operates from a -------------- supply
A. 5V B. 9V c. 12V D. 15V
1. Logically, the output of a NOR gate would have the same Boolean expression as a(n):
A. NAND gate immediately followed by an inverter
B. OR gate immediately followed by an inverter
C. AND gate immediately followed by an inverter
D. NOR gate immediately followed by an inverter
1. What is the difference between 7400 IC and 7411 IC?
2. Why NAND & NOR gates are called universal gates?
3. Realize the EX – OR gate using minimum number of NAND gates.
4. Give the truth table for EX-NOR and realize using NAND gates.
5. What are the logic low and High levels of TTL IC’s and CMOS IC’s?
6. Compare TTL logic family with CMOS family.
1.
2. Give the truth table for EX-NOR and realize using NAND gates.
3. What are the logic low and High levels of TTL IC’s and CMOS IC’s?
4. Compare TTL logic family with CMOS family.
22
DIGITAL ELECTRONICS [17ECL38]
EXPERIMENT NO. 1
IMPLEMENTATION OF DEMORGAN’S THEOREM AND SOP/POS
EXPRESSIONS
Aim: 1. To verify
(a) Demorgan’s Theorem for 2 variables
(b) The sum-of product and product-of-sum expressions using universal gates.
Components required: IC 7400, IC 7402, IC 7404, IC 7408, IC 7432, Patch Cords and Trainer Kit.
(i)
Statement: The complement of a product is equal to the sum of complements.
(ii)
Statement: The complement of a sum term is equal to the product of complements.
Procedure:
1. Identify the IC required and place on the trainer kit such that the notch of the IC is facing
towards the Vcc, where the IC pin no. 7 and 14 are connected to ground and VCC respectively.
2. Connections are made as per the logic diagram.
3. Switch on the power supply.
4. Apply suitable logical inputs as per the truth table and verify the output.
NOTE: If correct output is not obtained, each and every gate is to be checked separately and even
then if the output is not obtained, then IC has to be replaced.
23
DIGITAL ELECTRONICS [17ECL38]
Logic diagram:
Truth table:
(B) The sum-of product and product-of-sum expressions using universal gates.
1) Sum of product (SOP): Y=BD+AD
Y=F(A,B,C,D) = ∑(5,7,9,11,13,15)
Simplification using K-map:
24
DIGITAL ELECTRONICS [17ECL38]
Y=F(A,B,C,D) = П(0,1,2,3,4,6,8,10,12,14)
Truth table:
Viva Questions:
1. State Demorgan’s theorem for three variables.
8. For a simplified Boolean expression f = AD' + AC + B'C, minimum no. of NAND gates required is
A) 5 B) 6 C) 4 D) 8
9. The Boolean function A + BC is a reduced form of
A) AB + BC B) (A + B)(A + C) C) A’B + AB’C D) (A + C)B
EXPERIMENT NO. 2
ADDERS AND SUBTRACTORS
Aim: To design and implement the following Adder and subtractor using logic gates.
(a) Full Adder using (i) Basic logic gates and (ii) NAND gates.
(b) Full subtractor using (i) Basic logic gates and (ii) NAND gates.
Components Required: IC 7486, IC 7432, IC 7408, IC 7400, Patch Cords and Trainer Kit.
Theory: A combinational circuit that performs the addition of two bits is called a half adder. A half
adder needs two binary inputs and two binary outputs. A half adder has no provision to add a carry
from the lower order bits when binary numbers are added. When two input bits and a carry are to be
added the number of input bits becomes three and the input combination increases to eight. For this
full adder is used.
A combinational circuit that performs the addition of three bits is a full adder. It consists of three
inputs and two outputs. Like half adder it also has a sum bit and a carry bit. The new carry generated
is represented by ‘Cout’ and the carry generated from the previous addition is represented by ‘Cin’.
When two input bits and a borrow have to be subtracted the number of input bits equal to three and
the input combinations increases to eight, for this a full subtractor is used.
Procedure:
1. Identify the IC required and place on the trainer kit such that the notch of the IC is facing
towards the Vcc, where the IC pin no. 7 and 14 are connected to ground and VCC respectively.
2. Connections are made as per the logic diagram
3. Switch on the power supply.
4. Apply suitable logical inputs as per the truth table and verify the output.
a). FULL ADDER
i) Full adder using Basic Gates
TRUTH TABLE
INPUTS OUTPUTS
A B C Sum Carry
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
BOOLEAN EXPRESSIONS:
Sum= A B C
Carry=A B + B C+ A C
27
DIGITAL ELECTRONICS [17ECL38]
Logic Circuit
b)FULL SUBTRACTOR
i) Full Subtractor using BASIC gates
TRUTH TABLE
INPUTS OUTPUTS
A B Bin D Bo
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
28
DIGITAL ELECTRONICS [17ECL38]
BOOLEAN EXPRESSIONS:
D= A Bin C
Bo= B + B Bin + Bin
Logic Circuit
VIVA QUESTIONS:
EXPERIMENT NO.3
PARALLEL ADDER AND SUBTRACTOR
LEARNING OBJECTIVE:
▪ To learn about IC 7483 and its internal structure.
▪ To realize a adder & subtractor using adder IC 7483
COMPONENTS REQUIRED:
IC 7483, IC 7486, Patch Cords & IC Trainer Kit.
THEORY
The Full adder can add single-digit binary numbers and carries. The largest sum that can be obtained
using a full adder is 112.Parallel adders can add multiple-digit numbers. If full adders are placed in
parallel, we can add two-or four-digit numbers or any other size desired. Figure below uses
STANDARD SYMBOLS to show a parallel adder capable of adding two; two-digit binary numbers.
The addend would be on A inputs, and the augend on the B inputs. For this explanation we will
assume there is no input to C0 (carry from a previous circuit)
To add 102 (addend) and 012 (augend), the addend inputs will be 1 on A2 and 0 on A1. The augend
inputs will be 0 on B2 and 1 on B1. Working from right to left, as we do in normal addition, let’s
calculate the outputs of each full adder. With A1 at 0 and B1 at 1, the output of adder1 will be a sum
(S1) of 1 with no carry (C1). Since A2 is1 and B2 is 0, we have a sum (S2) of 1 with no carry (C2)
from adder1. To determine the sum, read the outputs (C2, S22, and S1) from left to right. In this case,
C2 = 0, S2 = 1, and S1 = 1. The sum, then, of 102and 012 is 0112.To add four bits we require four full
adders arranged in parallel. IC 7483 is a 4- bit parallel adder whose pin diagram is shown.
MSB LSB
Cin
INPUTS A3 A2 A1 A0
B3 B2 B1 B0
OUTPUT Cout S3 S2 S1 S0
30
DIGITAL ELECTRONICS [17ECL38]
IC 7483 PIN-OUT:
PROCEDURE:
● Check all the components for their working.
● Insert the appropriate IC into the IC base.
● Make connections as shown in the circuit diagram.
● Apply augend and addend bits on A and B and cin=0.
● Verify the results and observe the outputs.
Example: 8 – 3 = 5 (0101)
● 8 is realized at A3 A2 A1 A0 = 1000
● 3 is realized at B3 B2 B1 B0 through X-OR gates = 0011
● Output of X-OR gate is 1’s complement of 3 = 1100
● 2’s Complement can be obtained by adding Cin =1
Therefore
Cin = 1
A3 A2 A1 A0 = 1 0 0 0
B3 B2 B1 B0 = 1 1 0 0
S3 S2 S1 S0 = 0 1 0 1
Cout = 1 (Ignored) (Result is positive)
● 3 is realized at A3 A2 A1 A0 = 0011
● 8 is realized at B3 B2 B1 B0 = 1000
● Output of X-OR gate is 1’s complement of 8 = 0111
● 2’s Complement can be obtained by adding Cin =1
Therefore
Cin = 1
A3 A2 A1 A0 = 0 0 1 1
B3 B2 B1 B0 = 0 1 1 1
S3 S2 S1 S0 = 1 0 1 1
Cout = 0 (Result is negative)
PROCEDURE:
32
DIGITAL ELECTRONICS [17ECL38]
VIVA QUESTIONS:
EXPERIMENT NO. 4
STUDY OF IC 7485 5- BIT MAGNITUDE COMPARATOR
Aim: To design and implement 5-bit magnitude comparator using IC 7485.
Learning Objective:
1. To learn about various applications of comparator
2. To learn and understand the working of IC 7485 magnitude comparator
3. To learn to realize 5-bit comparator using 4-bit comparator
Components Required: IC 7485, Patch cords and Trainer kit.
Theory: A digital comparator or magnitude comparator is a hardware electronic device that takes
two numbers as input in binary form and determines whether one number is greater than, less than or
equal to the other number. Comparators are used in central processing unit s (CPUs) and
microcontrollers (MCUs).
IC 7485: The IC 7485 is a 4-bit magnitude comparator that can be expanded to almost any length. It
compares two 4 bit binary and produces three magnitude results.
Procedure:
1. Make the connections as per the Pin diagram.
2. Verify the output with the truth table.
Examples:
EX. A3 A2 A1 A0 B3 B2 B1 B0 A>B A=B A<B
1 0 0 1 0 1 1 0 1
2 1 1 1 1 1 1 1 0
34
DIGITAL ELECTRONICS [17ECL38]
3 1 0 0 1 1 0 0 1
4 0 1 0 1 0 0 0 0
Input Output
Viva Questions
1) What is a comparator?
2) What are the applications of comparator?
3) Derive the Boolean expressions of one bit comparator and two bit comparators.
4) How do you realize a higher magnitude comparator using lower bit comparator?
5) Design a 2 bit comparator using a single Logic gates?
6) Design an 8 bit comparator using a two numbers of IC 7485?
NOTE:
Write the following in Record-
i) Internal gate level diagram of IC 7485
Experiment No. 5
STUDY OF ICs 74151 and 74153
36
DIGITAL ELECTRONICS [17ECL38]
Aim: To realize
(a) Adder and Subtractor using IC 74153.
(b) 3-variable function using IC 74151(8:1 MUX).
Learning Objective:
1.To learn about various applications of Multiplexer
2.To learn and understand the working of IC 74151 and IC 74153
3. To learn to realize any function using Multiplexer .
Components required: IC 74151, IC 74153, Patch cords and Trainer kit.
Theory: A multiplexer is combinational circuit that selects binary information from one of many
input lines and directs it to a single output line. The selection of a particular input line is controlled by
a set of selection lines. Normally there are 2n input lines and n selection lines whose bit combinations
determine which input is selected. An electronic multiplexer can be considered as a multiple-input,
single-output switch. A multiplexer is also called a data selector.
Conversely, a demultiplexer (or demux) is a device taking a single input signal and selecting one of
many data-output-lines, which is connected to the single input. A demultiplexer has one data input, 2n
select lines, and n output lines. A demultiplexer is also called a data distributor.
Procedure:
1. Make the connections as per the logic diagram.
2. Verify the output with the truth table.
Note: 1. when EA and EB equal to ‘1’, device is not enabled and outputs are ‘0’.
2. The Pin [16] is connected to + Vcc. Pin [8] is connected to ground.
3. If MUX ‘A’ has to be initialized, EA is made low and if MUX ‘B’ has to be Initialized,
EB is made low.
Truth Table:
Half Adder Half Subtractor:
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
38
DIGITAL ELECTRONICS [17ECL38]
1 1 1
Implementation Table:
Full Subtractor:
A B Bin Diff Bout
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Implementation Table:
In this experiment, 8:1 MUX is implemented using IC 74151. It is a popular 16-pin DIP IC which provides
eight inputs, three select lines and two complementary outputs y & . The o/p Y selects one of the
eight inputs based on the select lines (S0,S1,S2). Vcc is on pin 16 and GND is on pin 8. Pins 5 and 6
are the outputs, the output on pin 6 is the inverted version of the output on pin 5. The enable is on pin
7. It is the most widely used IC as it is a commercial temperature range device with low power
dissipation (135 mW) and low propagation delay time (9 ns).
Truth table
INPUT OUTPUT
A B C Y
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Viva Questions:
1) What is a multiplexer?
2) What is a de-multiplexer?
3) What are the applications of multiplexer and de-multiplexer?
4) Derive the Boolean expression for multiplexer and de-multiplexer.
5) How do you realize a given function using multiplexer
6) What is the difference between multiplexer & demultiplexer?
7) In 2n to 1 multiplexer how many selection lines are there?
8) How to get higher order multiplexers?
9) Implement an 8:1 mux using 4:1 muxes?
41
DIGITAL ELECTRONICS [17ECL38]
Experiment 6
Realize a Boolean Expression using Decoder IC 74139
The term is often used in reference to MPEG-2 video and sound data, which must be
decoded before it is output. Most DVD players, for example, include a decoder card
whose sole function is to decode MPEG data. It is also possible to decode MPEG data
in software, but this requires a powerful microprocessor.
The IC chip 74LS139 has two binary decoders. In addition to and Ground, each
decoder has two inputs A and B, and 4 outputs Y0, Y1, Y2 and Y3. Moreover, an
input is used so that the circuit will function only when .
Truth Table:
The truth table for another half is same as first half.
43
DIGITAL ELECTRONICS [17ECL38]
Truth table of 3:8 decoder realized using two 2:4 decoder (74139)
INPUT OUTPUT
C B A Y0=1Y1 Y1=1Y2 Y2=1Y3 Y3=1Y4 Y4=2Y1 Y5=2Y2 Y6=2Y3 Y7=2Y4
0 0 0 0 1 1 1 1 1 1 1
0 0 1 1 0 1 1 1 1 1 1
0 1 0 1 1 0 1 1 1 1 1
0 1 1 1 1 1 0 1 1 1 1
1 0 0 1 1 1 1 0 1 1 1
1 0 1 1 1 1 1 1 0 1 1
1 1 0 1 1 1 1 1 1 0 1
1 1 1 1 1 1 1 1 1 1 0
QUESTIONS:-
1. What is Decoder/Encoder ? What are its application?
45
DIGITAL ELECTRONICS [17ECL38]
Experiment-7
FLIP-FLOPS
Aim: To realize Master-Slave JK, D and T Flip-Flops using NAND Gates.
Learning Objective:
1. To learn about various Flip-Flops
2. To learn and understand the working of Master slave FF
3. To learn about applications of FFs
4. Conversion of one type of Flip flop to another
5. Analyze timing diagram of flip flops
▪ The JK flip flop is basically a gated SR flip-flop with the addition of a clock
input circuitry that prevents the illegal or invalid output condition that can occur when both
inputs S and R are equal to logic level “1”. Due to this additional clocked input, a JK flip-flop
has four possible input combinations, “logic 1”, “logic 0”, “no change” and “toggle”.
▪ A D flip flop has a single data input. This type of FF is obtained from the SR FF
by connecting the R input through an inverter, and the S input is connected directly to data
input. The modified clocked SR flip-flop is known as D-flip-flop and is shown below. From
the truth table of SR flip-flop we see that the output of the SR flip-flop is in unpredictable
state when the inputs are same and high.
▪ T flip-flop is known as toggle flip-flop. The T flip-flop is modification of the J-K flip-flop.
Both the JK inputs of the JK flip – flop are held at logic 1 and the clock signal continuous to
change.
Procedure:
1. Identify the IC required.
2. Check the components for their working.
3. Insert the appropriate IC into the IC base of the trainer kit such that the notch of the IC is
facing towards the Vcc, where the IC pin no. 7 and 14 are connected to ground and VCC
respectively.
4. Make connections as shown in the circuit diagram. Switch on the power supply.
5. Provide the input data via the input switches as per the truth table and observe the output on
output LEDs.
1) SR FLIP FLOP
2 ) D FLIP FLOP
3. JK-FLIP FLOP
48
DIGITAL ELECTRONICS [17ECL38]
4) T-FLIP FLOP
LOGIC DIAGRAM
PROCEDURE :
QUESTIONS:-
50
DIGITAL ELECTRONICS [17ECL38]
5. What is the relation between propagation delay & clock frequency of flip-flop?
7. What are multivibrators ? Explain astable, monostable and bistable. Give example for each
Viva Questions:
4. What are the functions of preset and clear inputs? Are they synchronous or asynchronous?
5. List various types of flip-flop with their abbreviations.
6. What is the difference between toggling and race around condition? How race around
condition can be overcome?
7. How do you convert JK flip-flop into a D flip-flop?
8. Write the characteristic equations of SR, JK, T and D flip-flop
9. What are the applications of different Flip-Flops?
10. What is the advantage of Edge triggering over level triggering?
11. What is the relation between propagation delay & clock frequency of flip-flop?
Experiment- 8
SHIFT REGISTERS
Aim: To realize the following shift registers using IC7495
(a) SISO (b) SIPO (c) PISO (d) PIPO (e) Ring (f) Johnson counter.
Learning Objectives:
1. To illustrate the operation of shift registers
2. To study different shift register configurations
the input of the next flip-flop. All the flip-flops are driven by a common clock, and all are set
or reset simultaneously.
▪ Different types of shift register are Serial in serial out shift register, Serial in parallel out shift
register, Parallel in serial out shift register, Parallel in parallel out shift register, Bidirectional
shift register shift register.
▪ The serial in/serial out shift register accepts data serially – that is, one bit at a time on a single
line. It produces the stored information on its output also in serial form.
▪ The serial in/parallel out shift register accepts data serially – that is, one bit at a time on a
single line. It produces the stored information on its output in parallel form.
▪ The parallel in/serial out shift register accepts data in parallel. It produces the stored
information on its output also in serial form.
▪ The parallel in/parallel out shift register accepts data in parallel. It produces the stored
information on its output in parallel form.
▪ A Ring counter also called as an Overbeck counter is a Shift Register (a cascade connection of
flip-flops) with the output of the last flip flop connected to the input of the first. It is
initialized such that only one of the flip flop output is 1 while the remainder is 0. The 1 bit is
circulated so that the state repeats every n clock cycles if n flip-flops are used. The "MOD" or
"MODULUS" of a counter is the number of unique states. The MOD of the n flip flop ring
counter is n.
▪ A Johnson counter also called as twisted ring counter or switched tail counter is a modified
ring counter, where the inverted output from the last flip flop is connected to the input to the
first. The register cycles through a sequence of bit-patterns. The MOD of the Johnson counter
is 2n if n flip-flops are used. The main advantage of the Johnson counter is that it only needs
half the number of flip-flops compared to the standard ring counter for the same MOD.
Johnson Counters can be used as phase shift square wave generator, clock divider.
▪ The primary application of the shift registers is to binary information in a register can be
moved from stage to stage within the register or into or out of the register upon application of
clock pulses. This type of bit movement or shifting is essential for certain arithmetic and logic
operations used in microprocessors.
PIN DIAGRAM:
54
DIGITAL ELECTRONICS [17ECL38]
Procedure:
a) SERIAL IN SERIAL OUT (SISO), SERIAL IN PARALLEL OUT (SIPO) and shift right:
(i) Connect mode control pin (pin no 6) to ‘0’ and apply serial data bit by bit at serial input (pin
no 1) terminal starting from LSB.
(ii) Apply clock pulses at clock-S (pin no 9) terminal after each data bit and observe output at QA
(pin no. 13) as serial out from 1st clock pulse upto 4 th clock pulses.
(iii)Now, Observe the outputs at Qa Qb Qc Qd which is SIPO.
(iv) Observe that serial data input is shifting right every time input and clock is applied. This is
shift right operation.
LOGIC DIAGRAM:
56
DIGITAL ELECTRONICS [17ECL38]
TRUTH TABLE:
CP QA QB QC QD
t0 1 0 0 0
t1 0 1 0 0
t2 0 0 1 0
t3 0 0 0 1
t4 1 0 0 0
t5 0 1 0 0
t6 0 0 1 0
t7 0 0 0 1
t8 1 0 0 0
Procedure:
LOGIC DIAGRAM:
TRUTH TABLE:
CP QA QB QC QD
t0 1 0 0 0
57
DIGITAL ELECTRONICS [17ECL38]
t1 1 1 0 0
t2 1 1 1 0
t3 1 1 1 1
t4 0 1 1 1
t5 0 0 1 1
t6 0 0 0 1
t7 1 0 0 0
Procedure:
4. What is Johnson counter? What are its advantages over ring counter?
5. What is ring counter? Mention its applications.
6. Differentiate between serial data & parallel data.
7. What is the significance of Mode control bit?
8. Which shift register type would have a complete binary number shifted in one bit at a time
and have all stored bits shifted out one at a time?
a) SIPO b) SISO c) PIPO d)PISO
58
DIGITAL ELECTRONICS [17ECL38]
Experiment- 9
MOD-N COUNTER USING IC 7490 and IC 74192
Aim: To realize (i) Mod-N Asynchronous Counter using IC7490
(ii) Mod-N Synchronous Counter using IC74192
Learning Objectives:
1. To learn about Asynchronous and Synchronous Counter and its application
2. To learn the design of asynchronous and Synchronous up counter and down counter
Components required: IC 7490, IC trainer kit, patch cords
Theory:
Counter is a sequential circuit which is used for counting pulses.
Counter is the widest application of flip-flops. It is a group of flip-
flops with a clock signal applied. Counters are of two types.
Asynchronous or ripple counters and Synchronous counters. Depending
on the way in which the counting progresses, the synchronous or
asynchronous counters are classified as follows −Up counters, Down
counters and Up/Down counters
59
DIGITAL ELECTRONICS [17ECL38]
The 2-bit ripple counter is called as MOD-4 counter and 3-bit ripple counter is called as MOD-8
counter. So in general, an n-bit ripple counter is called as modulo-N counter. Where, MOD
number = 2n. Application of counters are Frequency counters, Digital clock, Time measurement,
A to D converter, Frequency divider circuits etc.
The 7490 is a BCD/decade counter that consists of four Master-Slave JK flip-flops internally
connected to provide Mod-2 (Divide by 2 ) and Mod-5 Counter(Divide by 5). It can count from 0 to 9
cyclically in its natural mode. It counts the input pulses and the output is received as a 4-bit binary
number through pins QA, QB, QC and QD. The binary output is reset to 0000 at every tenth pulse and
count starts from 0 again. The Mod of the IC 7490 is set by changing the RESET pins R0 (1), R0 (2),
R9 (1), R9 (2). It is possible to increase the counting capability of a Decade number by connecting
more ICs n series.
The 74192 is a Presettable Synchronous 4-Bit Up/Down Decade Counter.Presetting the counter to
the number on the preset data inputs (Input A - Input D) is accomplished by a LOW asynchronous
parallel load input (Load). The counter is incremented on the low-to-high transition of the UP input
(and a high level on the Clock- DOWN) and decremented on the low to high transition of the
DOWN input (and a high level on the UP input). A high level on the CLR input overrides any other
input to clear the counter to its zero state. The Terminal Count up (CO) goes low half a clock period
before the zero count is reached and returns to a high level at the zero count.
The Terminal Count Down (BO) in the count down mode likewise goes low half a clock period
before the maximum count (9 in the 74192) and returns to high at the maximum count. Cascading is
effected by connecting the CO [carry] and BO [borrow] outputs of a less significant counter to the
Clock-Up [UP] and Clock-Down [DOWN] inputs, respectively, of the next most significant counter
Procedure:
1. Connections are made as per the logic diagram.
2. Apply the clock pulses and verify the truth table.
Pin Diagram:
Internal Diagram:
60
DIGITAL ELECTRONICS [17ECL38]
Conditional Table:
Truth Table:
Truth Table:
Clk QD QC QB QA
1 0 0 0 0
2 0 0 0 1
3 0 0 1 0
4 0 0 1 1
5 0 1 0 0
6 0 1 0 1
7 0 1 1 0
8 0 1 1 1
Result: Mod-N Asynchronous Counter using IC7490 and Synchronous Counter using IC74192 is
realized and verified.
Viva Questions:
1. How many flip-flops are required to construct a decade counter
a) 10 b) 3 c) 4 d) 2
2. How many flip-flops are required to construct mod 30 counters?
a) 5 b) 6 c) 4 d) 8
3. Is 7490IC a synchronous or asynchronous counter?
4. What are synchronous counters?
5. What are the advantages of synchronous counters?
6. What is an excitation table?
7. Write the excitation table for D, T FF
8. Design mod-5 synchronous counter using T FF?
9. What is a presettable counter?
10. What are the applications of presettable counters?
11. Explain the working of IC 74193
63
DIGITAL ELECTRONICS [17ECL38]
EXPERIMENT- 10
Theory:
Maximum Length PN sequences are binary sequence generators that are capable of outputting all
possible combinations of binary sequences in 2m where m is the size of the LFSR (Linear Feedback
Shift Registers ) used in generating sequences. Terms like Pseudorandom binary sequences (PRBS)
or pseudonoise sequences are also used to refer m-sequences.
64
DIGITAL ELECTRONICS [17ECL38]
PROCEDURE:
Multisim is an electronic schematic capture and simulation program which is part of circuit design
programs. Multisim was originally created by a company named Electronics Workbench, which is a
division of National Instruments. Multisim is an industry-standard, best-in-class SPICE simulation
environment. It is the teaching solution to build expertise through practical application in designing,
prototyping, and testing of analog, digital and power electronic circuits. The Multisim helps in
prototyping various circuits and optimize it before realizing any circuit on printed circuit board
(PCB).
Multisim can be used to simulate digital, analog and power electronics circuits based on the
application. This helps in faster realization providing graphical visualization. It is used across all the
66
DIGITAL ELECTRONICS [17ECL38]
industries for faster simulation of the circuits. Multisim has over 36,000 components validated by
leading semiconductor manufacturers. The Multisim library of has up-to-date amplifiers, diodes,
transistors, and switch mode power supplies paired with advanced simulation makes it possible to
cover a wide variety of application specific design.
Multisim includes microcontroller simulation, integrated circuits and also provide an option to import
and export features to the Printed Circuit Board layout software for further realization of the
hardware board. Multisim is widely used in academia and industry for circuit’s education, electronic
schematic design and SPICE simulation. Students can use Multisim to optimize their circuit design
performance and save prototype iterations in different application areas such as analog design, power
electronics, renewable energy, and complete analog/digital system level designs.
2. Open/Create Schematic
67
DIGITAL ELECTRONICS [17ECL38]
A blank schematic Circuit 1 is automatically created. To create a new schematic click on File – New
– Schematic Capture. To save the schematic click on File /Save As. To open an existing file
click on File/ Open in the toolbar.
3. Place Components
5. Rotate Components: To rotate the components right click on the component and click on rotate
90 Clockwise (Ctrl +R) or rotate 90 Counter Clockwise (Ctrl+Shift+R).
6. Place Wire/Connect Components: To connect components, click on Place/Wire drag and place
the wire. Components can also be connected by clicking the mouse over the terminal edge of one
component and dragging to the edge of another component. (Refer Figure 6).
Figure 6
7. Validation of Input and Output (Refer Figures 7a & 7b)
● To give input, Click on Place -> components-> All Groups-> Type SPDT(Single Pole
Double Throw) switch in component icon.
69
DIGITAL ELECTRONICS [17ECL38]
● Click on Place -> components-> Groups -> Select sources-> Type VCC in component icon.
● Click on Place -> components-> Groups -> All Groups-> Type DGND(Digital Ground) in
component icon.
● To observe the output, Click on Place -> components-> Groups ->Select Indicators-> Probe.
● Connect the above components using wires.
Figure 7a
Figure 7b
8. Simulation: To simulate the completed circuit Click on Simulate/Run or F5. This feature can also
be accessed from the toolbar.
70
DIGITAL ELECTRONICS [17ECL38]
Experiment No: 11
SIMULATE FULL ADDER USING SIMULATION TOOL
AIM: To simulate full adder using basic logic gates using Multisim.
COMPONENTS:7486N, 7432N,7408N,Vcc,Ground,SPDT,Probe,wire
THEORY:
Multisim is the schematic capture and simulation application of National Instruments Circuit Design
Suite, a suite of EDA (Electronic Design Automation) tools that assists you in carrying out the major
steps in the circuit design flow. Multisim is designed for schematic entry, simulation, and exporting
to downstage steps, such as PCB layout.
RESULT: full adder circuit using basic logic gates is simulated using Multisim and the truth table is
verified.
Experiment No: 12
SIMULATE MOD 8 SYNCHRONOUS UP/DOWN COUNTER USING
SIMULATION TOOL
AIM: To simulate mod 8 synchronous up/down counter using Multisim.
THEORY
Counter is a sequential circuit. A digital circuit which is used for a counting pulses is known counter.
Counter is the widest application of flip-flops. It is a group of flip-flops with a clock signal applied. If
the "clock" pulses are applied to all the flip-flops in a counter simultaneously, then such a counter is
called as synchronous counter.
Modulus Counter (MOD-N Counter)-
73
DIGITAL ELECTRONICS [17ECL38]
A 2-bit ripple counter is called as MOD-4 counter and 3-bit ripple counter is called as MOD-8
counter. So in general, an n-bit ripple counter is called as modulo-N counter. Where, MOD number
= 2n .
A mod-8up counter counts from 0 to 7. It stores the initial value, and increments that value on each
clock tick, and wraps around to 0when the count reaches 7. So, the stored value follows a cycle: 000
001 010 011 100 101 110 111
A mod-8down counter counts from 7 to 0. It stores the initial value, and decrements that value on
each clock tick, and wraps around to 7when the count reaches 0. So, the stored value follows a
cycle: 111110 101 100 011 010 001 000
OBSERVATION
For Mod 8 up counter- 0 ,1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3,……
For Mod 8 down counter- 7, 6, 5, 4, 3. 2, 1, 0, 7, 6, 5, …….
RESULT-
Mod 8 synchronous up counter, down counter and up/down counter are simulated using Multisim and
the output sequence is observed.
EXPERIMENT NO: DATE:
TITLE: