0% found this document useful (0 votes)
538 views306 pages

Experiments in Digital Electronics Final

Uploaded by

sunilsemwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
538 views306 pages

Experiments in Digital Electronics Final

Uploaded by

sunilsemwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 306

Experiments in

DIGITAL ELECTRONICS
{For B.E./B.Tech. Degree/Diploma courses in Electrical/Electronics/computer

related disciplines, and post graduate degree (M.Sc.) in Electronics/MCA}

Dr. V. S. Bist
Senior Technical Officer (Electronics)
Department of Instrumentation Engineering-USIC
School of Engineering & Technology
H. N. B. Garhwal University (Central University), Srinagar (Garhwal),
Uttarakhand

Er. A. S. Bahuguna Dr. Sunil Semwal


Assistant Professor Associate Professor,
Department of Electronics and Department of Electronics and
Communication Engineering Communication Engineering
School of Engineering & Technology Model Institute of Engineering
H. N. B. Garhwal University and Technology (Autonomous),
(Central University), Srinagar Jammu, Jammu and Kashmir
(Garhwal), Uttarakhand

Neel Kamal Prakashan


Shahdara, Delhi- 32
Published by :
NEEL KAMAL PRAKASHAN
1/11052-A, Subash Park, Shahdara, Delhi-110032
email : [email protected]
Mob: 9411006565

© The subject matter of this book or any part thereof may not be
reproduced in any way without the written permission of the authors
and publishers.

ISBN : 978-81-952786-5-7

Price : Rs. 450.00

First Edition : 2021

Printing at :
NEEL KAMAL PRAKASHAN
[iii] Experiments in Digital Electronics

Preface

Digital electronics circuits are the engines of cell phones, MPEG players, digital
cameras, computers, data servers, personal digital devices, GPS displays, and many
other consumer products that process and use information in a digital format. This
experimental book elaborates on basic theories and experimental hands-on treatment
of digital circuit design. This experimental book is suitable not only for basic theoretical
concepts but also for laboratory work for B.E/B.Tech. Degree courses in Electrical/
Electronics/computer-related disciplines, Diploma courses in Electrical/Electronics/
computer-related disciplines, and postgraduate degree courses (M.Sc.) in Electronics
and Master in Computer Application
This book covers most of the experiments in digital electronics. The digital
circuits can be designed and constructed using standard digital integrated circuits
(ICs) mounted on protoboards / breadboards easily assembled in the laboratory. In
this book, a summary of the experiments is covered in nine sections. The brief theory
given for each experiment is sufficient for students to understand an experiment and
benefit from it. The lab experiments can be used in a stand-alone manner and can be
accomplished by the traditional approach, with a protoboard / breadboard and TTL
circuits. The operation of the integrated circuits used in the experiments is explained
by referring to a diagram of similar components introduced in the experiments. Each
experiment is presented informally, and the student is expected to produce a circuit
diagram and formulate a procedure for verifying the operation of the circuits in the
laboratory. Before going to the experimental work, this book provides the introductory
part of the digital lab components, precautions for handling IC’s, testing,
troubleshooting, safety measures used in the laboratory, etc. This book contains nine
sections of the experiments.
The first section deals with the experiments on Digital Logic Gates. This
includes verifying the operation of basic gates, universal gates, exclusive-OR, and
exclusive-NOR using ICs. The use of one input as a data control means enables/inhibits
gates. The expanding gate input technique of the gate has lower input gate ICs. The
second section deals with the experiments on the use of Universal Gates in digital
logic circuits. Here we can verify the operation of all gates using universal gates.
The third section is experiments based on the Simplification of Boolean
Functions. Verify Boolean laws, De-Morgan’s and the duality theorems. Designing a
circuit with universal gates that implement the given Boolean functions is also a part
of this section. The fourth to sixth sections deal with Combinational Logic Circuits,
consisting of the design of combinational circuits (adder/subtraction, code converters,
IC Comparator, even/odd-parity bit, and data processing circuits). The seventh to ninth
Experiments in Digital Electronics [iv]

sections outline the formal procedure for the design of Sequential Circuits. Beginning
with crossed NAND/NOR and progressing through gated, transparent data, master-
slave, JK Flip-Flop and T flip-flop and their inter conversion between one flip-flop to
another. Secondly, the applications of flip-flops are shift registers, universal shift
register, ring counter, Johnson counter, serial adder, asynchronous binary counter,
decade counter, and synchronous binary counter.
Appendix-A contains the standard graphic symbol for logic functions
recommended by an the ANSI/IEC standard. Appendix-B contains the circuits used
in the digital laboratory. Appendix-C contains a brief description of the Digital ICs
(TTL) used in the laboratory and Appendix-D contains the bibliography.
We hope that this Practical Book provides a booster for students to enhance
their practical knowledge and have a thorough understanding of the concepts,
principles, and procedures involved in it. It will bring effective utilization of the time
allocated to laboratory experiments. The authors will be delighted to receive comments
and criticism on this experimental Book so that its second edition can be brought out
to the satisfaction of its users. Any constructive criticism will be highly appreciated
and acknowledged.
[v] Experiments in Digital Electronics

Dedicated to

Late (Sri) Ram Singh Bist (Father) and Late (Sri)


Harendra Singh Bist (Younger Brother).
-Vijay Singh Bist

Late (Sri ) Salik Ram Bahuguna (Dada Ji) and Late (Sri)
Raghwanand Gairola (Nana Ji)
-Arun Shekhar Bahuguna

The Goddess “Holy Maa Ganga” and my sweet family.


-Sunil Semwal
Experiments in Digital Electronics [vi]

Acknowledgements

We are highly indebted to Prof. Annpurna Nautiyal, Vice-Chancellor, HNB


Garhwal University, Srinagar (Garhwal) and Prof. N.S.Panwar, Head, Department of
Instrumentation Engineering-USIC, for encouragement and providing all the necessary
facilities. We wish to express our sincere thanks to Prof. B. S. Semwal, former
Pro Vice-Chancellor, HNB Garhwal University, Srinagar (Garhwal), for their constant
encouragement and moral support, without which it could not have been possible to
complete this task.
We are incredibly thankful to Prof. Y. P. Raiwani, Dean, School of Engineering
& Technology, and Professor M.M.S.Rauthan, Prof. M.P.Thapliyal, Department of
Computer Science and Engineering, Er B.S.Bhandari, Department of Instrumentation
Engineering-USIC, all faculty and staff members of the School of Engineering and
Technology, HNB Garhwal University, Srinagar Garhwal.
We are also thankful to Prof. Ankur Gupta, Director MIET, Jammu, and
Prof. (Dr.) Ashok Kumar, Head of the Department of Electronics and Communication
Engineering, MIET, Jammu, for their encouragement and support.
We wish to express our gratitude and thanks to all those who inspired us to
write this book. Much needed moral support and encouragement are provided on
numerous occasions by our whole family members. We wish to thank Dr. S.R.Sharma,
Neel Kamal Prakashan, New Delhi, for publishing this book and endowing its with
excellence. Finally, we wish to thank all those who helped us directly and indirectly
for their support during the long process.

Dr. V.S.Bist
Er. A.S.Bahuguna
Dr. Sunil Semwal
[vii] Experiments in Digital Electronics

Contents

S.N. Chapter Name Page Number


Preface iii - iv
Dedicated to v
Acknowledgements vi
Digital Electronics Experiments -An Introduction 01 - 17
Experiments:
1 Digital Logic Gates 18 - 39
1.1 To study and verify the truth tables of basic gates, and
universal gate using ICs. 18
1.2 To study and verify the truth tables of EX-OR and EX-NOR
gates using ICs. 26
1.3 To study and verify the use of data controls to enable/
inhibit of gates. 29
1.4 To study and verify the expanding the inputs of gates. 34
2 Universal Gates 40 - 48
2.1 To study and verify the use of the NAND gate as a Universal
gate. 40
2.2 To study and verify the use of the NOR gate as a Universal
gate. 44
3 Simplification of Boolean Functions 49 - 64
3.1 To study and verify De-Morgan’s and duality theorem. 49
3.2 To study and verify the Boolean laws. 51
3.3 Design and verify a circuit with universal gates that
implements the given Boolean functions. 61
4 Combinational Logic Circuits-Arithmetic Circuits 65 - 93
4.1 Design and verify the operation of a half-adder circuit
using a minimum numbers of gates. 65
Experiments in Digital Electronics [viii]

4.2 Design and verify the operation of a full-adder circuit


using a minimum number of gates. 68
4.3 To study the 4-bit full adder IC7483 and verify its operation. 72
4.4 Design and verify the operation of BCD adder using
IC 7483 and basic gates. 75
4.5 Design and verify the operation of half-subtraction
circuits with a minimum number of gates. 78
4.6 Design, construct and verify full-subtraction circuits
with a minimum number of gates. 81
4.7 Design, construct and verify the operation of 1’s
complement adder/subtractor circuit. 85
4.8 Design, construct and verify the operation of 2’s
complement adder/subtraction circuits. 89
5 Combinational Logic Circuits-Code Converters 94 - 115
5.1 To study and verify the Binary-to-BCD code converter
circuit and vice versa. 94
5.2 To study and verify the Binary-to-Gray code converter and
vice versa. 100
5.3 To study and verify the BCD-to-EX-3 code converter. 104
5.4 To study the use of comparator and verify its operation. 107
5.5 Design, construct, and test a circuit that generates and
checks an even/odd- parity bit from message bits. Use
XOR gates. 111
6 Combinational Logic Circuits-Data Processing Circuits 116 - 153
6.1 Design a combinational circuit with four inputs
(A, B, C, and D) and an out put (Y). The output is to
be equal to 1 when A=1 provided that B=0, or when
B=1 provided that either C or D is also equal to 1.
Otherwise, the output is to equal to zero. 116
6.2 To study and verify the workings of the multiplexer and its
operation as a logic function generator. 119
6.3 To study and verify the operation of the demultiplexer as
a logic function generator. 131
[ix] Experiments in Digital Electronics

6.4 To study and verify the operation of decoders-drivers. 138


6.5 To study and verify the operation of display devices
and their decoders-drivers. 141
6.6 To study encoder logic circuits and verifies their operations. 147
7 Sequential Circuits-Flip-Flops 154 - 177
7.1 To study and verify the operation of SR, D, JK, and
T Flip-Flops using universal gate ICs. 154
7.2 To study and verify Flip-Flops using ICs. 163
7.3 To study and verify the conversion of Flip-Flops. 166
8 Sequential Circuits-Registers 178 - 197
8.1 To study and verify the operation of the 4-bit shift right
register using D-Flip-Flops. 178
8.2 To study and verify the operation of the 4-bit shift right
register using registers ICs. 182
8.3 To study and verify the function table operation of
the 4- bit shift right register using registers IC. 186
8.4 To study and verify the operation of universal shift
register IC. 189
8.5 To study and verify the operation of 4- bit Ring counter
and Johnson counter using IC-74195. 191
8.6 Design, construct and verify a 4-bit serial adder. 195
9 Sequential Circuits-Counters 198 - 214
9.1 To design and verify the operation of a 4-bit asynchronous
binary counter using IC 7473 (JK Flip-Flops). 198
9.2 To design and verify the operation of an asynchronous
decade counter using IC 7473 (JK Flip-Flops). 201
9.3 To design and verify the operation of a 4-bit synchronous
binary counter using JK Flip-Flops. 204
9.4 To study and verify the counters using ICs. 207
Experiments in Digital Electronics [x]

Appendix-A: Standard Graphic Symbols 215 - 222


Appendix-B: Circuits used in digital laboratories 223 - 226
Appendix-C: Brief description of digital ICs 227 - 288
Appendix-D: Bibliography 289 - 290
[1]

Digital Electronics Experiments - An Introduction


1. Introduction to Experiments
This experimental book gives an idea and approach to laboratory experiments
based on digital circuits and logic designs, and also provides a hands-on-experience
for students. With the help of standard integrated circuits (ICs) mounted on breadboards,
these digital circuits can be constructed.
The following tools/components/devices are required for performing these
experiments on the breadboard:
1. LED indicator lamps.
2. Switches (DPST toggle switch) to provide logic-0 and logic-1 signals.
3. Pulsers with push buttons.
4. A clock pulse generator with at least two frequencies:
(a) low frequency (1 pulse/sec) to observe slow changes in signals.
(b) A high frequency (1000 pulses/sec).
5. Multivoltage power supply.
6. Socket strips for mounting the ICs.
7. Solid hookup wire
8. A pair of wire strippers for cutting the wires.
Laboratory experiments can also be performed on digital logic trainers that
include the various required tools which are available from several manufacturers. A
digital logic trainer contains power supplies, LED lamps, toggle switches, pulsar, a
variable clock frequency generators, and IC socket strips. In some experiments,
additional switches, lamps, or IC socket strips, extended breadboard with some
solderless sockets and plug-in-switches may be required.
The Standard Graphic Symbols for digital ICs are given in Appendix-A, the
circuits used in the digital laboratory are given in Appendix-B, and the brief
descriptions of digital ICs used in the labs are given in Appendix-C and Appendix-D
contains the bibliography.
In these experiments, the integrated circuits which are used can be classified
on the basis of integration, such as SSI (small scale integration), MSI (medium scale
integration). SSI contains the individual gates or flip-flops, whereas MSI performs
the specific digital functions. For the experiments of two input OR, AND, NAND,
NOR, XNOR gates, inverter and four input NAND gates, eight SSI gate ICs are needed.
Experiments in Digital Electronics [2]

2. Use of Protoboard/Breadboard in digital circuits:


A breadboard is used to build and test circuits quickly before finalizing the
design of any circuit. Fig.1 shows the use of a protoboard/breadboard for designing
digital circuits in a digital electronics laboratory. The protoboard has buses across the
top that you can connect to logic-1 (in the case of TTL family-+5V dc) and logic-0
(ground). Each bus has two halves. You must install jumper wires (single core) across
the hookup wire to have a continuous bus. ICs are plugged into the protoboard so that
they span the gap. You then have access to each pin via vertical groups of five
continuous connections. Short wires are connected to the power supply connection of
each IC to be used. Switches can be used to supply logic-1 (+5V) and logic-0 (ground)
to the inputs, or inputs can be wired directly to logic-1 and logic-0 with hook-up wire
in the inputs of the gate. Outputs are connected to LEDs through current limiting
resistors of approximately 330 �, 0.25 watt.

3. Use of display devices:


3.1. Light Emitting Diode (LED):
When electrons fill a positive hole at the junction of PN material, the electrons
lose some energy. This energy is given off as heat and light. All PN junctions do this,
but the PN junction made of gallium emits a sufficient amount of light to be used as a
visible light source. Depending on the type and amount of crystal doping, the light
emitted can be red, green, or yellow. If the semiconductor material is gallium arsenide,
the energy is released as infra-red radiation. By mixing other materials with the gallium,
the visible light is observed. The diode must be forward biased and pass a few milliamps
of current.
The LED, like a PN junction, conducts current when forward biased and blocks
the current when reverse biased. LEDs are not reverse-biased because, with more
than a few volts of reverse bias, the LED is aged. The light output of the LED increases
with increasing current until the junction gets too hot and burns out. A resistor is,
therefore, invariably used in series with the LED to limit the current.
[3] Digital Electronics Experiments - An Introduction

In a PN junction diode which is forward biased, the voltage drop is about 1.75
volts for a typical red LED. The forward-biased voltage is higher for yellow and green
LEDs. To be easily seen, a typical LED needs between 5 mA and 20 mA.
Tablel: Typical LED data.

Because the diodes have a maximum current, unless this current is limited,
the diode will be damaged. A series current limiting resistor is therefore needed.
3.1.1. Determining the value of the series resistor:
A (Gap) LED is to be fed from a 5V supply and requires a current of 10 mA.
The value of the current limiting resistor can be obtained by Ohm’s law as;-
Voltage across the diode 5V � 2.2V
Resistance value = � � 280� .
current in the resistor 10mA
The nearest preferred value to this will be 270 Ohm. A good bright glow is
obtained with a currents of only 10 mA (power of 20mW). The LED is very efficient
because electrical energy is converted directly into light. The LED requires
approximately 12 mA to burn brightly.TTL can handle more current in the ‘0’ mode
than in the ‘1’ mode. This signal will be inverted to drive the LED in the active low
mode. A red LED drops about 1.6V or 1.7V (when lit, LED voltage drops vary greatly
with different colors). This leaves 5V - 1.7V = 3.3V to be dropped across the resistor.
Ohm’s law dictates that the resistor should be about equal to 275� . Therefore, a 330 �
resistor, the nearest standard size, will be used to limit the current through the LED.
3.1.2. Identification of LED:
Fig. 2 shows the LED identification. We can identify the LED by just seeing
the anode lead from the cathode lead is listed as:
(i) The cathode lead has a flag (thick portion).
(ii) The anode lead is usually longer than the cathode lead.
(iii) The flat edge of the package is on the cathode side of the LED.
(iv) Connect the LED in a test circuit. If it does not light, turn the LED around.
Experiments in Digital Electronics [4]

When lit, the lead connected to ground is the cathode lead. Do not forget
to connect current-limiting resistor with LED before making the
connection otherwise it will damage.

Fig.2: LED identification.


3.2. Seven-segment display:
The seven-segment display is actually eight separate LEDs (seven segments
and one decimal point). The seven-segment display format is used in other types of
displays and can display any number from 0 to 9. Figure 3 shows the layout of the
seven segment displays. The seven LEDs are labeled a through h.

Fig.3: layout of seven segment display.


By forward-biasing different LEDs, we can display the decimal numbers 0 to
9 plus a few letters of the alphabet. For instance, to display a 0; we need to light up
segments a, b, c, d, e, and f. To light up a 5, we need segments a, c, d, f, and g.
There are two types of LED seven-segment displays: common anode and
common cathode. As can be seen in Fig.4, the common anode has all the anodes of the
[5] Digital Electronics Experiments - An Introduction

seven segments connected together, and the common cathode is the same except that
the cathode is all tied together. Also, notice the way the segments are labeled. With a
common-anode type, you have to connect a current-limiting resistor between each
LED and ground. The size of this resistor determines how many current flow through
the LED. The typical LED current is between 1mA and 50 mA.

Fig.4: Seven segment displays (i) Common anode and (ii) Common cathode
3. Power Supply:
The power supply has a fixed +5V output for work in TTL or a variable supply
for work in CMOS. Be sure that the supply is set to TTL. If your trainer or DC power
supply does not have a fixed +5V output, connect the voltmeter across the output of a
variable supply and adjust it to +5V. A higher supply voltage can destroy a TTL
integrated circuit. Switch off supply voltages before inserting or removing integrated
circuits (ICs).
4. Digital Integrated Circuits:
1. Logic families:
Digital logic integrated circuits may contain many transistors, diodes, and
resistors, together with all the interconnections to form a complete circuit or logic
function. The integrated circuit is formed on a substrate and the transistors may be
formed using either bipolar devices (NPN or PNP transistors) or unipolar (Field Effect
Transistor) and classified as:
Experiments in Digital Electronics [6]

Bipolar Families:
Diode-transistor logic (DTL): this design, once popular, is now obsolete.
Transistor-transistor logic (TTL): the most popular family of SSI and MSI
chips.
Emitter-coupled logic (ECL): the fastest logic family is used at high speed
applications.
MOS (Unipolar) Families:
PMOS p-channel MOSFETs: the oldest and slowest type, are becoming obsolete.
NMOS n-channel MOSFETs: dominates the LSI fields (µP and memories).
CMOS Complementary MOSFETs: push-pull arrangement of n- and p-channel
MOSFETs, is extensively used where low power consumption is needed.
This gives rise to two main logic families; Transistor-Transistor Logic (TTL)
and Complementary Metal Oxide Semiconductors (CMOS). Both these logic families
may be used in the following types of integrated circuits (I.C.);
Small-scale integration (SSI) 1 to 10 gates
Medium-scale integration (MSI) 10 to 100 gates
Large-scale integration (LSI) 100 to 1000 gates
Very-large-scale integration (VLSI) 1000 to 10,000 gates
Super-large-scale integration (SLSI) 10,000 to 100,000 gates per I.C.
2. Logic IC series:
Commonly used logic IC families are:
1. Standard TTL (type 74XX/54XX)
2. CMOS (type 4XXX)
3. Low power Schottky TTL (type 74LS/54LS)
4. Schottky TTL (type 74S/54S)
5. ECL (type 10,000)
In 1964, Texas Instruments introduced transistor-transistor logic (TTL), a widely
used family of digital devices. TTL is fast, inexpensive, and easy to use. The digital
IC7404 is an example of a standard TTL. Over the years, subfamilies of TTL have
been developed that have superior characteristics.
The most popular range of commercial TTL devices is the 74 series, which
will operate over the temperature range of 00 C to 700 C. The supply voltage required
for these gates is:
[7] Digital Electronics Experiments - An Introduction

Maximum: +5.25V
Typical: +5.00V
Minimum: +4.75V
And the military applications devices are the 54 series, which will operate
over the temperature range -550 C to 1250 C. The supply voltage required for these
gates is:
Maximum: +5.25V
Typical: +5.00V
Minimum: +4.75V
A pair of digits is used to code the device and these distinguish the logic
function of the chip. For example: 7400 is a standard quad 2-input NAND gate.
There are many subfamilies of this group which are distinguished by infix
letters in the device coding: e.g. 74LS00 device code-LS are the infix letters. The sub-
families are compared by their switching speed and power consumption as shown in
the table below.
Table 2: Sub-families of the 74 series of TTL gates
Symbol Type of device Switching speed Power
consumption
No infix letter Standard gate 10 ns 10 mW
L Low power 33 ns 1 mW
LS Low power 10 ns 2 mW
Schottky series
AS Advanced 1.5 ns 22 mW
Schottky
ALS Advanced LS 4 ns 1 mW
Schottky
H High Speed 6 ns 22 mW
S Schottky 3 ns 20 mW

Letters following the 74 denote the subfamily as mentioned in the following:


74LS04 indicates a TTL hex inverter in Low-power Schottky technology.
74AL04indicates Advanced Low-power Schottky TTL technology.
If the letters following 74 contain AC, then the IC is in the CMOS family. The
CMOS family also contains subfamilies:
74AC04 indicates a hex inverter of Advanced CMOS technology.
74HC04 indicates a hex inverter of high speed CMOS technology.
CMOS Devices:
The original CMOS family was numbered 4XXX. The most popular range is
the 4000 series, which will operate over the temperature range of -400C to +850C. For
Experiments in Digital Electronics [8]

example: 4011 is a quad 2 input NAND gate. The supply voltage required for these
gates are from +3V to +15V.
The digital IC4069 is an example of a CMOS hex- inverter. Most 4XXX ICs
have a different pin out than their 74XX counterparts. The power pin on the 4XXX
series is labeled VDD instead of VCC; and the ground pin is labeled VSS.VDD can
range from +3 to +15V.
CMOS Version of TTL:
The main advantage of TTL devices is their speed, whereas the advantage of
CMOS is its low-power consumption. There are currently high speed versions of
CMOS devices have equivalent functions and pin outs to TTL devices.
These CMOS ICs are therefore a direct replacement for TTL chips and have
comparable speed with lower power consumption. These devices are also coded with
infix letters; e.g. 74HCXX = high speed CMOS version of TTL with CMOS compatible
inputs and 74HCTXX = high speed CMOS version of TTL with TTL compatible
inputs.
3. Logic Levels:
With TTL, logic-1 is represented by +5V and logic-0 by 0V. This, however, is
the ideal and, in practice, there is a whole range of voltages that can represent logic-1
and logic-0. There is also a range of voltage that is indeterminate, neither logic-1 nor
logic-0. Logic levels are simply the range of voltages used to represent logic-1 and
logic-0.CMOS may be operated at a supply voltage of between +3V and +15V.
Therefore, the logic levels with CMOS are very different from TTL. The logic levels
with CMOS depend upon the supply voltage used, whereas with TTL they are firmly
fixed.
Table 3: Voltage levels for TTL and CMOS
Logic state TTL CMOS
Logic-1 2V to 5V 2/3 of the supply voltage
Logic-0 0V to 0.8V 1/3 of the supply or less
Indeterminate 0.8V to 2V 1/3 to 2/3 of the supply voltage
Voltages present at the inputs and output of the gate must be maintained at the
levels shown in table 3 and not be allowed to fall into the intermediate range; otherwise
the gate will not give the correct logic function.
4. Packages:
Digital ICs come in four major packaged forms. These forms are shown in
Fig.5.
Dual-in-Line Package (DIP): Most TTL and MOS devices in SSI and MSI
and VLSI are packaged in 14, 16, 24 or 40 pin DIPs.
Mini Dual-in-Line Package (Mini DIP): Mini DIPs are usually 8 pin
packages.
[9] Digital Electronics Experiments - An Introduction

Flat Pack: Flat packages are commonly used in applications where light weight
is an essential requirement. Many military and space applications use flat packs.
The number of pins on a flat pack varies from device to device.
TO-5, TO-8 Metal can: The number of pins on a TO-5 or TO-8 can vary from
2 to 12. All the above styles of packaging have different systems of numbering
pins. To find out about how the pins of a particular package are numbered, the
manufacturer’s data sheet on package type and pin numbers must be consulted.

Fig.5: typical packaging systems in digital integrated circuits


5. Pin arrangements:
The IC pins are arranged in a definite pattern. One end of the top of the IC has
a notch or indentation. Starting from the notch, the pin is numbered counter-clockwise.
The IC as shown in Fig. 6 is a 14-pin DIP (dual-in-line package).

Fig.6: DIP arrangement (14-pin)


Experiments in Digital Electronics [10]

5. Identification:
ICs are identified by a number code stamped on the top. The prefix is
manufacturer’s code. The next two numbers denote the family of ICs such as TTL or
CMOS. If letters follow, they indicate the subfamily of the IC. The next numbers
indicate the function of the IC, and the last letters indicate the package style. For
example,
a. 74/54 Series Numbering:
DM74LS83N

DM 74 LS 83 N
P refix/ Manufacture’s c ode Fami ly Subfamily Function Code Package
(TTL – (LS=Low power (83- 4 bit binary adder) N= Plastic DIL
DM=Digital Monolithic Commercial- Schott ky) T= flat Pack
AM= Adva nced Micro
Devices 74 Series) Circuit Type: W = Cerami c Flat
Blank=Fairchild (Military use- No Code=Standard Pack
H= Har ris 54) L=Low Power J = Ceramic DIL
P or C=Intel Temperature S=Schottky Clamp ed
M M= monolithic Memories Range: H=High Sp eed/Power Subfamily Power Prop. Max. Freq.
M C=M otorola 74series = 0 to Product delay
DM=National o
70 C AL=Ad vanced Low
N=Signetics LS 2 mW 9.5 ns 45 MHz
SN=Te xas
54 series = power schottky
-5 5 oC to AC=Advanced CMOS L 1mW 33 ns 3 MHz
125oC series) HC= High speed S 19 mW 3 ns 125 MHz
CMOS
No code 10 mW 10 ns 35 MHz
H 22 mW 6ns 50 MHz

b. Example of CMOS Series Numbering:


RCA4008 AE
RCA 40 08 A E
P refix/ Manufacture ’s c ode Family Function Code Series Package
(CMOS – (08- 4 bit full adder A=Standard D = Cerami c DIL
RCA = CD Commerci al) wit h fast carry) B = High voltage F= Ceramic Frit-seal
M EM= General Instrume nts
M C1 = M otorola DIL
M M = Na tional E = plasti c DIL
CM = Solitron K = Cerami c Flat -
T P =Te xas Instrume nts pack
HBF = SGS
N = Signetics
SCL= Solid State Scientific
Sw = Ste wert warme r

An IC can be identified from the information given on the IC itself. The


numbering system, though it has been standardized, has some variations from
manufacturer’ to manufacturer. Usually, an IC has the above marking on its surface as
shown in Fig. 7.
[11] Digital Electronics Experiments - An Introduction

Fig.7: Identification marks on the digital ICs.


Do not confuse the IC number with the data code that is also often stamped on
the IC. The number 7436 indicates that the IC was manufactured in 1974 during the
36th week.
6. Resistors:
Resistors are one of the more common passive devices which are capable of
resisting the flow of electrons. Generally, it falls into two main categories:
1. Linear resistors. Those which obeys Ohm’s law.
2. Non-linear resistors. Consists of three types in common use:
(a) Photo resistors - light sensitive.
(b) Thermistors-heat sensitive.
(c) Voltage-dependent resistors.
Linear resistors:
The circuit symbols for linear resistors are shown in Fig.8, and the units in
which resistance is measured are ohms. Multipliers of 103 lead to the common usage
of:

Kilohms � k� � 1000’s

Megohms � M� � 1000 000’s


Experiments in Digital Electronics [12]

In many circuit diagrams and manufacturer’s literature the decimal point is


indicated by the position of the multiplier letter. For example:
6.8 � = 6R8
3300 � = 3.3k � = 3K3
3 300 000 � = 3.3 M � =3M3
In addition, a letter system is used to indicate the percentage tolerance:
F = ±1%; G = ±2%; F = ±1%; J = 5%; K = ±10%; M = ±20%;

Fig.8: Circuit symbol for linear resistor.


Wattage:
The most important fact after the resistance is the power rating or wattage of
the resistor. For a required resistance, the wattage may be calculated using:
W = VI = I2R = V2/R.
The types of resistors used in electronics are rated from 1/8 W upward.
Colour coding:
Many small resistors have their value indicated by a colour-coded band system,
which may be identified as shown in Fig. 9. The colour code is as shown in Table 4.
Table 4: Resistor colour code.
Colour Significant Multiplier Tolerance Temperature
Figures (%) Coefficient
Black 0 1 - -
Brown 1 10 ±1 100ppm
Red 2 100 ±2 50 ppm
Orange 3 1k - 15 ppm
Yellow 4 10k - 25 ppm
Green 5 100k ±0.5 -
Blue 6 1M ±0.25 -
Violet 7 10M ±0.1 -
Grey 8 - ±0.05 -
White 9 - -
Gold - 0.1 ±5 -
Silver - 0.01 ±10 -
None - ±20 -
ppm /°C (parts per million per degree Centigrade)
(1 ppm = 0.0001%)
[13] Digital Electronics Experiments - An Introduction

Fig. 9: Resistance colour coding system.


7. Precautions for handling CMOS-ICs:
Care must be taken in the handling of CMOS ICs since they can be destroyed
by excessive static build-up between pins. The following guidelines should be followed:
1. Store CMOS ICs in antistatic tubes or in black conductive foam. Never
push CMOS ICs into Styrofoam. They can be wrapped in aluminum
foil.
2. In low humidity environments where static build-up is a problem, avoid
touching the pins of a CMOS IC when they are removed from storage
unless precautions have been taken to bleed off the static charge.
conductive wrist straps connected through a resistor to ground is one
method used.
3. Apply DC voltage to the CMOS circuit before signals are applied.
4. Remove signal sources before the DC supply is switched off.
5. Switch off supply voltage before inserting or removing CMOS devices
from a circuit.
Experiments in Digital Electronics [14]

8. Testing Logic Chips:


1. Logic Probes:
These are used to detect logic levels in a circuit under test. With most probes,
there is an indication of the high state, the low state, a pulsating state and a
voltage that is between the logic levels; i.e. a bad or indeterminate logic level.
The probe will also have to distinguish between TTL and CMOS devices
operating at different supply voltages. This is achieved because the probe supply
comes from the circuit under test, and in the case of CMOS, if the supply
voltage is known, the indeterminate logic levels can be computed by the probe.
There are many manufacturers of logic probes and you must study the probe
manual to determine its correct operation and use.
2. Logic Pulser:
The logic pulser is used to inject a pulse into a logic circuit. The injected pulse
has sufficient current to override the existing output at a gate. For example, if
the TTL gate output is logic-0 (ground), the pulser will force the output up to
logic-1 (+5V) momentarily, changing the logic state. To avoid damage to the
chip, the duration of the pulse is restricted to about 1.5 microseconds.
A commercial pulser must be capable of sinking or sourcing a current of at
least 100 mA.
When the output of a gate is high and has to be forced low, then the pulser
must sink (lose) current. When the output of the gate is low and must be forced
high, then the pulser must source (provide) current.
The pulser is normally powered by the circuit (logic chip) under test.
In between pulses, the pulser has high resistance of around 300K ohms. This
will allow all logic families to function normally even though the pulser probe
tips are in contact with the circuit under test.
The operation of the pulser can be either a single shot, one pulse only, or a
continuous mode, which provides a train of pulses.
The logic pulser may be used in conjunction with the logic probe. The pulser
is used to produce a change in the logic state at the input of the gate, and the
probe is used to detect the change at the output.
A logic pulser and probe are being used to check the gate.
9. Troubleshooting Tips:
If your circuit does not work properly, consider these points:
1. Vcc and ground: Use a Digital Multimeter as a voltmeter to check for
[15] Digital Electronics Experiments - An Introduction

+5V on Vcc and 0 V on ground directly on the pins of the IC. If it measures
otherwise, trace the wiring back to find the fault.
2. Inputs: Use a Digital Multimeter to check the each input is at the level
you expected. Check directly on the pins of the IC itself. Correct any
discrepancies. Since these inputs are supplied directly from the switches
or power supply buses, a 1 should be close to +5V and a 0 close to
ground.
3. Outputs: Use a Digital Multimeter to check the outputs directly on the
pins of the IC (2.4 V to 5 V for a logic-1, 0 V to 0.4 V for a logic-0). If
steps 1 and 2 check and step 3 do not, then either the IC is bad or
something connected to the output is loading it down. A common
beginning mistake is to tie the outputs, especially
4. Pinouts: Are you using the right pinout for your IC? Consult your data
book.
5. Think and act: You can not correct a circuit by starting at it. Use your
Digital Multimeter. Get involved. Discuss it with your lab partner.
6. Hookup wires are sometimes shoved too far into the protoboards so that
the insulation prevents electrical connections. You should be able to track
down such a situation with your digital multimeter.
7. If you don’t understand after really trying, ask!
10. Laboratory Safety Rules:
Here are some general rules to keep in mind that will make your lab sessions
safe for you and those working near you. Your instructor may have some additional,
more specific rules that apply to your laboratory.
1. Be aware of the fire extinguishers available in and near your lab. Know
where the extinguishers are and how to use them.
2. Be aware of the main power disconnect switches that can be used to kill
the electricity to the outlets in the lab. If someone is in trouble (electricity
speaking), hit the “kill” switch and then try to help.
3. Handling ICs: ICs are delicate devices and can easily be damaged by
rough and careless handling. The following precautions may be observed
while working with ICs.
a. Use the minimum amount of heat to solder or desolder connections.
b. Note the orientation of the IC before removing it. This should be
done by drawing a sketch of the IC with surrounding parts and
noting the position of the notch on the IC.
Experiments in Digital Electronics [16]

c. Always turn-off the equipment before removing or replacing any


IC.
d. Always use the proper IC insertion and remover tool.
4. Most of the digital circuits are operate on logic-1 (+5 volts). We all get
careless working with 5 volt circuits because of the low voltage level.
Care should be taken as follows:
a. Jewelry can be a good conductor of current. Severe burns can result
if your jewelry becomes a part of the current path.
b. If your signal generator and DC power supply are not isolated from
ground, the oscilloscope ground will only be connected to their
common ground, then the circuit will be modified and heavy
currents can flow.
c. If electrolytic capacitors are installed backwards (polarity reversed),
they can become hot and explode. Concentrate on your work.
5. Wear safety glasses when soldering or unsoldering components. Eyes
are often are very close to the work being soldered. A solder splash in the
eye is not only extremely painful; it can also endanger your vision.
6. Solder in a well ventilated area to avoid breathing in flux fumes.
7. Protect your eyes and the eyes of those around you by holding onto the
end of a lead to be cut with diagonal cutters.
8. Avoid the temptation to play around in the lab. Playing tricks on your
colleagues has no place in the lab. A little common sense goes a long
way.
11. Use of laboratory manual:
Every lab manual consists of instructions prepared for performing different
experiments. For each experiment, the objectives are written in specific terms. The
list of equipment/apparatus and components required are given. The students are
required to choose suitably the number of ICs and the proper power supply for the ICs
used.
After selecting the ICs, the students are required to note down the
manufacturer’s name. By doing this, they will become familiar with the names of
firms dealing with particular instruments and equipment.
The logic circuit diagram for each experiment is given. It is possible that the
equipment/apparatus indicated in the manual can not be used due to their non
availability in the laboratory or for any other reason. In that case, an alternative
[17] Digital Electronics Experiments - An Introduction

arrangement may be required for which the teacher should be consulted. In such case,
modifications to the logic circuit diagram should be made and checked by the teacher-
in-charge.
Observations should always be made in tabular form. The output must be
compared with what was expected.
12. Guidelines for the Teacher:
1. A time-table for laboratory work should be prepared. The students should
be informed in advance about the experiments they will be required to
perform on a particular date that so they can come prepared.
2. Students should have this manual available to them with them before
the laboratory session starts.
3. For laboratory work, students can be divided into small groups.
4. Students should go through the instruction sheet thoroughly before
performing the experiment so that they acquire sufficient background
knowledge to perform the experiment.
13. Hazards:
Lab work requires patience and hard work. Be cool. Avoid the trap of rushing
through a lab to get home early and missing the points. You should pay close attention
to details, but don’t miss the overall concepts involved.
[18]

1. Digital Logic Gates


EXPERIMENT-1.1
Object: To study and verify truth tables of basic gates, and universal gate using ICs.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), One 7400 (Quadruple 2-
input NAND gates), One 7402 (Quadruple 2-input NOR gates).
Diode: One LED (20mW)
Miscellaneous: One Resistor ( 330 � ) 0.25 watt, Single core wire, and
wire Cutter and stripper.
Brief theory:
Gates are circuits that are used to combine digital logic levels (ones and zeros)
in specific ways. The basic gates are the inverter, OR, AND, NAND, and NOR.
1. Inverters:
The inverter is a single–input gate whose output is the complement of the
input. It inverts the signal at the input. Fig.1.1.1 (a) shows symbols for the inverter
and (b) summarizes the operation in a truth table by listing all possible inputs and the
corresponding output.

Input Output
A
1 2 3 4 0 1
A 7404 Y A A 7404 Y A 1 0

a(i) a(ii) (b)

Fig.1.1.1: Inverter (a) symbol- (i) active high input and active low output, (ii)
active low input and active high output (b) truth table
[19] Digital Logic Gates

The small circle on the output of symbol a (i) is called a bubble, indicates an
active low output and the absence of a bubble on the output indicates that the input is
active high. This type of symbol is known as active high input and active low output.
An alternative symbol a (ii) has a bubble on input but not on output, known as active
low input and active high output. Inverters are available in a 14-pin DIP package in
both TTL and CMOS. In the TTL family, the 7404 is a hex inverter. Hex signifies that
six inverters are contained in the same IC. Each is independent from the others and
each can be used in a different part of the circuit. The supply voltage, V cc is +5V and
is applied to pin 14 with pin 7 connected to ground. The pinouts of all 74XXX04ICs,
regardless of family or subfamily, are the same. See Fig. 1.1.2.

Fig. 1.1.2: Pinout diagram of 74XXX04 Series


The original CMOS family was numbered 4XXX. For example, the 4069 is a
hex inverter. Most 4XXX ICs have a different pinout from their 74XXX counterparts.
The pinout of the 4069 happens to be the same as the 7404. The power pin on the
4XXX series is labeled VDD instead of VCC; and the ground pin is labeled VSS. VDD can
range from +3 volts to +15 volts. Some of the available inverter ICs are listed in Table
1.1.1
Table 1.1.1: Inverter ICs
Number Family Subfamily Description
7404 TTL Standard Hex Inverter
74LS04 TTL Low-Power Schottky Hex Inverter
74ALS04 TTL Advanced Low- Hex Inverter
Power Schottky
74AC04 CMOS Advanced CMOS Hex Inverter
74HC04 CMOS High-Speed CMOS Hex Inverter
74HCT04 CMOS High- Speed CMOS, Hex Inverter
TTL Compatible
4069 CMOS Standard Hex Inverter
Experiments in Digital Electronics [20]

2. OR gates (Inclusive OR):

The OR gate is a circuit that produces a 1 on its output when any of its inputs
are 1. Fig.1.1.3 (a) shows the symbols for the two-input OR gate with inputs A and B
and output Y, and (b) summarizes the operation of the OR gate. All possible input
combinations are listed by counting in binary from 00 to 11.

A
1
04
2 Input Output
1 Y � AB � A � B
A Y=A+B
3
1
3
B A Y=A+B
B
2
32 2 08
5
04
6 0 0 0
3 4
B 04 0 1 1
(i) (ii) 1 0 1
(a) 1 1 1

(b)

Fig.1.1.3: OR gate (a) symbol- (i) active high input and active high output,(ii)
active low input and active low output (b) truth table

A variety of forms of OR gates are available in TTL and CMOS. In the TTL
family, the 7432 is a quad (meaning four gates) two-input TTL OR gate IC. The four
are independent. Each can be in a different part of the circuit without feedback. Power
is supplied to the IC through a VCC (+5V) and ground connection. The 4072 is a dual
(meaning two gates) four input CMOS OR gate IC. The pinout for 7432 and 4072 is
shown in Fig. 1.1.4.

7432

4072

Fig. 1.1.4: Pinout diagram of (a) 7432 (b) 4072.

Some of the available OR gate ICs are listed in Table 1.1.1


[21] Digital Logic Gates

Table 1.1.2: OR ICs


Number Family Subfamily Description
7432 TTL Standard Quad 2-input OR
74LS32 TTL Low-Power Schottky Quad 2-input OR
74HC32 CMOS High-Speed CMOS Quad 2-input OR
4071 CMOS Standard Quad 2-input OR
4072 CMOS Standard Dual 4-input OR
3. AND gates:
The AND gate is a circuit that produces a 1 on its output when all of its inputs
are 1. A two-input AND gate, with inputs A and B and output Y, is shown in Fig.1.1.5
(a) conventional, IEC and the IEEE symbols. The truth table, Fig 1.1.2 (b), summarizes
the operation of the AND gate. All possible input combinations are listed by counting
in binary from 00 to 11.
Input Output
1 2
1
A 04 B A Y=A.B
Y=A.B 1 Y � A � B � A.B
A
3 5 6 0 0 0
08 2 32 04
B
2
3 4
3 0 1 0
B 04 1 0 0
(i) (ii)
1 1 1
(a)
(b)
Fig.1.1.5: AND gate (a) symbol- (i) active high input and active high output,(ii)
active low input and active low output (b) truth table
A variety of forms of AND gates are available in TTL and CMOS. The 7408
IC is a quad (meaning four gates) two-input TTL AND gate IC. There are four
independent two-input gates. The 7411 is a triple (meaning three gates) three-input
TTL AND gate IC, and the 4082 is a dual (meaning two gates) four input CMOS AND
gate IC.
The pinout for the 7408 is shown in Fig. 1.1.6

Fig. 1.1.6: Pinout diagram of 7408.


Experiments in Digital Electronics [22]

Some of the available AND gate ICs are listed in Table 1.1.3
Table 1.1.3: AND ICs

Number Family Subfamily Description


7408 TTL Standard Quad 2-input AND
74ACT08 CMOS Advanced CMOS, TTL Quad 2-input AND
Compatible
74HCT11 CMOS High-Speed CMOS, TTL Triple 3-input AND
Compatible
4081 CMOS Standard Quad 2-input AND
4082 CMOS Standard Dual 4-input AND
4. NAND gates:
The NAND gate is a circuit that produces a 0 at its output when all of its
inputs are 1. NAND is the contraction of the words “NOT” and “AND”. Its symbol
with two inputs A and B an output Y, is shown in Fig.1.1.7 (a). The truth table for a
NAND gate is shown in Fig 1.1.7 (b).
Input Output
A
1
04
2 B A Y =
1 Y � A.B
A
3
1
Y � A � B � A.B 0 0 1
00 32
B
2 2 3 0 1 1
3 4
B 04 1 0 1
(i) (ii) 1 1 0
(a)
(b)
Fig.1.1.7: NAND gate (a) symbol- (i) active high input and active low
output,(ii) active low input and active high output (b) truth table
The pinout for the 7400 is shown in Fig. 1.1.8

Fig. 1.1.8 Pinout diagram of 7400.


The NAND gate is available in many forms in TTL and CMOS, as shown in
[23] Digital Logic Gates

Table 1.1.4: NAND Gates ICs

Number Family Subfamily Description


7400 TTL Standard Quad 2-input NAND
7430 TTL Standard 8-input NAND
74LS20 TTL Low-Power Schottky Dual 4-input NAND
74ALST10 TTL Advanced Low-Power Triple 3-input NAND
Schottky
74ALST133 TTL Advanced Low-Power 13-input NAND
Schottky
74HTC11 CMOS High-Speed CMOS Quad 2-input NAND
4011 CMOS Standard Quad 2-input NAND
4012 CMOS Standard Dual 4-input NAND
4023 CMOS Standard Triple 3-input NAND
5. NOR gates:
The NOR gate is a circuit that produces a 0 at its output when one or more of
its inputs are 1. NOR is the contraction of the words “NOT” and “OR”. Its symbol is
the OR symbol with an inverted, with two inputs A and B and an output Y, is shown in
Fig.1.1.9 (a). The truth table for a NOR gate is shown in Fig 1.1.8
1 2 Input Output
A 04
A
2 Y � A �B 1 B A Y=
1 3 Y � A.B � A � B
02 2 08 0 0 1
3
B 3 4 0 1 0
B 04
1 0 0
(i) (ii) 1 1 0
(a) (b)
Fig.1.1.9: NOR gate (a) symbol- (i) active high input and active low output,(ii)
active low input and active high output (b) truth table
The pinout for the 7402is shown in Fig. 1.1.10

Fig. 1.1.10: Pinout diagram of 7402.


The NOR gate is available in many forms in TTL and CMOS, as shown in
Table 1.1.5
Experiments in Digital Electronics [24]

Table 1.1.5: NOR Gates ICs


Number Family Subfamily Description
7402 TTL Standard Quad 2-input NOR
7425 TTL Standard Dual 4-input NOR
74LVQ02 TTL Low-Voltage Quiet Quad 2-input NOR
74ALS27 TTL Advanced Low-Power Triple 3-input NAND
Schottky
4001 CMOS Standard Quad 2-input NOR
4002 CMOS Standard Dual 4-input NOR
4025 CMOS Standard Triple 3-input NOR
(i) Circuit diagram:
Figure 1.1.11 (a) shows a TTL and (b) a CMOS circuit diagram for a two-
input NOR gate

(a) (b)
Figure 1.1.1 1: Circuit diagram for one gate of (NOR gate) (a) TTL and (b)
CMOS
(ii) Breadboard layout:
Figure 1.1.12 shows an experimental breadboard setup for the 74HC00 that is
used to test the single NAND gate.

Figure 1.1.12: Breadboard layouts for the 74HC00.


[25] Digital Logic Gates

Procedure:
(i) Truth Table:
a. Connect the required power supply to the proper place on the
breadboard.
b. Connect the single core wire to the pin number - 14 (VCC) of the IC
and pin number 7, to the ground.
c. Verify each gate of the chip by putting in all possible combinations
of inputs and observing the output with the help of LED's.
(ii) Wave Form:
Obtain the input-output waveform observed on the oscilloscope.
(iii) Propagation delay:
Connect all the inverters in cascade in the 7404IC. After that, a clock
pulse is applied to the input of the first inverter. With the help of an
oscilloscope calculate the delay from input to output of the six inverters.
Apply the input clock pulse to one of channels and output to the sixth
inverter on the channel. Finally, divide the total delay by six and obtain
an average propagation delay per inverter.
Observation Table:
(i) Truth table:

Inputs Outputs
Decimal A B AN D OR NOT ‘A’ NOT ‘B’ NAND NO R

0 0 0
1 0 1
2 1 0
3 1 1

(ii) Waveform:

S.No. Gate Waveform (inputs and output)


1 AND
2 OR
3 Inverter
4 NAND
5 NOR
Experiments in Digital Electronics [26]

(iii) Propagation delay:


S .N o . G a te P ro p a g a tio n d e l a y a fte r 8 M ea n P r o pa g a ti o n d el a y o f a
g a tes g a te
1 A ND 1 .---------
2 .--------- ----- -----
3 .---------
2 OR 1 .---------
2 .--------- ----- -----
3 .---------
3 In v e rt er 1 .---------
2 .--------- ----- -----
3 . ---------
4 N AN D 1 .---------
2 .--------- ----- -----
3 .---------
5 N OR 1 .---------
2 .--------- ----- -----
3 .---------

Result: Verified all the object using truth table, waveform and found propagation
delay of the each gate.
Precautions:
1. Check all connections thoroughly.
2. Check that logic 1 is the +5V rail and logic 0 is the 0V rail.
3. Do not leave an input floating.
4. Try to keep the wire as short as possible to avoid a bunch of wires.
5. Pay extra attention while performing the experiments. If IC's are getting
hot, then there is a probable of short circuit. So, immediately turn-off the
power supply.
EXPERIMENT-1.2
Object: To study and verify the truth tables of EX-OR and EX-NOR gates using ICs.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: One 7486 (Quadruple 2-input EX-OR gates), one 74HCT266 (Quad
2-input Ex-NOR).
Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
[27] Digital Logic Gates

Brief theory:
1. Exclusive-OR gates:
An exclusive-OR (Ex-OR) gate is not one of the basic gates, but is constructed
from a combination of the basic gates. The Ex-OR is a two-input gate that produces a
1 on its output when its inputs are different and a 0 if they are the same. The symbol
and truth table for an exclusive-OR are shown in Fig. 1.2.1.
Input Output
B A Y � A� B
Y A B 0 0 0
0 1 1
1 0 1
1 1 0
(a) (b)
Fig.1.2.1: Ex-OR gate (a) symbol (b) truth table
Designing an Ex-OR gate, first we write a Boolean expression for the truth
table in Fig.1.2.1. The output Y � AB � AB � A � B
Table 1.2.1. Shows the some Ex-OR gate are available in many forms in TTL
and CMOS.
The pinouts for a 7486 and a 4070 quad two-input Ex-OR are shown in Fig.1.2.2

Fig.1.2.2: Pinout diagram of 7486.


Table 1.2.1: Ex-OR Gates ICs
Number Family Subfamily Description
7486 TTL Standard Quad 2-input Ex-OR
74ACT86 CMOS Advanced CMOS, TTL Quad 2-input Ex-OR
compatible
74ALST86 TTL Advanced Low-Power Quad 2-input Ex-OR
Schottky
4030 CMOS Standard Quad 2-input NAND
4070 CMOS Standard Dual 4-input NAND
Experiments in Digital Electronics [28]

2. Exclusive-NOR gates:
An exclusive-NOR (EX-NOR), sometimes called non-exclusive-OR. Ex-NOR
gate is not one of the basic gates, but is constructed from a combination of the basic
gates. The Ex-NOR is a two-input gate that produces a 1 on its output when its inputs
are the same and a 0 if they are different. The symbol and truth table for an exclusive-
NOR are shown in Fig. 1.2.3.

Input Output
B A Y � A� B
0 0 1
0 1 0
1 0 0
1 1 1
(a)
(b)
Fig.1.2.3: Ex-NOR gate (a) symbol (b) truth table
To design an Ex-NOR, first write a Boolean expression for the truth table in
fig.1.2.3. Y � AB � AB � A � B . The pinouts for a 74266 quad two-input Ex-NOR
are shown in Fig.1.2.4.

Fig.1.2.4: Pinout diagram of 74266.


Table 1.2.2: Ex-OR Gates ICs
Number Family Subfamily Description
74HCT266 CMOS Hi Speed CMOS Quad 2-input Ex-NOR

Procedure:
(i) Truth Table:
Use one gate from the list of IC and obtains the truth table for the gate. By
connecting the inputs of the gate to switches and the output to an indicator lamp, the
truth table can be obtained. After that, verify the result.
[29] Digital Logic Gates

(ii) Wave Form:


Obtain the input-output waveform relationship of the gate with the help of a
given list of ICs and the waveforms may be observed on the oscilloscope. Low order
outputs of the binary counter are used to provide inputs to the gate.
Observation Table:
(i) Truth table:
S.No. Inputs Outputs
A B X-OR X-NOR

0 0 0
1 0 1
2 1 0
3 1 1
(ii) Waveform:
S.No. Gate Waveform (inputs and output)
1. EX-OR
2. EX-NOR
Result:
Verified all the objects using the truth table, waveform and finding the
propagation delay of each gate.
Precautions:
3. Check all connections thoroughly.
4. Check that logic 1 is the +5V rail and logic 0 is the 0V rail.
5. Do not leave an input floating.
EXPERIMENT-1.3
Object: To study and verify the use of data control to enable/inhibit of gates.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7400 (Quadruple 2-input NAND gates), One
7402 (Quadruple 2-input NOR gates), One 7486 (Quadruple 2-input EX-
OR gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Experiments in Digital Electronics [30]

Brief theory:
One of the common uses of gates is to control or gate the flow of data from the
input to the output. In that mode of operation, one input is used as the control and the
other presents the data to be passed to the output. If the data is allowed to pass through,
the gate is said to be enabled. If the data is not allowed to pass through, the gate is said
to be inhibited.
1. AND gate Enable/Inhibit:
Fig.1.3.1 shows the truth table for AND gate as an Enable/Inhibit.

Input Output
Control Data Y Comments
Inhibit 0 0 0 O utput
0 1 0 locked at 0
Enable 1 0 0 Data passes through
1 1 1 unaltered

(a)

(b)
Fig.1.3.1: (a) truth table for AND gate as an Enable/Inhibit.(b) symbol and
operation
If the signal on the control input of an AND gate is 0 (top two lines of the truth
table in Fig. 1.3.1), the output of the gate is 0 regardless of the data present on the data
input. The data does not pass through the gate, and the gate is said to be inhibited. The
output is “locked up” in the 0 state.
If the signal on the control input is 1 (bottom top two lines of the truth table in
Fig. 1.3.1), then whatever is present on the data input appears on the output and the
gate is said to be enabled. The data “passes through” the gate.
2. NAND gate Enable/Inhibit:
Fig.1.3.2 shows the truth table for NAND gate as an Enable/Inhibit.
Input Output
Control D ata Y Comme nts
Inhibi t 0 0 1 Outp ut
loc ked at 1
0 1 1
Ena ble 1 0 1 Da ta passes thr ough
1 1 0 inverte d
(a)
[31] Digital Logic Gates

(b)
Fig.1.3.2: (a) truth table for NAND gate as an Enable/Inhibit (b). symbol and
operation
If the signal on the control input of a NAND gate is 0 (top two lines of the
truth table in Fig. 1.3.2), the signal on the data input is ignored and the output is
“locked up” in the 1 state. The gate is said to be inhibited even though the output is 1.
If the signal on the control input is 1 (bottom top two lines of the truth table in
Fig. 1.3.2), the signal on the data input is passed through the gate but is inverted in the
process. The gate is said to be enabled. The inverted data “passes through” the gate.
3. OR gate Enable/Inhibit:
Fig.1.3.3 shows the truth table for OR gate as an Enable/Inhibit.

Input Output
Control Data Y Comments
Enable 0 0 0 Data passes through
0 1 1
Inhibit 1 0 1 Output
1 1 1 locked at 1

(a)

Fig.1.3.3: (a) truth table for OR gate as an Enable/Inhibit (b) symbol and
operations
If the signal on the control input of an OR gate is 0 (top two lines of the truth
table in Fig. 1.3.3), the signal on the data input passes through to the output and the
gate is enabled.
If the signal on the control input is 1 (bottom top two lines of the truth table in
Fig. 1.3.3), the signal on the data input is ignored and the output is “locked up” in the
1 state. The gate is said to be inhibited.
Experiments in Digital Electronics [32]

4. NOR gate as Enable/Inhibit:


Fig.1.3.4 shows the truth table for NOR gate as an Enable/Inhibit.

Input Output
Control Data Y Comments
Enable 0 0 1 Data passes through
0 1 0 inverted

Inhibit 1 0 0 Output
locked at 0
1 1 0
(a)

(b)
Fig.1.3.4: (a) truth table for NOR gate as an Enable/Inhibit (b). symbol and operations
If the signal on the control input of a NOR gate is 0 (top two lines of the truth
table in Fig. 1.3.4), whatever is present on the data input appears on the output inverted.
The gate is enabled.
If the signal on the control input is 1 (bottom top two lines of the truth table in
Fig. 1.3.4), the output of the gate is 0 regardless of the data present on the data input.
The gate is said to be inhibited.
5. Ex-OR gate as Enable/Inhibit:
Fig.1.3.5 shows the truth table for Ex-OR gate as an Enable/Inhibit.
Input Output
Control Data Y Comments
Dat a passes 0 0 0 Data passes
0 1 1 through
1 4
A
Y=A
A
Y�A (buffer)
2
86
3 5
86
6 Dat a passes 1 0 1 Data passes
logic '0' logic '1'
inverted 1 1 0 through
inverted
(NOT gate)

(a) (b)
Fig.1.3.5: (a) symbol and (b) truth table for Ex-OR gate as an Enable/Inhibit.
If the signal on the control input of EX-OR gate is 0 (top two lines of the truth
table in Fig. 1.3.5), whatever is present on the data input appears on the output inverted.
The gate is enabled.
[33] Digital Logic Gates

If the signal on the control input is 1 (bottom top two lines of the truth table in
Fig. 1.3.5), the output of the gate is an inverted input. The gate is enabled.
Procedure:
To verify whether the gates are enabled or inhibited.
(1) Insert the ICs into the power project board.
(2) Connect the power supply to each IC.
(3) Verify the output by giving the control and data inputs as shown in the
above figures.
(4) Connect the output to the LED monitor on the trainer or hookup it to a
LED with the proper current limiting resistor.
Observation Table:
1. AND gate Enable/Inhibit:
Input Output
Control Data Y Comments
Inhibit 0 0
0 1
Enable 1 0
1 1
2. NAND gate Enable/Inhibit:
Input Output
Control Data Y Comments
Inhibit 0 0
0 1
Enable 1 0
1 1
3. OR gate Enable/Inhibit:
Input Output
Control Data Y Comments
Enable 0 0
0 1
Inhibit 1 0
1 1
4. NOR gate Enable/Inhibit:
Input Output
Control Data Y Comments
Enable 0 0
0 1
Inhibit 1 0
1 1
Experiments in Digital Electronics [34]

5. Ex-OR gate Enable/Inhibit:


Input Output
Control Data Y Comments
Enable 0 0
0 1
Inhibit 1 0
1 1
Result:
Verified the enable/inhibit gates.
Precautions:
1. Check all gates in the ICs before using them as enable/inhibit.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-1.4
Object: To study and verify the expanding the inputs of gates.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and digital
Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7400 (Quadruple 2-input NAND gates), One
7402 (Quadruple 2-input NOR gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
1. Expanding an AND gate:
We can expand an AND gate with another AND gate.
a. A three-input AND gate can be created from two two-input AND gates as
shown in Fig.1.4.1.The output is the same as if we had fed A, B, and C into three
inputs AND, Y=(A.B).C.=A.(B.C)
1
A A.B 4
08 Y=A.B.C
2 3 6
B 5 08
C
Fig. 1.4.1: Expanding a three- input AND gate using two-input AND.
[35] Digital Logic Gates

b. A four-input AND gate can be created from three two-input AND gates as
shown in Fig.1.4.2. The output is the same as if we had fed A, B, C, and D into a four-
input AND, Y= (A.B). (C.D).

Fig.1.4.2: Expanding a four- input AND gate using two-input AND.


2. Expanding a NAND gate:
a. The output from a three-input NAND gate would be Y � A.B.C, can be
created from three two-input NAND gates as shown in Fig.1.4.3. The output is the
same as if we had fed A, B, and C into a three-input NAND as:

Y � A.B.C � ( A.B).C � A.( B.C ) NAND � NAND Combination

Fig.1.4.3: expanding a three- input NAND gate using two-input NAND.


b. A four-input NAND gate can be created from five two-input NAND gates
as shown in Fig.1.4.4. The output is the same as if we had fed A, B, C, and D into a
four-input NAND as:

Y � A.B.C.D � ( A.B).(CD) NAND - NAND Combination


Similarly, we can expand an NAND with another NAND.
1 4
A 3 6
2 00 5 00
B
12 Y � ABCD
11
13 00

9
C 8
10 00 00
D

Fig.1.4.4: Expanding an four- input NAND gate using two-input NAND


Experiments in Digital Electronics [36]

3. Expanding an OR gate:
a. A three-input OR gate can be created from two two-input OR gates as shown
in Fig.1.4.5. The output is the same as if we had fed A, B, and C into a three-input
AND, Y= (A+B) + C = A + (B+C).

Fig.1.4.5: Expanding a three- input OR gate using two-input OR.


b. A four-input OR gate can be created from three two-input OR gates as
shown in Fig.1.4.6. The output is the same as if we had fed A, B, C, and D into a four-
input OR, Y= (A.B). (C.D), similarly we can expand an OR with another OR.

Fig.1.4.6: Expanding an four- input OR gate using two-input OR


4. Expanding an NOR gate:
a. A three-input NOR gate can be created from three two-input NOR gates as
shown in Fig.1.4.7. The output of three (A, B, and C) input NOR gate is:

Y � A � B � C � ( A. �) � C � A � B � C ) NOR � NOR Combination

Fig.1.4.7: Expanding a three- input NOR gate using two-input NOR.


[37] Digital Logic Gates

b. A four-input NOR gate can be created from five two-input NOR gates as
shown in Fig.1.4.8. The output of four input (A, B, C, and D) NOR gate is

Y � A � B � C � D � ( A � B) � (C � D) {NOR - NOR Combination}


Similarly we can expand an NOR with another NOR.

Fig.1.4.8: Expanding an four- input NOR gate using two-input NOR


Procedure:
1. Insert the ICs in the proper place on the power project board.
2. Connect the power supply to the ICs.
3. Construct the above mentioned expanding gate logic circuits.
4. Connect the output to the LED monitor on the trainer or hookup it to a
LED with the proper current limiting resistor.
5. Switch on the power project board.
6. Verify the output by giving the inputs in sequence.
Observation Table:
1. Expanding an AND gate:
Experiments in Digital Electronics [38]

2. Expanding a NAND gate:

S.No. Inputs Output Output


D C B A Y � A.B.C .D
Y � ( A.B).C or

� A.( B.C ) � ( A.B).(CD )


0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0

14 1 1 1 0
15 1 1 1 1

3. Expanding an OR gate:
[39] Digital Logic Gates

4. Expanding an NOR gate:

Result:
Verified the expending gates using a truth table.
Precautions:
4. Check all gates in the ICs before expanding.
5. Check the power supplies of the power project board.
6. Do not switch on the power supply when inserting the IC into breadboard.
7. Do not leave an input floating.
[40]

2. Universal Gates
EXPERIMENT-2.1
Object: To study and verify the use of the NAND gate as a Universal gate.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: Two 7400 (Quadruple 2-input NAND gates).
Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
The NAND gate is a combination of NOT and AND gate (i.e., AND gate
followed by an inverter). Therefore, the output is NOT the AND of the inputs. Thus, it
has two or more input signals but only one output signal. All input signals must be
high to get a low output.
The NAND gate is also called a universal gate because it can be used to
implement any Boolean function. The logic operation of NOT (inverter/complement),
AND, OR, Ex-OR, and Ex-NOR gates can be obtained with NAND gates only. The
NAND gate is easier to realize and consumes less power than the other gates.
1. NAND as NOT ( Inverter/Complement) operation:
The complement operation is obtained from a one input NAND gate that
behaves exactly like an inverter. Fig.2.1.1 shows a two-input NAND gate as an Inverter.
Suppose we apply the same signal to both inputs of a two-input NAND. The inputs to
the NAND gate are tied together, so that the gate works as inverter (NOT) gate. Then
either both inputs are 0 or both inputs are ‘1’. If the input is ‘0’ the output will be ‘1’.
If the input is ‘1’ the output will be ‘0’. The output is always the complement of the
input.
[41] Universal Gates

1
Input
3
7400 Output
2

Fig.2.1.1: NAND as an Inverter.


2. NAND as an AND operation:
Two NAND gates are required for the operation of the AND gate. Firstly,
perform the operation of the NAND gate and, after that, inverts the logical value of
the signal. Fig.2.1.2 shows a two-input NAND gate used as a two-input AND gate.

The output of the two-input AND gate is Y AB AB, NAND-NAND combination , the

combination of two NAND gates gives AND operation. The two inputs of first NAND
gate are A and B. Its output is (Y ) � A.B . The two inputs to the second NAND gate are
tied together (NAND as NOT) and the output of first A.B is fed to this common
terminal. The second NAND gate works as inverter and its output (Y � AB � AB ), thus
giving two-input AND operation.

Fig.2.1.2: NAND as an AND.


3. NAND as an OR operation:
With the help of a NAND gate with additional inverters on each input, the OR
operation can be achieved. Fig.2.1.3 shows a two-input NAND gate used as a two-input
OR gate operation. The output of two-input OR gate is ( Y � A � B � A � B � A . B ). It
indicates that, the combination of three NAND gates gives two-input OR gate. When
two input NAND gate are tied together, the NAND gates work as inverters, giving
outputs A and B. The output of third NAND gate is A . B. As per De-Morgan’s theorem,
this is equal to A � B thus giving a two-input OR function.
Experiments in Digital Electronics [42]

1
3
2 00
4 00
6
5 00

Fig.2.1.3: NAND as an OR.


4. NAND as a NOR operation:
Fig.2.1.4 shows a two-input NAND gate as a two-input NOR gate. The output
of the two-input NOR gate is ( Y � A � B � A . B ). It indicates that the combination of
four two-input NAND gates gives a two-input NOR gate operation. In Fig.2.1.4, the
two inputs of each of the first two NAND gates are tied together and fed by A and B.
The outputs are A and B. They are fed to as inputs to third NAND gate. The output is
A+B, fed to as an input to fourth NAND gate. The final output is A � B thus giving
NOR operation.

Fig.2.1.4: two-input NAND gates as a two-input NOR gate


5. NAND as an EX-OR operation:
The output of the EX-OR gate is ( Y � AB � A B ). There are two ways, from
which we can implement the EX-OR gate. Fig.2.1.5 shows a logic diagram of an EX-
OR gate using two-input NAND gates. Table 2.1.1 shows the comparison between
two logic diagrams.
One way {Logic diagram (a)}:- Second way {Logic diagram (b)}:-

Y � AB � A B � � �̅. � � �
� . � � ��̅ � ��

Y � AB � A B � � ���̅ � �
� � � ���̅ � �
��

Y � AB. A B �����������������������
�����
� � ���. � � � ���. �����
��

��������������������
� � ����������
���. ��. ����������
�������� ��������
���. ��
[43] Universal Gates

VCC=+5V

14 12
11 9 4
A 13 00 8 A 6
10 00 5 00
Y A B
1 1 12 Y A B
3 3 11
2 00 2 00 13 00

4 9
1 6 8
3 5 00 10 00
B 2 00 B
IC 7400 7

GND
(a) (b)

Fig.2.1.5: Ex-OR gate (a) First and (b) second using two-input NAND gates.
Table 2.1.1 Comparison between two logic diagrams.
Descriptions;(2-input NAND gate) Logic diagram (a) Logic diagram (b)
Total numbers of gate used 5 4
Total Numbers of inputs 8 5
Total Number of IC(s) used 2 1
After comparing the above two logic diagrams, logic diagram (b) requires
minimum hardware to implement the EX-OR gate.
1. NAND as an EX-NOR operation:
The output of the EX-NOR gate is ( Y � AB � A B � AB � A B ). It is the invert
of the EX-OR gate. We can implement the EX-NOR gate using minimum number of
NAND gates as shown in Fig.2.1.6.

4
6
1 5 00 12 1
3 11 3
2 00 9 00 00 Y
8 13 2
10 00

Fig.2.1.6: Ex-NOR gate using minimum number of NAND gate.


Procedure:
(1) Insert the IC 7400 on the IC base of the logic trainer board/breadboard.
Connect +5V supply to pin 14 and ground pin 7.
(2) Construct the different logic gate operations as shown above.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook up them to the +5V supply (logic 1) or ground (logic 0) as required.
Experiments in Digital Electronics [44]

(4)Connect the output to the LED monitor on the trainer or hookup them to
a LED with proper current limiting resistor.
(5) Switch on the trainer/power project board and observe LED output for
various combinations of A and B inputs.
Observations Table:
Truth table for gates using NAND-NAND combinations:
Inp uts Output
S .No. A B AND OR NOT A NOR X-OR X -NOR
1 0 0
2 0 1
3 1 0
4 1 1
Result:
Verified the outputs of the above mentioned gates using NAND gates only.
Precautions:
1. Check all gates in the NAND gates ICs, LED, power supplies in the
power project board/trainer, and hook up single core wire before using
it.
2. Do not leave an input floating.
EXPERIMENT-2.2
Object: To study and verify the use of the NOR gate as a Universal gate.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: Two 7402 (Quadruple 2-input NOR gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
The NOR gate is obtained by the combination of NOT and OR gates. The
operation of NOR is the dual of the NAND operation. Therefore, the output is NOT
the OR of the inputs. Thus, it has two or more input signals but only one output signal.
All input signals must be low to get a high output. The NOR gate is also called the
universal gate because it can be used to implement any Boolean function. We can
implement NOT (complement), AND, OR, NAND, EX-OR, and EX-NOR gates with
NOR gates only. The NOR gate is easier to realize and consumes less power than the
other gates.
[45] Universal Gates

1. NOR as an Inverter operation:


A single input NOR gate behaves like an inverter and it shows a complement
operation. If we apply the same signals to a two-input NOR gate, then either both
inputs are‘0’ or both inputs are ‘1’. In either case, the output is always the complement
of the input. Fig.2.2.1 shows a two-input NOR gate as an Inverter.

2
Input
1
02 Output
3

Fig.2.2.1: NOR as an Inverter.


2. NOR as an OR operation:
An OR operation requires two NOR gate. Fig.2.2.2 shows a two-input NOR
gate as a two-input OR operation. The output of the two-input OR gate is
( Y � A � B � A � B ). Therefore, the combination of two two-inputs NOR gates gives
OR operation. The two inputs of the first NOR gate are A and B. Its output
is (Y ) � A � B . The two inputs to the second NOR gates are tied together and the
output of the first A � B is fed to this common terminal. The second NOR gate
works as an inverter and its output is A+B, thus giving two-input OR operation.

2 5
02 1 02 4 Y
3 6

Fig.2.2.2: NOR as an OR.


3. NOR as an AND operation:
The AND operation is achieved through a NOR gate with additional inverters
on each input.Fig.2.2.3 shows a two-input NOR gates as a two-input AND operation.
The output of the two-input AND gate is ( Y � AB � AB � A . � B ). It implies that, the
combination of three NOR gates gives AND operation. In Fig.2.2.3, the two-inputs of
each of the first two two-input NOR gates are tied together and fed by A and B as
shown. The outputs are A and B. They are fed as inputs to the third two-input NOR
gate. The final output is AB thus giving two-input AND operation.
Experiments in Digital Electronics [46]

Fig.2.2.3: NOR as an AND.


4. NOR as a NAND operation:
Fig.2.2.4 shows a two-input NOR gate as a two-input NAND operation. The
output of two-input NAND gate is ( Y � AB � A � B ). It implies that the combination
of four NOR gates NAND operation. Fig.2.2.3 shows a NOR gate as a NAND. In
Fig.2.2.4, the two-inputs of each of the first two NOR gates are tied together and fed
by A and B. The outputs are A and B. They are fed as inputs to the third NOR gate. The
output is AB, fed as an input to fourth NOR gate. The final output is AB, thus giving
NAND operation.

Fig. 2.2.4: NOR as an NAND


5. NOR as an EX-OR operation:
Fig.2.2.5 shows a two-input NOR gate as EX-OR operation. The output of
EX-OR gate is Y � AB � A B . We can implement the EX-OR gate with minimum of
two input NOR gate as shown in fig. 2.2.5.

Y � A � ( A � B) � B � ( A � B)
[47] Universal Gates

5
4
2 6 02 11 2
1 13 1 Y
3 02 9 12 02 02
10 3
8 02

Fig.2.2.5: Ex-OR gate using minimum numbers of NOR gates.


6. NOR as an EX-NOR operation:
Fig.2.2.6 shows a two-input NOR gate as EX-NOR operation. The output of
EX-NOR gate is Y AB AB AB AB . It is the invert of the EX-OR gate. We can
implement the Ex-NOR gate using minimum number of NOR gates as:

Y A ( A B ) B ( A B) A ( A B) B ( A B)

5
4
6 02
2 11
1 13
3 02 12 02 Y
8
10
9 02

Fig.2.2.6: Ex-NOR gate using minimum number of NOR gate.


Procedure:

(1) Insert the IC 7402 into the IC base of the logic trainer board/breadboard.
Connect +5V supply to pin 14 and ground pin 7.

(2) Construct the different logic gates operation as shown above.

(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) as required.

(4) Connect the output to the LED monitor on the trainer or hookup it to a
LED with the proper current limiting resistor.
Experiments in Digital Electronics [48]

(5) Switch on the trainer/power project board and observe LED output for
various combinations of A and B inputs.
Observations Table:
Truth table for gates using NOR-NOR combinations:

Inputs Output
S.No. A B AND OR NOT A NAND X-OR X-NOR
1 0 0
2 0 1
3 1 0
4 1 1

Result:
Verified the output of the above mentioned gates using NOR gates only.
Precautions:
1. Check all gates in the NOR gates ICs, LED, power supplies in the power
project board/trainer, and hook up single core wire before making use of
it.
2. Do not leave an input floating.
[49]

3. Simplification of Boolean Functions


EXPERIMENT-3.1
Object: To study and verify De-Morgan’s and duality theorem.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), and 7400 (Quadruple 2-
input AND gates) and one 7402 (Quadruple 2-input NOR gates).
Diode: One LED.
Miscellaneous: One Resistor (330 Ω) 0.25watt, Single core wire, Cutter
and stripper.
Brief theory:
De-Morgan’s theorem is one of the most important theorems in Boolean
algebra. Since it formulates the relationship between NOT (AND) and NOT (OR)
functions that allows one type of function to be implemented using a different type of
gate. This is also known as the ‘Law of dualisation’.
1. De-Morgan’s first theorem:
It states that compliment of a sum of variables is equal to the product of their
individual compliment of variable. Boolean expression for the above is B � A � B. A .
This equation means that a NOR function can be implemented by inverting the two
inputs to an AND function. Fig. 3.1.1 shows the logic diagram and truth table for
two-input De-Morgan’s first theorem. This theorem supports the fact that a NOR gate
is the same as inverting the inputs into an AND gate (bubbled AND).

Fig.3.1.1: (a) Logic diagram (b) truth table


Experiments in Digital Electronics [50]

2. De-Morgan’s second theorem:


It states that the complement of a product of variables is equal to the the sum
of their individual variable complements. The Boolean expression for the above is
BA � B � A . This equation means that a NAND function can be implemented by
inverting the two inputs into an OR function. Fig. 3.1.2 shows the logic diagram and
truth table for two-input De-Morgan’s second theorem.
1 2
A 04
1 1
A Y � A.B Y � A � B � A.B
2
00 3
2 32
3
B 3 4
B 04

(i) (ii)
(a)
(b)
Fig.3.1.2: (a) Logic diagram (b) truth table
1. Duality theorem:
It states that if you have a true Boolean equation or expression then the dual of
this equation or expression is true. The dual of a Boolean expression can be replaced
by symbols with their counterparts. This means that 1 is replaced by 0 and 0 is replaced
by 1. With the help of the duality theorem, SOP (sum of product) is converted to POS
(product of sum) and vice-versa. For example, A+1 = 1, by duality A.1 = 0
Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the ICs
on the proper pin.
(2) Construct the abovementioned circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary or you may use 2-bit binary counter with a
debouncing switch as a clock.
(4) Connect the output to the LED monitor on the trainer or hookup it to a
LED with proper current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:
Table: 3.1.1
S.No. Inputs De-Morgan’s first De-Morgan’s second Duality
theorem theorem theorem
A B A� B A. B A.B A. � B A+1=1 A.1 = 0
0 0 0
1 0 1
2 1 0
3 1 1
[51] Simplification of Boolean Functions

Result:
Verified the De-Morgan’s and duality theorems.
Precautions:
1. Check all gates inside the IC before using them in the circuit.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-3.2
Object: To study and verify the Boolean laws.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and Digital
Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter) and one 7421 (Dual 4-input
AND gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
Named after its inventor, George Boole (1954), Boolean algebra defines
constants, variables, and functions to describe binary systems . It describes a number
of theorems that can be used to manipulate logic expressions. Boolean operators are
the codes for the basic logic gates.
Boolean constants consist of 0 and 1. Boolean variables are quantities that can
take different values at different times. They may represent input, output or intermediate
signals and are given names consisting of alphabetic characters such as A, B, C, X or
Y. Boolean variables may only take the values 0 or 1. The following are the commonly
used Boolean laws.
a. Commutative law:
It states that the elements of a function can be arranged in any sequence provided
the connective is the same. Commutative law can also be stated as:’the order in which
terms are ANDed or ORed together is unimportant.Therefore, the OR operation is
commutative.
(i) A + B = B + A
Experiments in Digital Electronics [52]

ORing-the two inputs to OR gate have been interchanged. The output is


the same.

1 4
32 = 32
2 3 5 6

Fig.3.2.1: Logic diagram : Commutative law for OR logic.


The AND operation is commutative.
(ii) A.B = B.A
ANDing- the two inputs to AND gate has been interchanged. The output
is the same.
1 4
08 = 08
2 3 5 6

Fig.3.2.2: Logic diagram : Commutative law for AND logic.


Truth table for commutative law is given in table 3.2.1
Table: 3.2.1
S.No. Inputs Commutative (ORing) Commutative (ANDing)
A B A+B B+A A.B B.A
0 0 0 0 0 0 0
1 0 1 1 1 0 0
2 1 0 1 1 0 0
3 1 1 1 1 1 1
b. Distributive law:
The distributive laws allow the factoring or multiplying of expressions. Two
distributive laws are considered.
(i) A + (B, C) = (A + B) ( A + C )
Figure 3.2.3 illustrates the distributive law. The AND gate gives an output
B.C. These signals, when fed to OR gate along with input A, gives the
output A + (B. C).In the circuit on right hand side, the two OR gates give
the output (A + B) and ( A + C ) respectively. The AND gate gives the
output (A + B). (A + C).
[53] Simplification of Boolean Functions

1 1
A Y=A+BC A 3
2 32 2 32
3 B
1 Y=(A+B).(A+C)
3
08
2
1 4
B 6
08 5 32
2 3 C
C

Fig.3.2.3: Logic diagram : Distributive law (OR over AND).

Truth table for distributive law (i) is given in table 3.2.2.

Table 3.2.2: truth table for distributive law

S.No. Inputs Distributive law (i)


A B C B.C A+B.C A+B A+C (A+B).(A+C)
0 0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 1 0
2 0 1 0 0 0 1 0 0
3 0 1 1 1 1 1 1 1
4 1 0 0 0 1 1 1 1
5 1 0 1 0 1 1 1 1
6 1 1 0 0 1 1 1 1
7 1 1 1 1 1 1 1 1

(ii) A. (B + C) = A .B + A. C

Fig. 3.2.4 illustrates the distributive law. The OR gate gives an output
B + C. This is fed as input to the AND gate along with input A. On the
right hand side, the two AND gates give the output (A. B) and (A. C)
respectively. The OR gate gives the output (A. B) + (A. C).

1 4
08 6
2 3 5 08
4
= 6
1 5 32
32 3 9
2 8
10 08

Fig.3.2.4: Distributive law (AND over OR).


Experiments in Digital Electronics [54]

Truth table for distributive law (ii) is given in table 3.2.3.


Table 3.2.3: truth table for distributive law
S.No. Inputs Distributive law (ii)
A B C B+C A.(B+C) A.B A.C (A.B)+(A.C)
0 0 0 0 0 0 0 0 0
1 0 0 1 1 0 0 0 0
2 0 1 0 1 0 0 0 0
3 0 1 1 1 0 0 0 0
4 1 0 0 0 0 0 0 0
5 1 0 1 1 1 0 1 1
6 1 1 0 1 1 1 0 1
7 1 1 1 1 1 1 1 1
c. Associative law:
This law merely states that in any Boolean function containing elements (A,
B, C etc) separated by the same connective, it does not matter if some of the elements
are considered as a group.
(i) A + B + C = A + (B + C) = (A + B) + C
Fig.3.2.5 shows the associative law for ORing. The inputs to OR gates
have been grouped in two different ways, but the output is the same, i.e.
y = A+B+C.
1 9
8
2 32 3 10 32
4 = 12
5 32 13 32 11
6

Fig.3.2.5: Associative law for OR logic.


Truth table for equation associative law (i) is given in table 3.2.4
Table: 3.2.4
S.No. Inputs Associative law (i)
A B C B+C A+(B+C) A+B (A+B)+C
0 0 0 0 0 0 0 0
1 0 0 1 1 1 0 1
2 0 1 0 1 1 1 1
3 0 1 1 1 1 1 1
4 1 0 0 0 1 1 1
5 1 0 1 1 1 1 1
6 1 1 1 1 1 1 1
7 1 1 1 1 1 1 1
[55] Simplification of Boolean Functions

(ii) A.B.C = A.(B.C) = (A.B).C


Fig.3.2.6 shows the associative law for ANDing. The inputs to AND
gates have been grouped in two different ways without affecting the
output. In each case, the output is y = A.B.C. Y=A.(B.C)
12
A 11
13 08

1 9
A 4 B 8
08 Y=(A.B).C 08
2 3 6 10
B 5 08 C B.C

C Fig.3.2.6: Associative law for AND logic.


Truth table for associative law (ii) is given in table 3.2.2
Table: 3.2.5
S.No. Inputs Associative law (ii)
A B C B.C A.(B.C) A.B (A.B)C
0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 0
2 0 1 0 0 0 0 0
3 0 1 1 1 0 0 0
4 1 0 0 0 0 0 0
5 1 0 1 0 0 0 0
6 1 1 0 0 0 1 0
7 1 1 1 1 1 1 1
d. Absorption law:
This law is extremely important for the elimination of redundant functions in
a system.
(i) A (A + B) = A
Fig.3.2.7 shows the law of absorption. The output is logic 0 when A is 0
and logic 1 when A is 1, irrespective of the state of B.
Y=A.(B+A)
1
A 3
2 08

1
3
2 32
B (A+B)
Fig.3.2.7: Absorption law for OR-AND logic.
Experiments in Digital Electronics [56]

Truth table for absorption law (i) is given in table 3.2.6


Table: 3.2.6
S.No. Inputs Output
A B C A+B A(A+B)
0 0 0 0 0 0
1 0 0 1 0 0
2 0 1 0 1 0
3 0 1 1 1 0
4 1 0 0 1 1
5 1 0 1 1 1
6 1 1 1 1 1
7 1 1 1 1 1
(ii) A + AB = A
Fig.3.2.8 shows the another law of absorption. The output is logic 0
when A is 0 and logic 1 when A is 1, irrespective of the state of B.

1
1 3
B 3 2 32 Y=A+B.C
2 08
C

Fig.3.2.8: Absorption law for AND-OR logic.


Truth table for absorption law (ii) is given in table 3.2.2
Table: 3.2.7

S.No. Inputs output


A B C AB A+(AB)
0 0 0 0 0 0
1 0 0 1 0 0
2 0 1 0 0 0
3 0 1 1 0 0
4 1 0 0 0 1
5 1 0 1 0 1
6 1 1 1 1 1
7 1 1 1 1 1
[57] Simplification of Boolean Functions

e. Idempotent law:
This law states that if a variable is ANDed or ORed with itself any number of
times, the result is always original variable.
(i) A = A.A.A.A......
Fig. 3.2.9 shows the law of idempotent for ANDing. The output is variable
itself, ‘A’ whatsoever, the value of A.
1
A 2 6 Y=A
A
A 4 7421
5
A

Fig.3.2.9: Idempotent law for AND logic.


Truth table for idempotent law (i) is given in table 3.2.8
Table: 3.2.8

Inputs Output
A A A A.A.A
0 0 0 0
1 1 1 1

(ii) A = A + A + A + A + .... ....


Fig.3.2.10 shows the another law of idempotent for ORing. The output
is variable itself ‘A’ whatsoever, the value of A.
1
A A 4
2 32 A 9
A 3 32 Y=A
5 6 10 32
8
A
A
Fig: 3.2.10 Idempotent law for OR logic.
Truth table for idempotent law (ii) is given in table 3.2.9
Table: 3.2.9
Inputs Output
A A A A+A+A
0 0 0 0
1 1 1 1
Experiments in Digital Electronics [58]

f. Complementation law:
This law states that if a function consists of a variable and its inverse, then the
function is a constant.
(i) A.A � 0
Since an AND gate requires both inputs to be logic 1 for a logic 1 output,
it is always logic 0, since A and A can never be logic 1 simultaneously..
This is shown in Fig.3.2.11

Fig.3.2.11: Complementation law for AND logic.


Truth table for complementation law (i) is given in table 3.2.10
Table: 3.2.10

(ii) A � A �1
Since an OR gate requires only one input to be logic 1 for logic 1 output,
either must be 1 at any time, so the result of A � A is always logic 1.
This is shown in Fig.3.2.12.

Fig.3.2.12: Complementation law for OR logic.


Truth table for complementation law (ii) is given in table 3.2.11
Table: 3.2.11
[59] Simplification of Boolean Functions

Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the ICs
on the proper pin.
(2) Construct the abovementioned circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to giving
proper sequence of binary.
(4) Connect the output to the LED monitor on the trainer or hookup it to a
LED with the proper current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit.
(7) Prepare the truth table for each.
Observation Table:
a. Commutative law:
Truth table for commutative law.

Inputs Commutative (ORing) Commutative (ANDing)


Decimal
A B A+B B+A A.B B.A
0 0 0
1 0 1
2 1 0
3 1 1

b. Distributive law:
Truth table for distributive law (i).

Decimal Inputs Distributive law (i)


A B C B.C A+B.C A+B A+C (A+B).(A+C)
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Experiments in Digital Electronics [60]

Truth table for distributive law (ii).

Decimal Inputs Distributive law (ii)


A B C B+C A.(B+C) A.B A.C (A.B)+(A.C)
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1

c. Associative law:
Truth table for associative law (i)

Decimal Inputs Associative


A B C B+C A+(B+C) A+B (A+B)+C
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 1
7 1 1 1

Truth table for associative law (ii)


Decimal Inputs Associative
A B C B.C A.(B.C) A.B (A.B)C
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
[61] Simplification of Boolean Functions

d. Absorption law:
Truth table truth table for absorption law
Decimal Inputs Output
A B C A+B AB A(A+B) A+(AB)
0
1
2
3
4
5
6
7
e. Idempotent law:
Truth table for idempotent law
Inputs Output
A A A A.A.A=A A+A+A=A
0 0 0 0 0
1 1 1 1 1
f. Complementation law:
Truth table for complementation law

Result: Verified the Boolean laws.


Precautions:
1. Check all gates in the ICs before use.
2. Check power supplies of the power project board and single-core wires.
3. Do not leave an input floating.
EXPERIMENT-3.3
Object: Design and verify a circuit with universal gates that implements the Boolean
functions:-
Y1 � AB � CD � SOP form, and
Y2 � ( A � B ).(C � D ) � POS form �Dual of Y1 �
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
Experiments in Digital Electronics [62]

2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), Two 7400 (Quadruple 2-input NAND gates),Two 7402
(Quadruple 2-input NOR gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
Digital circuits are frequently constructed with NAND or NOR gates rather
than with AND and OR gates. Universal gates are easier to fabricate with electronic
components and are the basic gates used in all IC digital logic families. Two-level
implementation of the above given Boolean function are:
(i) SOP function:
If the Boolean function is in the form of a sum of product (SOP), then consider
the given logic function in the sum of product form; Y1 � AB � CD .This function can
be implemented with (a) AND and OR gates, (b) NAND-NAND, and (c) NOR-NOR
as shown in Fig.3.3.1. In (b) AND and OR gates are replaced by NAND gates with an
OR-invert graphic symbol (bubbled OR). Similarly in (c) AND and OR gates are
replaced by NOR gates. Therefore, the given SOP equation is implemented by universal
gates only, but a minimum number of gates/IC is required in NAND-NAND
implementation.
1 1
A 3 A 3
2 08 2 00
B 1 Y=AB+CD B 4 Y=AB+CD
2 32 5 00
4 3 9 6
C C
5 08 10 00
D 6 D 8

IC 7408 used : 01, IC 7432 used : 01 IC 7400 used : 01


(a) (b)
2
1
A 3 02
8
10
9 02
5
4
B 6 02
11 Y=AB+CD
12 02
5 13
4
C 6 02
2
1
3 02
8
IC 7402 used : 02
D 9 08
10
(C)
Fig.3.3.1: Two level implementation of SOP form.
[63] Simplification of Boolean Functions

(ii) POS function:


If the Boolean function in product sum of (POS) form. Consider the given
logic function in POS form; Y2 � ( A � B).(C � D) .This function can be implemented
with (a) OR and AND gates, (b) NAND-NAND, and (c) NOR-NOR, as shown in
Fig.3.3.2. In (b) the AND gates are replaced by NAND gates and the OR gates by
NAND gates with an OR-invert graphic symbol (bubbled OR), similarly in (c) the OR
gates and the AND gates by NOR gates and the OR gates.
Remember that a bubble denotes complementation and two bubbles along the
same line represent double complementation, so both can be removed. Therefore, the
given POS equation is implemented by universal gates only, but minimum number of
gates/IC is required for NOR-NOR implementation.
1
3
1 A 00
A 3 1
32 2 3
2
B 1 Y=(A+B).(C+D) 2 00
4
2 08 6
4 3 B 00
C 9
32 5 Y=(A+B).(C+D)
5 6 00
D 10
9 8
IC 7432 used : 01, IC 7408 used : 01, OR gate used : 02, ANDgate used : 01
C 00
(a) 8 4
10 6
2 00
A 1 5
02 12
3 11
B 8
Y=(A+B).(C+D) D 00
02 IC 7400 used : 02, NAND gate used : 07
9 13
5 10
C
02 (b)
6
D 4

IC 7402 used : 01, NOR gate used : 03


(c)

Fig.3.3.2: Two level implementation of POS form.


Procedure:
(1) Insert the ICs in the proper place on breadboard. Connect the power
supply to the ICs on the proper pin.
(2) Construct the abovementioned circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to giving
proper sequence of binary.
(4) Connect the output to the LED monitor on the trainer or hookup it to a
LED with proper value of current limiting resistor.
(5) Turn on the trainer/power project board.
Experiments in Digital Electronics [64]

(6) Check the output of each circuit.


(7) Prepare the truth table for each.
Observation Table:
Truth table for SOP/ POS form.
In pu ts Outputs (S OP fo rm ) O utputs ( PO S form )
S.No. A B C D AN D- NAN D-N ANDNOR -NO R OR - N OR- NOR NAND-
OR AND NA ND
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Result: Verified the output of Boolean functions using different implementations (SOP
and POS form).
Precautions:
(1) Check all gates in the ICs before using them.
(2) Check power supplies of the power project board.
(3) Do not leave an input floating.
[65]

4. Combinational Logic Circuits-Arithmetic Circuits


EXPERIMENT-4.1
Object: Design and verify the operation of a half-adder circuit using a minimum
numbers of gates.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), One 7400 (Quadruple 2-
input NAND gates),One 7402 (Quadruple 2-input NOR gates), One 7486
( Quadruple 2-input EX-OR gates).
Diode: Two LED

Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
A half adder is a circuit that has two inputs, A and B, and two outputs, sum and
carry. It is a combinational circuit that performs the addition of two bits according to
the rules for binary addition. The input variables designate the augends and addend
bit; the output variables produce the sum and carry them. Applications of half-adders
are very limited because they can not accept a carry from a previous addition. The
block diagram and truth table for a half-adder are shown in Fig.4.1.1.

Inputs Outputs
S.No. A B C S
(Augends) (Addend) (Carry) (Sum)
A Sum 1 0 0 0 0
2 0 1 0 1
3 1 0 0 1
B Carry
4 1 1 1 0

Fig.4.1.1: half adder (a) block diagram and (b) truth table
Experiments in Digital Electronics [66]

From the truth table, it is clear that the sum (S) output is identical to the
EX-OR gate output and the carry (C) output is identical to the AND gate output.
Hence, the expressions of sum and carry are:
S � AB � AB
C = AB
The products of sum expressions are:

S � � A � B � .� A � B �
C = A + B {k - map simplification}
The more complicated the expression, the more complex is the gate network.
It is, therefore, best to simplify an expression as much as possible to get the simplest
gate network. There are two standard or canonical forms used to express any
combination of logic network: the sum-of-products (SOP) form and the product-of-
sum (POS) form.
In this experiment, the SOP form was taken to implement the logic diagram
for the half-adder circuit. There are different ways to implement the logic diagram for
the half-adder circuit. Some of them are:
(i) Using Ex-OR gate and AND gate;
1
3
2 86 (Sum)

1
3
2 08 (Carry)

Fig. 4.1.2: Logic diagram of a half adder using Ex-OR and AND.
(ii) Using AND,OR and NOT gate;

1
A
3
2
08
B 1
3
2 32 S (Sum)

4
6
5 08
9
8
10
08 C (Carry)

Fig. 4.1.3: Logic diagram of a half adder using basic gates.


[67] Combinational Logic Circuits-Arithmetic Circuits

(iii) Using NAND-NAND gates;

S � AB � AB � AB � AB � A A � B B � A( AB) � B( AB) � A( AB) � B( AB)

� A( AB).B( AB)
C � AB
4
6
5 00
12
1 11
00 3 00 (Sum)
2 9 13
10 00 8
1
3 (Carry)
2 00
Fig. 4.1.4: Logic diagram of a half adder using only NAND gates.
(iv) Using NOR-NOR gates.

S � AB � AB � AB � AB � A A � BB � ( A � B).(A � B) � ( A � B) � ( A � B)
C � AB � A � B 2
1
3 02 3
1 2 02 SUM

5
A 02
6 4
11

12 02 CARRY
13
8
B 02
10
9

Fig. 4.1.5: Logic diagram of a half adder using only NOR gates.
Observing the above logic circuits, a minimum number of gates are required
to implement the half-adder circuit, when using only universal gates,
Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to giving
proper sequence of binary.
Experiments in Digital Electronics [68]

(4) Connect the LEDs to the sum and carry outputs, or hookup them to a
LED with a current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:
Inputs Outputs
S.No. A B C S
(Augends) (Addend) (Carry) (Sum)
1 0 0
2 0 1
3 1 0
4 1 1
Result: Verified the above half adder circuits.
Precautions:
1. Check all gates in the ICs before making them used in the logic circuits.
2. Be sure about the pin out diagram of the IC.
3. Check power supplies of the power project board.
4. Do not leave an input floating.
EXPERIMENT-4.2
Object: Design and verify the operation of a full-adder circuit using a minimum number
of gates.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), Two 7400 (Quadruple 2-
input NAND gates),Two 7402 (Quadruple 2-input NOR gates), One 7486
(Quadruple 2-input EX-OR gates) and One 7411 (Triple 3-input AND gates).
Diode: Two LED
Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
Whereas the half adder added two inputs, A and B, the full adder adds three
inputs together, A, B, and a carry from a previous addition, and outputs a sum and
carry. A full adder is a combinational circuit that performs the arithmetic sum of three
[69] Combinational Logic Circuits-Arithmetic Circuits

bits. It consists of three inputs and two outputs. Three inputs mean two significant bits
and a previous carry and two outputs are sum and carry. The truth table follows the
rules for binary addition. The block diagram and truth table for a full adder are shown
in Fig.4.2.1.
Inputs Outputs
Decimal Cin B A Cout S
(input carry) (Addend) (Augends) (outputc arry)
(Sum)

0 0 0 0 0 0
A Sum 1 0 0 1 0 1
2 0 1 0 0 1
B 3 0 1 1 1 0
C in Carry
4 1 0 0 0 1
Out 5 1 0 1 1 0
6 1 1 0 1 0
7 1 1 1 1 1

Fig.4.2.1: full adder (a) block diagram and (b) truth table
Using k-map simplification techniques for SOP form, the simplified expression
for sum and carry outputs are;

S � Cin B A � C in B A � Cin B A � Cin BA � Cin � B � A


C � Cin B � Cin A � BA
The logic diagram of the full adder is implemented in the following way:
(i) Using EX-OR gates and Basic gates.

S � Cin � B � A
C � Cin BA� Cin BA � Cin BA � Cin AB
� BA� Cin � A � B�
1
34
2 86
5 86 6

1 08 3 1
2
2 32 3
4
08
5 6
Fig. 4.2.2: Logic diagram of a full adder using EX-OR, AND and OR.
(ii) Using basic gates.

S � Cin B A � C in B A � Cin B A � Cin BA


C � Cin B � Cin A � BA
Experiments in Digital Electronics [70]
Cin B A

5 3 1

6 4 2

1
2 12
13
11
1
32
3 3
2
4 6
5
11
9
SUM(S)
32
9 10 8
10 8
11
11
4
32
1 6
12 5
2
11
13

1
3
2 08
8
13 1
12 32
4 2 32
6 3
5 08

9
8
10 08

Fig. 4.2.3: Logic diagram of a full adder using basic gates


(iii) Using two inputs NAND-NAND combinations;

S � Cin � B � A � X � A � X XA . A XA {where X � Cin � B }


Cout � Cin B � Cin A � BA � (Cin B � Cin A ) � BA � (Cin B � Cin A) .BA
� (Cin B.Cin A) .BA {using K � map}
Cout � C in BA � Cin B A � Cin B A � Cin BA
� A( Cin � B ) � Cin B {using Boolean laws)
� A( Cin � B ) � Cin B � A( Cin � B).Cin B � AX .Cin B
4 00 6 4 00 6
5 12 12
1 11 1 5 11
Cin 3 00 00
00 3
B 00 13
2 9 13 9
2
10 00 8 00 8
10
A 1 3
2 00
Fig. 4.2.4: Logic diagram of a full adder using only NAND gates.
(iv) Using only two-input NOR-NOR gates.

S Cin B A X A (X A) (A X) {where X Cin B}


Cout C in BA Cin BA Cin B A Cin BA
A( Cin B ) Cin B {using Boolean laws)

AX Cin B (A X ) (C in B)
[71] Combinational Logic Circuits-Arithmetic Circuits

11
5 4
6 02 02
5 5 42 13
4 02 1 12
6 02 13 3 02
11 02 6
1
Cin 1 12 2 02 8 02 10
2 02 11 02 13
B 3 9
3 8 12 8 10
02 02
10 9
9
A

Fig. 4.2.5: Logic diagram of a full adder using only NOR gates.
Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to giving
proper sequence of binary.
(4) Connect the LEDs to the sum and carry outputs, or connect them to a
LED with a current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:

Inputs Outputs
S.No. Cin B A Cout S
(input carry) (Addend) (Augends) (Carry) (Sum)

0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1

Result: Verified the full adder circuits.


Experiments in Digital Electronics [72]

Precautions:
1. Check all gates used in the logic circuits.
2. Check power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-4.3
Object: To study the 4-bit full adder IC7483 and verifiy its operation.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7483
Diode: Four LEDs

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper

Brief theory:
Fig.4.3.1 shows the 4-bit full adder IC 7483, which is classified as a Medium
Scale Integration, TTL circuit with four full-adders. Table 4.3.1 lists some of the
available 4-bit full adder ICs.
Table 4.3.1: Medium Scale Integration Adder Circuits

Device No. Family Description


7483 TTL 4-bit binary adder with fast carry, output: TP
74C83 CMOS 4-bit binary adder with fast carry
4008 CMOS 4-bit full adder with fast carry

Fig.4.3.1 (a) shows the pin assignment of IC 7483 and (b) the function table
specifies the circuit operation. The IC 7483 is a 4- bit binary parallel adder having
eleven inputs (8-pins for two 4-bit addition,2-pins for power supply, and 1-pin for
carry input) and five outputs (4-pins for sum and 1-pin for carry out) dual in package.
Here the two 4-bit input binary numbers are A (A1 through A4) and B (B1 through B4).
The four bit sum is obtained from S (S1 through S4). C0 , C4 are the input carry and the
carry output.
[73] Combinational Logic Circuits-Arithmetic Circuits

Inputs Outputs
Data A Data B Addition
C0 A4 A3 A2 A1 B4 B3 B2 B1 C4 S4 S3 S2 S1
1 0 0 0 0 0 0 0 0 0 0 0 0 1
0 1 0 0 0 0 0 1 0 0 1 0 1 0
0 1 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 1 0 1 0 0 0 0 1 0 1 0
0 0 0 0 1 0 1 1 1 0 1 0 0 0
0 1 0 1 0 1 0 1 1 1 0 1 0 1
0 0 1 1 0 0 0 1 1 0 1 0 0 1
0 1 1 1 0 1 1 1 1 1 1 1 0 1
0 1 0 1 0 1 1 0 1 1 0 1 1 1

(a) (b)
Fig.4.3.1: IC 7483 (a) pinout diagram, (b) the functional table
The IC 7483 can add 4-bits (nibbles). To add bytes, we need to use two 7483s
as cascading (the carry out of the lower IC7483, is used as the carry in to the upper
IC7483). This allows the two 7483s to add 8-bit numbers.
It can be constructed with the help of four full adders which are connected in
cascaded, with the output carry from each full adder connected to the input carry of
the next full adder in the chain. Writing a truth table for nine inputs creates a table of
512 lines (29). The truth table shown has been reduced to 16 lines. The note below the
truth table explains that the table is used in two steps.A1, B1, A2, B2, and C0 determine
the outputs S1, S2 and C4 that are internal to the IC.C2 is then used with A3, B3, A4, and
B4 to determine S1, and C4.

output
When C0 = 0 When C0 = 1
Input
when C 2= 0 when C2 = 1

B2 A2 B1 A1 C2 S2 S1 C2 S2 S1

B4 A4 B3 A3 C4 S4 S3 C4
S4 S3
0 0 0 0 0 0 0 0 0 1
0 0 0 1 0 0 1 0 1 0
0 0 1 0 0 0 1 0 1 0
0 0 1 1 0 1 0 0 1 1
0 1 0 0 0 1 0 0 1 1
0 1 0 1 0 1 1 1 0 0
0 1 1 0 0 1 1 1 0 0
0 1 1 1 1 0 0 1 0 1
1 0 0 0 0 1 0 0 1 1
1 0 0 1 0 1 1 1 0 0
1 0 1 0 0 1 1 1 0 0
1 0 1 1 1 0 0 1 0 1
1 1 0 0 1 0 0 1 0 1
1 1 0 1 1 0 1 1 1 0
1 1 1 0 1 0 1 1 1 0
1 1 1 1 1 1 0 1 1 1
Experiments in Digital Electronics [74]

Note: input conditions at A1, B1, A2, B2 and C0 are used to determine outputs S1 and S2
and the value of the internal carry C2. The values at C2, A3, B3, A4 and B4 are
then used to determine outputs S3, S4, and C4.
Procedure:
(1) Insert IC 7483 on the logic trainer board. Connect the power supply to
the proper pin of the chip and carry input to logic ‘0’.
(2) Connect the LEDs to the sum and carry outputs with current limiting
resistor.
(3) Connect inputs of the gate to the switch provided on the trainer/board or
hook them up to the +5V supply (logic 1) or ground (logic 0) as required.
(4) Vary these inputs from 0000 to 1111 and observe LED outputs at sums
and carry out.
(5) Prepare the truth table.
Observation Table:

Decimal
Inputs outputs
C0 A4 A3 A2 A1 B4 B3 B2 B1 C4 S4 S3 S2 S1

Result: Verified the 4-bit parallel adder using an IC.


Precautions:
1. Check all the full adder's outputs before giving inputs.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
[75] Combinational Logic Circuits-Arithmetic Circuits

EXPERIMENT-4.4
Object: Design and verify the operation of BCD adder using IC 7483 and basic gates.

Equipment/Components required:

1. Equipment: Power Project board and Digital Multimeter.

2. Components:

ICs: Two 7483 (4 bit parallel adder) ,One 7408 (Quadruple 2-input AND
gates), One 7432 (Quadruple 2-input OR gates).

Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper

Brief theory:

BCD (Binary-Coded-Decimal) uses four bits to represent a decimal number,


as shown in Fig.4.4.1. Although valid BCD numbers must stop at nine, there are six
more counts before all four columns are full. These six steps are not valid BCD numbers.
In BCD addition, care must be taken to compensate for these six invalid states. If
overflow occurs during an addition, or if one of the invalid states occurs as result of
an addition, then six must be added to the result to flip through the unwanted states.

It is a decimal adder. Computers or calculators that perform arithmetic


operations directly in the decimal number system represent decimal numbers in Binary
Coded Decimal form (BCD). An adder for such a computer must employ arithmetic
circuits that accept coded decimal numbers and present results in the same code. A
decimal adder requires a minimum of nine inputs and five outputs, since four bits are
required to code each decimal digit and the circuit must have an input and output
carry.

Consider the arithmetic addition of two decimal digits to BCD, together with
an input carried from a previous stage. Since each input digit does not exceed 9, the
output sum can’t be greater than 9+9+1=19, the 1 in the sum being an input carry.
Suppose we apply the two BCD digits to a 4-bit binary adder. The adder will form the
sum in binary and produce a result that ranges from 0 through 19.These are binary
numbers that are listed in table 4.4.1 and are labeled by symbols Cin, S3, S2, S1, and S0.
The Cin is the input carry, and the subscripts under the letter S represent the weights 8,
4, 2, and 1 that can be assigned to the four bits in the BCD code.
Experiments in Digital Electronics [76]

Table 4.4.1
Binary Sum BCD Su m
S.No. Cin S3 S2 S1 S0 C S8 S4 S2 S1 decimal
1 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 1 0 0 0 0 1 1
3 0 0 0 1 0 0 0 0 1 0 2
4 0 0 0 1 1 0 0 0 1 1 3
5 0 0 1 0 0 0 0 1 0 0 4
6 0 0 1 0 1 0 0 1 0 1 5
7 0 0 1 1 0 0 0 1 1 0 6
8 0 0 1 1 1 0 0 1 1 1 7
9 0 1 0 0 0 0 1 0 0 0 8
10 0 1 0 0 1 0 1 0 0 1 9
11 0 1 0 1 0 1 0 0 0 0 10
12 0 1 0 1 1 1 0 0 0 1 11
13 0 1 1 0 0 1 0 0 1 0 12
14 0 1 1 0 1 1 0 0 1 1 13
15 0 1 1 1 0 1 0 1 0 0 14
16 0 1 1 1 1 1 0 1 0 1 15
17 1 0 0 0 0 1 0 1 1 0 16
18 1 0 0 0 1 1 0 1 1 1 17
19 1 0 0 1 0 1 1 0 0 0 18
20 1 0 0 1 1 1 1 0 0 1 19
The columns under the binary sum list the binary value that appears in the
outputs of the 4-bit binary adder. The output sum of two decimal digits must be
represented in BCD and should appear in the form listed in the column under BCD
sum. The problem is to find a rule by which the binary sum is converted to the corrected
BCD digit representation of the number in the BCD sum.
In examining the contents of the table, it is apparent that when the binary sum
is equal to or less than 1001, the corresponding BCD number is identical and therefore
no conversion is needed. When the binary sum is greater than 1001, we obtain a non-
valid BCD representation. The addition of binary 6 (0110) to the binary sum converts
it to the correct BCD representation and also produces an output carry as required.
Logic Circuit: It is obvious that a correction is needed when the binary sum has an
output carry (Cout) =1.The other six combinations from 1010 through 1111
that need a correction have a 1 in position S8, we specify further that either S 4
or S2 must have a 1.The condition for a correction and an output carry can be
expressed by the Boolean function Z = S1S3 + S2S3 + Cout .When Z = 1, it is
necessary to add 0110 to the binary sum and provide an output carry for the
next stage.
[77] Combinational Logic Circuits-Arithmetic Circuits

B3 B2 B1 B0 A3 A2 A1 A0

7483-1

1
4 1 3 08
6 3 2
32
5 2 6 4
08
5

7483-2

Fig.4.4.1: Logic diagram of BCD adder using IC 7483 and basic gates
Procedure:
(1) Insert ICs on the logic trainer board. Connect the power supply to the
proper pin of the chip and carry input to logic ‘0’.
(2) Connect the power supply to the proper pin of the chip.
(3) Connect the LEDs to the sum and carry outputs with a current limiting
resistor.
(4) Connect the inputs of the gate to the switch provided on the trainer/
board or hook them up to the +5V supply (logic 1) or ground (logic 0) as
required.
(5) Vary these inputs from 0000 to 1111 and observe LED outputs at sums
and carry out.
(6) Prepare the truth table.
Experiments in Digital Electronics [78]

Observation Table:
S.No. Inputs Outputs
Cin A3 A2 A1 A0 B3 B2 B1 B0 Cout S3 S2 S1 S0

Result: Verified the BCD adder circuit.


Precautions:
1. Check all full adders inside the 7483 IC before giving them to inputs.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-4.5
Object: Design and verify the operation of half-subtraction circuits with a minimum
number of gates.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), Two 7400 (Quadruple 2-
input NAND gates), Two 7402 (Quadruple 2-input NOR gates), One
7486 (Quadruple 2-input EX-OR gates).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
Half subtraction a combinational circuits that subtracts two binary bits and
produces two outputs, difference (D) and borrow (B). It subtracts the LSB of the
[79] Combinational Logic Circuits-Arithmetic Circuits

subtrahend from the LSB of the minuend. The truth table follows the rules for binary
subtraction. The block diagram and truth table for a half subtraction are shown in
Fig.4.5.1.
Inputs Outputs
S.No. A B D B
(Minuend) (Subtrahend) (Difference) (Bo rrow)
1 0 0 0 0
2 0 1 1 1
3 1 0 1 0
4 1 1 0 0
Fig.4.5.1: half subtractor (a) block diagram and (b) truth table
The sum of products expressions for difference and borrow outputs are:
D � AB � AB
B � AB
The logic diagram of the half subtraction is implemented with following ways:
a. X-OR gate and AND, and NOT gate;

1
A 3
2 86 Diff
B

1 2 1
3
2 Borrow

Fig. 4.5.2: Logic diagram of a half subtractor using Ex-OR, AND, and NOT.
b. AND, OR and NOT gate;

Fig. 4.5.3: Logic diagram of a half subtractor using basic gates.


Experiments in Digital Electronics [80]

c. NAND-NAND gates;

S � AB � AB � AB � AB � AA � B B � A( AB) � B( AB) � A( AB) � B( AB)

� A( AB).B( AB)
C � A B � A B � BB � B�A � B �

� � � �
� B AB � B. AB
4
6
1 5 00 12
00 3 11
00 D
2 9
8 13
10 00
1
3
B 00
2
Fig. 4.5.4: Logic diagram of a half subtractor using only NAND gates.
d. NOR-NOR gates.

D � B � � A � B � � A � �A � B �
B � A B � AA � A � A � B � � A � � A � B �
5
B 4
6 02
11
2 2
1
3 02 12 02 02
13 1
3
8
02
A 10
9

Fig. 4.5.5: Logic diagram of a half subtractor using NOR gate.


Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to giving
proper sequence of binary or you may use 2-bit binary up counter with
de bounce switch as a clock.
[81] Combinational Logic Circuits-Arithmetic Circuits

(4)
Connect the LEDs to the sum and carry outputs, or hookup them to a
LED with current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:
Inputs Outputs
S.No. A B D B
(Minuend) (Subtrahend) (Difference) (Borrow)
1 0 0
2 0 1
3 1 0
4 1 1
Result: Verified the half-subtractor circuits.
Precautions:
1. Check all gates in the ICs before using them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-4.6
Object: Design, construct and verify Full Subtraction circuits with a minimum number
of gates.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: Two 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), Three 7400 (Quadruple 2-
input NAND gates), Three 7402 (Quadruple 2-input NOR gates), One
7486 (Quadruple 2-input EX-OR gates).
Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
Full subtraction is a combinational circuit that performs a subtraction of two
bits, taking into account borrowing form the lower significant stage. This circuit has
three inputs named minuend (A), subtrahend (B), and previous borrow (bin) and two
outputs, called difference (D) and a borrow (B). The truth table follows the rules for
Experiments in Digital Electronics [82]

binary subtraction. The block diagram and truth table for a full subtraction are shown
in Fig.4.6.1. Inputs Outputs

(input borrow)
S.No.

(difference)
(subtrahend)
(minuend)

(Borrow)
A

bi
B

B
0 0 0 0 0 0
1 0 0 1 1 1
A 2 0 1 0 1 1
D
B Full Subtractor 3 0 1 1 0 1
bin B
4 1 0 0 1 0
(a) 5 1 0 1 0 0
6 1 1 0 0 0
7 1 1 1 1 1

(b)
Fig.4.6.1: full subtractor (a) block diagram and (b) truth table
Using k-map simplification techniques, the simplified expression for difference
and borrow outputs are;
D � A Bbin � C in B A � A Bbin � AB bin � A � B � bin
B � Abin � AB � Bbin {Using K � map}
B � bin ( A � B ) � AB {Using Boolean laws}
The logic diagram of the full subtractor is implemented in the following way:
a. Using EX-OR gates and NAND gate.
D � A Bbin � C in B A � A Bbin � ABbin � A � B � bin
B � bin ( A � B ) � AB {Using Boolean laws}

B � bin ( A � B ) � AB � bin ( A � B). AB


1
A 3
86
2 4
B 86 Difference
6
5
bin

1
3 4
2 00 6
5 00

1
3
2 00 Borrow

9
8 12
00 11
10
13 00

Fig. 4.6.2: Logic diagram of a full subtractor using Ex-OR and NAND gate.
[83] Combinational Logic Circuits-Arithmetic Circuits

b. Using basic gates.


D � A Bb in � b in B A � A Bbin � ABb in � A � B � bin
B � Abin � AB � Bbin {Using K � map}

bin B A

04 04

08
08
32
08
08
Difference
32
08
08

32
08
08

32
32

Fig. 4.6.3: Logic diagram of a full subtractor using basic gates.


c. Using two half subtraction and OR gate.

A Half Half Difference


Subtractor Subtractor
1
B 1 2 3
32 Borrow
2
bin

Fig. 4.6.4: Logic diagram of a full subtractor using two half subtract and OR gate
Experiments in Digital Electronics [84]

d. Using two inputs NAND-NAND combinations;

4
bin 6 4
00 6
1 11 5 00
3 5 1 12
2 00 12 00 3
9 13 2 00 00 Difference
13 11
9
00 8
B 8 00
10 10

A 1
3
2 00 Borrow

IC 7400 used : 3, NAND gate used : 9

Fig. 4.6.5: Logic diagram of a full subtractor using NAND gate


e. Using only two-input NOR-NOR gates.

D � AB � A B � A B � B B � AB � A A � B( A � B) � A ( A � B )

D � B( A � B) � A ( A � B) � B � ( A � B) � A � ( A � B)

D � B � ( A � B) � A � ( A � B)

B � AB � A A � A ( A � B ) � A � ( A � B )

5
bin 4 2
02 1 5 4
6
2 3 02 02 Difference
11 2
1 13 1 6
02 02 02 8 10
3 12 3 02
8 9
8
5 10 11 13
9 02 02 02 02 Borrow
B 10 6 9
4 12
11 13
12 02
A

IC 7402 used : 3, NOR gate used : 12

Fig. 4.6.6: Logic diagram of a full subtractor using NOR gate


Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.
[85] Combinational Logic Circuits-Arithmetic Circuits

(4) Connect the LEDs to the sum and carry outputs. Or hookup them to a
LED with a current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:

Inputs Outputs
Decimal A B bin D B
(minuend) (subtrahend) (input (difference) (Borrow)
borrow)
0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Result: Verified the full subtractor logic circuits.
Precautions:
1. Check all gates inside the ICs before using them in other logic circuits.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-4.7
Object: Design, construct, and verify the operations of 1’s complement adder/subtractor
circuit.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7483 (4-bit binary adder with fast carry), One 7408 (Quadruple
2-input AND gate), 7404 (Hex-inverter) Two7486. ( Quadruple 2-input
EX-OR gates).
Diode: Five LEDs.
Experiments in Digital Electronics [86]

Miscellaneous: Five Resistors � 330 � � 0.25watt, Single core wire, Cutter


and stripper

Brief theory:

1’s complement addition/subtraction circuit:

The subtraction of two binary numbers may be achieved by taking the 1’s
complement of the subtrahend and then adding it to the minuend. To form the 1’s
complement of a number, take the 1’s complement of binary number, simply change
each bit. The 1’s complement of 1 is 0 and vice-versa.

Design a circuit that will use a IC 7483 to add the 4-bit numbers B3, B2, B1,
and B0 to the four bit binary numbers A3, A2, A1, A0 and subtract B3, B2, B1, and B0
from A3, A2, A1, A0. Use the 1’s complement methods for subtraction.

To use the IC7483 4-bit full adder as a 1’s complement adder/subtractor, the
following must be considered.

1. Fig. 4.7.1 shows a controlled inverter. Leave the numbers B3, B2, B1, and
B0 unaltered for an addition problem, but take the 1’s complement for a
subtraction problem. An EX-OR invert data (1’s complement) when the
control input is high. EX-OR gates will be used to invert B3, B2, B1, and
B0 for subtraction. A control signal is needed that will be 1 for subtraction
and 0 for addition. A3, A2, A1, A0 will be fed directly into the IC 7483

Fig. 4.7.1: 4 -bit controlled inverter


[87] Combinational Logic Circuits-Arithmetic Circuits

2. If the problem is subtraction, and if there is overflow (Cout), perform an


EAC (end-around carry). To detect when subtraction and overflow occur,
AND the control line with Cout . The output of the AND gate number 1 is
1 when an EAC results. But in this case, the output of AND gate number
1 can be fed directly into Cin.

3. If the problem is subtraction and if there is no carry (Cout), indicate the


answer is negative and take the 1’s complement of the result to obtain
the true magnitude of the answer. If Cout is invalid then an AND gate can
be used to detect when a subtraction process is to be performed and
when Cout is 0. The control input and Cout, are fed into AND gate number
2.A high output indicates a subtraction problem is being performed, and
the answer is negative. This signal could be used to light an LED to
indicate the answer is negative.

Fig.4.7.2 shows the function table for 1’s complement adder/subtractor.


When the control-1 (first controlled inverter) input is ‘0’ we can use the
diagram as an adder, or if it is ‘1’, it can use as subtraction. The 1’s
complement method for subtraction i.e. if there is a carry (called
overflow), known as EAC (end around carry), add it to the LSB of sum
(or fed directly into Cin) or if there no carry, indicate the negative answer
with 1’s complement of the result. Table 4.7.1 summarizes the techniques
to draw the design to implement of 1’s complement addition/subtraction
circuit with the help of controlled inverter.

Table 4.7.1: Function table for 1's complement addition/subtraction circuits

C ontrol-1 7483 C ontr ol-2 S ign bit


Op eration 0 = +ve R em ar k
C1 C ou t C in C2 1 = -ve

add 0 0 0 0 0
0 1 0 0 0 Ov erflo w(n eed o ne m ore b it)

subtract 1 0 0 1 1 No carry, ans wer is -ve with


1’s co mp le men t of s um.
1 1 1 0 0 Wh en carr y, an swer is +v e,
add carry to LSB of su m.
(a )
Simplified expression for Cin and C2 of above table:

C in � C1 .C out
C 2 � C1 . C out
Experiments in Digital Electronics [88]

Control � 1�C1 � B3 B2 B1 B0

0=Addition
1=Subtraction 1 2 4 5 9 10 12 13
14 VCC
7486-1
7 GND
A3 A2 A1 A 0 11 8 6 3

1 1 3 8 10 16 4 7 11
1 3 Cin �14� 5 VCC
2 7483
Cout �13� 12 GND
15 2 6 9

1 4 S3 S2 S1 S0
2 6
Control � 2 �C2 �
2
5 3
1 4 9 12 2 5 10 13
4 14 VCC
7486-2
7 GND
330 � 11 8 6 3

+5V
S3 S2 S1 S0
LED on : Negative answer to subtraction True Magnitude sum outputs

Fig.4.7.2: 1’s complement adder/subtractor Logic circuit


Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.
(4) Connect the LEDs to the sum and carry outputs, or hookup them to a
LED with current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
[89] Combinational Logic Circuits-Arithmetic Circuits

Observation Table:

1. 1’s complement method

S.No. Inputs outputs


Control-1 A3 A2 A1 A0 B3 B2 B1 B0 Sign S3 S2 S1 S0
bit

Result: Verified the operations of 1’s compliment adder/subtractor circuit.

Precautions:

1. Check all gates in the ICs before using them.

2. Check the power supplies of the power project board.

3. Do not leave an input floating.

EXPERIMENT-4.8
Object: Design, construct and verify the operations of 2’s complement adder/
subtraction circuits.

Equipment/Components required:

1. Equipment: Power Project board and Digital Multimeter.


Experiments in Digital Electronics [90]

2. Components:

ICs: Two 7483 (4-bit binary adder with fast carry), One 7408 (Quadruple
2-input AND gate), 7404 (Hex-inverter), Two7486.( Quadruple 2-input
EX-OR gates).
Diode: Five LEDs.

Miscellaneous: Five Resistors � 330 � � 0.25watt, Single core wire, Cutter


and stripper

Brief theory:

2’s complement addition/subtraction circuit:

The subtraction of the two binary numbers can be done by the following steps:

(a) take the 2’s complement of the subtrahend.

(b) add it to the minute.

To find the 2’s complement of a number, first take its 1’s complement and
then add 1 to it.

Design a circuit that will use an IC 7483 to add the 4-bit numbers B3, B2, B1,
and B0 to the four bit binary numbers A3, A2, A1, A0 and subtract B3, B2, B1, and B0
from A3, A2, A1, A0. Use the 2’s complement method for subtraction.

To use the IC7483 4-bit full adder as a 2’s complement adder/subtractor, the
following steps must be considered

a. Leave the numbers B3, B2, B1, and B0 unaltered for an addition problem,
but take the 2’s complement for a subtraction problem. The 2’s
complement can be formed by taking the 1’s complement and adding 1.
The 1’s complement can be formed by using Ex-OR gates as we did in
the 1’s complement subtractor. 1 can be added to form the 2’s complement
by writing the control signal directly to Cin1.

b. If the problem is subtraction and if there is no overflow (Cout),indicate


the answer is negative and take the 2’s complement of the result to obtain
the true magnitude of the answer. As in the 1’s complement subtractuion
circuit, the inverted output of Cout ANDed with the first control signal
C1. A high AND gate indicates that a subtraction problem is being
[91] Combinational Logic Circuits-Arithmetic Circuits

performed and the answer is negative. This signal will be inverted to


drive an LED in the active low mode. The 1’s complement can be formed
by EX-ORing the results with the output of the AND gate. To add 1 to
form the 2’s complement, another IC 7483 must be used. The output of
the AND can be fed directly into Cin2 of 7483-2 to complete the 2’s
complement process. The true magnitude outputs appear at S3,S2,S1, and
S0 of 7483-2.

c. If the problem is subtraction and if there is overflow (Cout1), do not take


the 2’s complement of the result from 7483-1. The answer is already in
true magnitude form and should not be altered by the following circuitary.

Fig.4.8.1 shows the (a) function table and (b) logic diagram for 2’s
complement adder/subtractor. When the control-1(first controlled
inverter) input is ‘0’ we can use the diagram as an adder, or if it is ‘1’ it
can use as a subtraction. Table 4.8.1 summarizes the techniques used to
draw design implementation of 2’s complement adder/subtraction circuit
with the help of the above mentioned points.

Table 4.8.1: Function table for 2’s complement adder/subtraction circuit

Control-1 7483 Control-2 7483 Sig n bit Remark


Operation 0 = +ve
C1 C out Cin �1 C2 Cin �2 1 = -ve

add 0 0 0 0 0 0
0 1 0 0 0 0 Overflow(need one
more bit
subtract 1 0 1 1 1 1 No carry, answer
will be -ve with 2’s
complement.
1 1 1 0 0 0 When carry,
answer will be
+ve, ignore carry

Simplified expression for above table:

Cin �1 � C1.C out � C1Cout � C1


C2 � C1. C out � Cin � 2
Experiments in Digital Electronics [92]

Control � 1�C1 � B3 B2 B1 B0

0=Addition
1=Subtraction 1 2 4 5 9 10 12 13
14 VCC
7486-1
7 GND
A3 A2 A1 A0 11 8 6 3

1 3 8 10 16 4 7 11
14 �Cin1 � 5 VCC
7483-1
2 1
13 �Cout 1 � 12 GND
1 2
08 15 2 6 9
3 S3 S2 S1 S0
Control � 2 �C2 �
1 4 9 12 2 5 10 13
14 VCC
7486-2
7 GND
11 8 6 3
GND
1 3 8 10 16 4 7 11
Cin �14 �
7483-2
3 Cout �13�

4
LED on : Negative answer to subtraction
S3 S2 S1 S0
330 �
True Magnitude outputs
+5V

Fig.4.8.1: Shows the logic diagram for 2’s complement adder/subtractor.


Procedure:
(1) Insert the ICs into the breadboard. Connect the power supply to the proper
pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.
[93] Combinational Logic Circuits-Arithmetic Circuits

(4) Connect the LEDs to the sum and carry outputs, or connect them to a
LED with a current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:
2’s complement method:
S.No. Inputs outputs
Control-1 A3 A2 A1 A0 B3 B 2 B1 B0 Sign S3 S2 S1 S0
bit

Result: Verified the operations of the 2’s compliment adder/subtractor circuit.


Precautions:
1. Check all gates in the ICs before using them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
Experiments in Digital Electronics [94]

5. Combinational Logic Circuits: Code Converters


EXPERIMENT-5.1
Object: To study and verify the Binary-to-BCD code converter circuit and vice versa.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: Three 7408 (Quadruple 2-input AND gates), Two 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), and one 74184 (BCD-to-
binary converter).
Diode: Five LEDs
Miscellaneous: Five Resistors � 330 � � 0.25watt, Single core wire, Cutter and
stripper
Brief theory:
Since a binary number of different codes are used in different processes. It is,
sometimes, necessary to convert the data from one code to another. Such a device is
known as a code converter.
Binary codes:
Computers work with binary numbers. In most present-day electronic digital
systems, we can use signals as two discrete values, 0 & 1 and it is said to be binary. A
binary digit, called a bit, has two values: 0 and 1. In this, each coefficient is multiplied
by 2n, where n is the position of the bit. Binary codes are a group of bits which consist
of discrete elements of information. In the binary number, the binary number has a
string of zeros and ones. Since it has only two digits, the base is 2.
An n-bit binary code is a group of n bits that assumes up to 2n distinct
combinations of 1’s and 0’s, with each combination representing one element of the
set that is being coded. A set of four elements can be coded with two-bits, with each
element assigned one of the following bit combinations: 00, 01, 10, and 11. A three bit
code is used for a set of eight elements and a four-bit code set is used for a set of
sixteen elements.
In the binary system, positive and negative numbers may be represented as (i)
signed magnitude, and (ii) 1’s complement and 2’s complement.
In order to represent the 16 decimal digits, 0 through 15, in binary code, it is
necessary to use at least 4-bit binary numbers (0 = 0000 and 15 = 1111). Since there
[95] Combinational Logic Circuits: Code Converters

are sixteen combinations of four binary digits, it is possible to form a very large number
of distinct codes.
a. BCD code:
A weighted 4-bit binary code is one in which each number carries a certain
weight. A string of 4-bits is known as a nibble. Binary-Coded Decimal (BCD) means
that each decimal digit is represented by a nibble (binary code of 4-digits). Many
BCD codes have been proposed, e.g., 8421, 2421, and 5211. Out of these, the 8421
code is the most predominant BCD code. The destination 8421 indicates the weights
of the 4-bits (8, 4, 2, and 1 respectively, starting from the left most bit). In BCD, only
10 of the 16 combinations are used. The six combinations that are not used: 1010,
1011, 1100, 1101, 1110, and 1111 are invalid codes in the BCD code. The BCD code
is not self-complementing.
The Binary-Coded Decimal (BCD), which is very important for visual display
communication between a computer and a human being. But BCD is very difficult to
deal with arithmetically. Algorithms, or procedures, have been developed for the
conversion of BCD to binary by computer programme (software), so that the computer
will be able to perform all arithmetic operations in binary. Yet another way to convert
BCD to binary, the hardware approach, is with MSI integrated circuits. Additional
circuitry is involved, but it is much faster to convert using hardware rather than software.
The BCD code is used in pocket calculators, electronic counters, digital
voltmeters, digital clocks, etc. Early versions of computers also used the BCD code.
However, the BCD code was discarded for computers because it is slow and more
complicated than binary. Often, it is important to convert a coded number into another
form that is more usable by a computer or digital system.
The main advantage of the BCD code is the relative ease of converting to and
from decimal. Only the four bit code groups for the decimal digits 0 through 9 need to
be remembered. This ease of conversion is especially important from a hardware
standpoint, because in a digital system, it is the logic circuits that perform conversions
to and from decimal.
1. Binary-to-BCD conversion:
Any binary number can be converted into BCD by the following steps:
1. To form a BCD number from a binary, simply convert each decimal
digit to its four-bit binary code. A binary code takes the complete decimal
number and represents it in binary.
2. In a 4-bit binary the maximum binary is 1111. But in BCD, decimal 0
through 9 are valid numbers (single digit decimal) - binary code and
BCD code are equivalent, and 10 through 15 are invalid numbers (two
digit decimal) can be represented into BCD by converting each digit
into 4-bit binary.
Experiments in Digital Electronics [96]

Table 5.1.1: Binary to BCD code - converter


B in ary code B C D code
D C B A B4 B3 B2 B1 B0
0 0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 1
0 0 1 0 0 0 0 1 0
0 0 1 1 0 0 0 1 1
0 1 0 0 0 0 1 0 0
0 1 0 1 0 0 1 0 1
0 1 1 0 0 0 1 1 0
0 1 1 1 0 0 1 1 1
1 0 0 0 0 1 0 0 0
1 0 0 1 0 1 0 0 1
1 0 1 0 1 0 0 0 0
1 0 1 1 1 0 0 0 1
1 1 0 0 1 0 0 1 0
1 1 0 1 1 0 0 1 1
1 1 1 0 1 0 1 0 0
1 1 1 1 1 0 1 0 1
To draw the logic diagram for the binary to BCD code converter, each of the
output functions are simplified by using k-maps.
B4 � DC � DB � D (C � B )
B3 � DC B
B2 � DC � CB
B1 � D A � DC B
B0 � A
The logic diagram for the code converter is shown in the Fig.5.1.1.
D C B A

3 1
04 04

4 2 1
3
2 32
08 B4

1
3 4
2 08 6
5 08 B3

9
10 08
8 4
6
5 32 B2
12
13 08
11

1
3
2 08
9
8
4 10 32 B1
6
5 08
9 08
8
10

B0

Fig.5.1.1: Logic diagram of binary to BCD code converter


[97] Combinational Logic Circuits: Code Converters

2. BCD-to-Binary conversion:
Any BCD number can be converted into binary. Simply convert each 4-bit
BCD number to decimal and then to binary. The truth table of the 5 bit BCD-to-binary
converter is given in table 5.1.2.
Table 5.1.2: BCD to Binary code - converter
BCD Code Binary Code
(Inputs) (Output)
B4 B3 B2 B1 B0 E D C B A
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 1
0 0 0 1 0 0 0 0 1 0
0 0 0 1 1 0 0 0 1 1
0 0 1 0 0 0 0 1 0 0
0 0 1 0 1 0 0 1 0 1
0 0 1 1 0 0 0 1 1 0
0 0 1 1 1 0 0 1 1 1
0 1 0 0 0 0 1 0 0 0
0 1 0 0 1 0 1 0 0 1
1 0 0 0 0 0 1 0 1 0
1 0 0 0 1 0 1 0 1 1
1 0 0 1 0 0 1 1 0 0
1 0 0 1 1 0 1 1 0 1
1 0 1 0 0 0 1 1 1 0
1 0 1 0 1 0 1 1 1 1
1 0 1 1 0 1 0 0 0 0
1 0 1 1 1 1 0 0 0 1
1 1 0 0 0 1 0 0 1 0
1 1 0 0 1 1 0 0 1 1

To draw the logic diagram for code converter, each of the output functions are
simplified by using k-maps. The logic diagram for the BCD-to-binary converter is
shown in the Fig.5.1.2.
E B4 B3 B4 B2 B0
D B 4 B3 B4 B3 B 2 B4 B 3 B1
C B 4 B2 B2 B1 B4 B 2 B1
B B 4 B1 B4 B 1
A B0
The IC 74184 is used for the BCD-to-binary converter, Fig. 5.1.2.(b) gives the
block diagram of 74184.
When BCD inputes are applied at terminals (A through E), and binary output
appears at terminals (Y1 through Y8) when the circuit is enabled (G = 0).
Experiments in Digital Electronics [98]
B4 B3 B2 B1 B0

1
3
2 08
1
3
4 2 32 E
6
5 08
9 08
8
10
12
11
13 08
4
6
1 5 32 B1
3
2 08 6
4 08
9 5 32 D
8
10 08
12 08
11
1 13
3
2 08
9
8 12
10 32 11
4 13 32 C
08 6
5

9
8
10 08
12 08
11
13
1
3
2 08

32 B
4
6
5 08

(a) (b)
Fig.5.1.2: (a) logic diagram for the BCD to binary converter (b) Block diagram
of the 74184
Procedure:

(1) Mount the ICs on the breadboard and make the connections shown above
the logic circuit.

(2) Connect the power supply to the proper pin of the chip.

(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.

(4) Connect the LEDs to the outputs, or hookup them up to a LED with a
current limiting resistor.

(5) Turn on the trainer/power project board.

(6) Check the output of each circuit by giving the proper sequence of binary.

(7) Prepare the truth table.


[99] Combinational Logic Circuits: Code Converters

Observation Table:
1. Truth table for binary- to- BCD code converter.
S.No. Binary code BCD code
D C B A B4 B3 B2 B1 B0
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1

2. Truth table for BCD-to- binary converter.


BCD code (Inputs) Binary code(Outputs)
B4 B3 B2 B1 B0 E D C B A
Experiments in Digital Electronics [100]

Result: Verified the operations of binary-to-BCD code converter and vice-versa.


Precautions:
1. Check all gates in ICs before making them used in the circuits.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-5.2
Object: To study and verify the Binary-to-Gray code converter and vice versa.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: Two 7486 (Quadruple 2-input EX-OR gates).
Diode: Four LEDs
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
a. The gray code:
It is an unweighted code. The bit positions do not have any specific weights
assigned to them. However, the most important characteristics of this code is that
only a single bit change occurs when going from one code number to next. In binary
systems all the 4 bits change when we go from 0111 to 1000. The single bit change
property is important in some applications, e.g., shaft position encoders. In these
applications the chances of error increase if more than one bit change occurs.
The gray code belongs to a class of codes called the minimum change code.
Successive coded characters never differ by more than one-bit. Because of this, the
gray code is not suitable for arithmetic operations, but finds application in input/
output devices, some types of ADC, and the designation of rows and columns in a
Karnaugh map.
In the gray code, there is only one bit change in going from one number to the
next. Only one bit in the numerical representation changes between the successive
numbers. This shows the advantage of the gray code over the binary number sequence.
Hence, gray code is also referred to as ‘reflected code’.
Any binary number can be converted into an equivalent gray code by following
these steps:
1. The MSB of the gray code is the same as the MSB of the binary number;
2. The second bit next to the MSB of the gray code equals the EX-OR of
the MSB and the second bit of the number; it will be 0 if there is the
same binary bit or it will be 1 for different bits;
3. The third bit for gray code equals the Ex-OR of the second and third bits
of the binary number, and similarly, all the next lower order bits follow
the same mechanism.
The following table shows the truth table for binary to gray code conversion.
[101] Combinational Logic Circuits: Code Converters

Table 5.2.1: Binary to gray code converter


Binary code (inputs) Gr ay code (outputs)
D C B A G3 G2 G1 G0
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 0 0 0 1 1
0 0 1 1 0 0 1 0
0 1 0 0 0 1 1 0
0 1 0 1 0 1 1 1
0 1 1 0 0 1 0 1
0 1 1 1 0 1 0 0
1 0 0 0 1 1 0 0
1 0 0 1 1 1 0 1
1 0 0 0 1 1 1 1
1 0 0 1 1 1 1 0
1 0 1 0 1 0 1 0
1 0 1 1 1 0 1 1
1 1 0 0 1 0 0 1
1 1 0 1 1 0 0 0
To draw the logic diagram for code converter, each of the output functions are
simplified by using k-maps.
G3 � D
G2 � DC � DC � D � C
G1 � C B � C B � C � B
G0 � B A � B A � B � A
The logic diagram of binary to gray code converter is shown in the Fig.5.2.1.
Binary code (Input)
D C B A

G3

86 G2
2 3

86 G1
5 6

86 G0
10 8

Fig.5.2.1: Logic diagram for the binary to gray code converter


Experiments in Digital Electronics [102]

The gray to binary code converter contain four inputs and four outputs: D, C,
B, and A. Any gray code can be converted into equivalent binary number by following
these steps:
1. The MSB of the binary number code is the same as the MSB of the gray
code;
2. The second bit next to the MSB of the binary number equals the Ex-OR
of the MSB and the second bit of the gray code; it will be 0 if there is
same binary bit or it will be 1 for different bits;
3. The third bit for a binary number equals the Ex-OR of the second bit of
the binary number and the third bit of the gray code, and similarly, all the
next lower order bits follow the same mechanism.
The following table shows the truth table for gray to binary code conversion.
Table 5.2.2: Gray to Binary code Converter
Gray code (inputs) Binary (outputs)
G3 G2 G1 G0 D C B A
0 0 0 0 0 0 0 0
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 0 1 0 0 0 1 1
0 1 1 0 0 1 0 0
0 1 1 1 0 1 0 1
0 1 0 1 0 1 1 0
0 1 0 0 0 1 1 1
1 1 0 0 1 0 0 0
1 1 0 1 1 0 0 1
1 1 1 1 1 0 1 0
1 1 1 0 1 0 1 1
1 0 1 0 1 1 0 0
1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0
1 0 0 0 1 1 1 1

To draw the logic diagram for code converter, each of the output functions are
simplified by using k-maps.
A � (G3 � G2 ) � (G1 � G0 )
B � G3 � G2 � G1
C � G3 � G 2
D � G3
The logic diagram for the code converter is shown in the Fig.5.2.2.
[103] Combinational Logic Circuits: Code Converters

G3 G2 G1 G0

1
3
86 C
2

4 Binary (output)
6
86 B
5

86 A
10 8

Fig.5.2.2: Logic diagram for the gray to binary.


Procedure:
(1) Insert the ICs into the trainer/breadboard. Connect the power supply to
the proper pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.
(4) Connect the LEDs to the outputs, or hookup them up to a LED with the
proper values and voltage current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
Observation Table:
1. Truth table for binary–to- gray converter.
S. N o . B in a r y c o d e ( i n p u t s) G r a y co d e (o u tpu ts )
D C B A G3 G2 G1 G0
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Experiments in Digital Electronics [104]

2. Truth table for gray–to-binary converter.

S.N o. Gray code (inputs) BC D code (outputs)


G3 G2 G1 G0 D C B A
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Result: Verified the operations of the Binary-to-gray code converter and vice-versa.
Precautions:
1. Check all gates in the ICs before using them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-5.3
Object: To study and verify the BCD-to-EX-3 code converter.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: Two 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter).
Diode: Four LEDs.

Miscellaneous: Four Resistors � 330 � � 0.25watt, Single core wire,


Cutter and stripper
[105] Combinational Logic Circuits: Code Converters

Brief theory:
a. BCD code:
{See page number 95}
b. The Excess-3 code:
A decimal code that has been used on some old computers is the EX-3 code.
This is an unweighted code, i.e., no weights can be assigned to any of the four digit
positions. This code assignment is obtained from the corresponding value of the 4 bit
binary code after adding 3 to the given decimal digit and then converting the result to
four bit binary. Out of the possible 16 code combinations, only 10 are used in the
EX-3 code. The remaining 6, i.e., 0000, 0001, 0010, 1101 and 1111 are invalid in this
code. Ex-3 code is also known as the self-complementary code. The Self-
complementary property of this code helps considerably in performing subtraction
operations in digital systems.
The truth table for BCD to Ex-3 code is shown in the following table-
Table 5.3.1 : BCD to EX-3 code converter
Decimal BCD code (inputs) EX-3 code (outputs)
D C B A E3 E2 E1 E0
0 0 0 0 0 0 0 1 1
1 0 0 0 1 0 1 0 0
2 0 0 1 0 0 1 0 1
3 0 0 1 1 0 1 1 0
4 0 1 0 0 0 1 1 1
5 0 1 0 1 1 0 0 0
6 0 1 1 0 1 0 0 1
7 0 1 1 1 1 0 1 0
8 1 0 0 0 1 0 1 1
9 1 0 0 1 1 1 0 0
To draw the logic diagram for code converter, each of the output functions are
simplified by using k-maps.
E 3 � D � C ( B � A)
E 2 � C B A � C ( B � A)
E1 � B � A
E0 � A
The logic diagram for the code converter is shown in the Fig.5.3.1.
Experiments in Digital Electronics [106]
BCD code (Input)
D C B A

5 3 1

6 4 2
1
3
2 32 3
1 08
2 4 6
5 32 E3

4
6
5 08 9 8
08
10
9 12 32 E2
8 13 11
10 32
12 08
11
13 Ex-3 code
(Output)
1
3
2 08
1
3
32 E1
4 2
6
5 08

E0
Fig.5.3.1: logic diagram for the BCD to EX-3 code converter
Procedure:
(1) Insert the ICs into the trainer/breadboard. Connect the power supply to
the proper pin of the chip.
(2) Construct the abovementioned logic circuits.
(3) Connect the inputs of the gate to the switches provided on the trainer or
hook them up to the +5V supply (logic 1) or ground (logic 0) to give the
proper sequence of binary.
(4) Connect the LEDs to the outputs, or hook them up to a LED with a
current limiting resistor.
(5) Turn on the trainer/power project board.
(6) Check the output of each circuit by giving the proper sequence of binary.
(7) Prepare the truth table.
[107] Combinational Logic Circuits: Code Converters

Observation Table:
S.No. BCD code (inputs) EX-3 code (outputs)
D C B A E3 E2 E1 E0
0
1
2
3
4
5
6
7
8
9

Result: Verified the operations of the BCD-to-EX3 code.


Precautions:
1. Check all gates in the ICs before using them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-5.4
Object: To study the use of Comparator and verify its operations.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7485 (4-bit comparator),one 7486, two 7408, one 7432 and
one 7404.
Diode: Three LEDs
Miscellaneous: Three Resistors � 330 � � 0.25watt, Single core wire,
Cutter and stripper
Brief theory:
A magnitude comparator is a combinational circuit that compare the relative
magnitude of two binary numbers, A and B. The result of this comparison is specified
by three binary variables that indicate whether A>B, A=B, or A<B.
Often in the evaluation of digital information, it is important to compare two
binary strings (binary words) to determine if they are exactly equal. This comparison
process is performed by a digital comparator.
The basic digital comparator evaluates two binary strings bit by bit and outputs
a 1 if they are exactly equal. An Ex-NOR gate is the easiest way to compare the
equality of bits.
Experiments in Digital Electronics [108]

In order to compare binary numbers containing more than just 2 bits, we need
additional Ex-NORs, and the output of all of them must be 1. To design a comparator
to evaluate two n-bit numbers, we need ‘n’ Ex-NORs.
The logic used to determine the comparator of two four bits, if A>B starting
from MSB, can be expressed in the set of statements as follows:
1. If A3 =1 and B3 =0, then A>B.
Or
2. If A3 =B3 and, if A2 =1 and B2 = 0, then A>B.
Or
3. If A3 =B3, A2 =B2, and A1 = 1, B1 =0, then A>B.
Or
4. If A3 =B3, A2 =B2, and A1 = B1, A0 = 1, B0 =0, then A>B.
From above statements, the logic expression for A>B can be written as for
active high output.
A � B � A3 B3 � (A3 �B3)A2 B2 � (A3 �B3)(A2 �B2)A1B1 � (A3 �B3)(A2 �B2)(A1 �B1)A0 B0
Similarly for B > A and B=A:
B � A � A3B3 � (A3 �B3)A2B2 � (A3 �B3)(A2 �B2)A1B1 � (A3 �B3)(A2 �B2)(A1 �B1)A0B0

A � B � A3 � B3 ) � ( A2 � B2 )1 � ( A1 � B1 ) � ( A0 � B0 )
The logic diagram for 2-bit comparator with active low output is shown in the
Fig.5.4.1. BCD code (Input)
B1 B0 A1 A0

7 5 3 1

8 6 4 2
1
3
2 08
1
3
4 2 32 A>B
6
5 08 9 8
08
10
1
3
2 86
4
6
5 32 A=B
4
6
86
5

1 11
12 08
08 3
2 13 8
32 A<B
4
6
5 08

Fig.5.4.1: logic diagram for the 2-bit comparator for active low output.
[109] Combinational Logic Circuits: Code Converters

Integrated Circuit Comparator:


Integrated-Circuit magnitude comparators are available in both the TTL and
CMOS families. A magnitude comparator not only determines, if A equals B, but also
if A greater than or less than B.
The IC 7485 is a MSI series, 16-pin DIL package, TTL 4-bit magnitude
comparator. The pin configuration and function table for the IC 7485 are given in
Fig.5.4.2 (a). It can be expanded to any number of bits. The cascading inputs are used
for expansion to a system capable of comparison. To set up a circuit capable to compare
two 8-bit words, two 7485s are required. The comparator outputs of the lower-order
(least significant) comparator are connected to the expansion inputs of high-order
comparator. That way, the comparators act together, comparing two entire 8-bit words
and outputting the result from the high order comparator outputs.
The comparator is used to compare more than 4-bit binary words by cascading
IC7485. The IC7485 is used to compare two 4-bit binary numbers. To compare 8-bit
numbers, we need to use two 7485 ICs. The logic diagram of an 8-bit comparator is
shown in Fig. 5.4.2 (b). Table 5.4.2 shows the function table for cascading IC7485.

(a)

(b)
Fig. 5.4.2: IC 7485: (a) pin diagram (b) 8-bit comparator
Experiments in Digital Electronics [110]

Table 5.4.1: The function table for IC 7485


Comparing inputs Cascading inputs Comparator output
A 3B3 A 2B2 A1B1 A0B0 A>B A<B A=B A>B A<B A=B
A 3>B3 x x x x x x 1 0 0
A 3<B3 x x x x x x 0 1 0
A 3=B3 A2 >B2 x x x x x 1 0 0
A 3=B3 A2 <B2 x x x x x 0 1 0
A 3=B3 A2 = B2 A1 > B1 x x x x 1 0 0
A 3=B3 A2 = B2 A1 < B1 x x x x 0 1 0
A 3=B3 A2 = B2 A1 = B1 A 0 > B0 x x x 1 0 0
A 3=B3 A2 = B2 A1 = B1 A 0 < B0 x x x 0 1 0
A 3=B3 A2 = B2 A1 = B1 A0 =B0 1 0 0 1 0 0
A 3=B3 A2 = B2 A1 = B1 A0 =B0 0 1 0 0 1 0
A 3=B3 A2 = B2 A1 = B1 A0 =B0 0 0 1 0 0 1
1 = high 0 = low x = don’t care
Lower order cascading inputs connection: A>B, and A<B = logic ‘0’; A = B, equal to
logic ’1’
Procedure:
(1) Insert IC 7485 on the logic trainer board.
(2) Connect cascading inputs A>B, A<B together to the logic ‘0’ or
logic’1’but, cascading input A = B must be to logic’1’.
(3) For higher order comparison, output of the lower comparator is connected
to the cascading inputs of higher order comparator.
(4) Give inputs A and B through binary switches and observe LEDs at the
output.
(5) Make a truth table for different outputs.
Observation Table:
S.No. Comparator inputs Comparator inputs Outputs
A3 A2 A1 A0 B3 B2 B1 B0 A>B A<B A=B
1
2
3
4
5
6
7
8
9
10
11
Result: Verified the operations of the magnitude comparator.
[111] Combinational Logic Circuits: Code Converters

Precautions:
1. Check the gate to be used in the logic circuit in ICs before connecting.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-5.5
Object: Design, construct, and test a circuit that generates and checks an even/odd-
parity bit from message bits. Use XOR gates.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 7486 (Quadruple 2-input EX-OR gates), 74S280. (9-bit odd/
even parity-generator).
Diode: Two LED
Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
1. Parity bit:
When data bits are transferred from one circuit to another, an extra bit is
sometimes added to ensure that the data is transferred correctly. The extra bit is called
a parity bit. The system can work on an even parity or odd parity system. If the system
is even parity, then the parity bit is chosen so that the total number of 1s in the word,
including the parity bit, is even.
One method for error detection is to use 7 bits for data and the 8th (most
significant) bit for parity. The parity bit can be 1 or 0.To make an odd parity, the parity
bit is set to 1 or 0. If the word has an odd number of 1s, the parity bit is set to 0. If the
word has an even number of 1’s, the parity bit is set to 1 so as to make the total
number of 1’s odd. The following table shows an example of a parity bit.
Parity
Data Total number of 1s Even odd
1100111 5 1 0
1101011 5 1 0
1000010 2 0 1
0000011 2 0 1

At the receiving point, the parity is checked to see if it is odd. If it is even, an


error has been committed and the data is required to be transmitted again.
Experiments in Digital Electronics [112]

2. Even parity generator:


A circuit that can determine whether the parity bit should be 1 or 0 is called a
parity generator. Ex-OR gates can be used to construct a parity generator. Fig.5.5.1
shows Ex-OR gates being used as an even-parity generator. Each Ex-OR gate checks
for unlike inputs. Unlike inputs into the last Ex-OR means that an odd number of 1’s
have been encountered. The 1 output would be used as a parity bit, making the total
number of 1s even.
3. Even/odd-parity generator:
By adding an extra Ex-OR gate, the circuit can be made more versatile. A 1 on
the control input inverts the output and changes the circuit into an odd-parity generator.
A parity generator circuit generates the parity bit in the transmitter. For this purpose,
EX-OR function is very useful in system where there is a requirement for error detection
and correction codes. Consider a 3-bit message being transmitted tighter with an even/
odd parity bit. Table 5.5.1 shows the truth table for the even/odd-parity generator.
Table 5.5.1: Even/Odd-Parity-Generator

Three-Bit Message Parity Bit


X Y Z P(even) P(odd)
0 0 0 0 1
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 0

For the three-variable exclusive-OR function, the parity bit can be expressed
as;

P � X �Y � Z
The logic diagram for the even parity generator is shown in Fig.5.5.1

1
X
4
86 Parity bit
2 3
Y 86
5 6

Fig.5.5.1: 3-bit even parity generator


[113] Combinational Logic Circuits: Code Converters

4. Parity checker:
The parity checker circuit is used to check the parity in the receiver. Suppose
a computer has sent a group of data bits along with an even-parity bit to a printer. The
printer checks to see that the total number of 1’s received is even. A circuit that can
determine whether the total number of 1s is even or odd is called a parity checker. Fig
5.5.2 shows a four-bit even parity checker.
The parity checker circuit is used to check the parity in the receiver. The table
5.5.2, shows the truth table for even/odd parity checkers. Here, the three bits in the
message are combined with the parity bit and, after that; these bits are applied to the
parity checker circuit to check for possible errors in the transmission. As the information
was transmitted with even parity, the fourth bit must have an odd/even number of 1’s.
Table 5.5.2: Even-Parity-Checker
Four-Bits received Parity Error
Check
X Y Z P C(e ven) C(odd)
0 0 0 0 0 1
0 0 0 1 1 0
0 0 1 0 1 0
0 0 1 1 0 1
0 1 0 0 1 0
0 1 0 1 0 1
0 1 1 0 0 1
0 1 1 1 1 0
1 0 0 0 1 0
1 0 0 1 0 1
1 0 1 0 0 1
1 0 1 1 1 0
1 1 0 0 0 1
1 1 0 1 1 0
1 1 1 0 1 0
1 1 1 1 0 1
From the above table parity checker can be expressed as;
C � X �Y � Z � P
The figure given below shows the logic diagram for the parity checker;
1
X
3
86
2
Y
9

86
10 8
4
Z
86
5 6
P

Fig. 5.5.2 : 4-bit even parity checker


Experiments in Digital Electronics [114]

5. 9-bit parity generator/checker:


The 74S280 is a medium-scale integrated circuit that functions as a 9-bit parity
generator/checker. The pin out and truth table are shown in Fig 5.5.3. If the number of
inputs (A through I) that are high is even, then the � EVEN output goes high and the

� ODD output goes low (First line of truth table). To use the IC as an even-parity
generator, use the � ODD output to generate the parity bit.

Outputs
Number of Inputs (A-I) that are HIGH
� EVEN � ODD

1 0
0, 2, 4, 6, 8
1, 3 ,5, 7, 9 0 1

(a)

diagram.
Procedure:
(1) Insert ICs on the logic trainer board. Connect the power supply to the
proper pin of the chip.
(2) Construct each circuit on the breadboard.
(3) Connect the LEDs to the output with the proper value of the current
limiting resistor.
[115] Combinational Logic Circuits: Code Converters

(4)Connect the inputs of the gate to the switch provided on the trainer/
board or hook them up to the +5V supply (logic 1) or ground (logic 0).
(5) Vary these inputs and observe LED outputs.
(6) Prepare truth table.
Observation Table:
1. Even/Odd-Parity-Generator
Three-Bit Message Parity Bit
X Y Z P(even) P(odd)
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
2. Even/Odd-Parity-Checker
F o ur-B its received P arity Erro r
C heck
X Y Z P C(even ) C( o dd )
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1

Result: Verified the parity generator/checker output.


Precautions:
1. Check each gate on a 7486 IC by determining its truth table.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
Experiments in Digital Electronics [116]

6. Combinational Logic Circuits-Data Processing Circuits


EXPERIMENT-6.1
Object: Design a combinational circuit with four inputs (A, B, C, and D) and one
output (Y). The output is to be equal to 1 when A=1 provided that B=0, or
when B=1 provided that either C or D is also equal to 1.Otherwise, the output
is to be equal to zero.
Equipment/Components required:
1. Equipment: Power Project board and digital Multimeter.
2. Components:
ICs: One 7408 (Quadruple 2-input AND gates), One 7432 (Quadruple
2-input OR gates), One 7404 (Hex inverter), Two 7400 (Quadruple 2-
input NAND gates), and Two 7402 (Quadruple 2-input NOR gates).
Diode: One LED.
Miscellaneous: One Resistor 330 � - 0.25watt, Single core wires, wire
cutter and stripper.
Brief theory:
A combinational circuit consists of input variables, logic gates, and output
variables. It consists of logic gates whose outputs at any time are determined by only
the present combination of inputs.
Table 6.1.1.
Inputs Output
Decimal D C B A Y
0 0 0 0 0 0
1 0 0 0 1 1
2 0 0 1 0 0
3 0 0 1 1 0
4 0 1 0 0 0
5 0 1 0 1 1
6 0 1 1 0 1
7 0 1 1 1 1
8 1 0 0 0 0
9 1 0 0 1 1
10 1 0 1 0 1
11 1 0 1 1 1
12 1 1 0 0 0
13 1 1 0 1 1
14 1 1 1 0 1
15 1 1 1 1 1
[117] Combinational Logic Circuits-Data Processing Circuits

As we know, that combinational circuits are used to performs an operation


that can be specified logically by a set of Boolean functions. In this experiment; we
designed and implemented a combinational circuit with four inputs and one output.
The output is equal to 1, when input A=1, provided that input B = 0, or when B = 1,
provided that either C or D is also equal to logic-1. Otherwise, the output will be
equal to zero. Now Obtain the truth table for the above mentioned logic as shown in
Table 6.1.1. Then simplify output using K-map. The simplified sum-of-product
expression for output is equal to:

Y � BA � CB � DB
The logic diagram implementation of this expression using basic gates is shown
in Fig. 6.1.1 (a). It can also be implemented using universal gates as shown in Fig.6.1.1
to 6.1.3
(a) Using two input basic gate:

Y � ( B A � CB) � DB

D C B A

1
3
2 08
1
4
32 6
4 3 32
2 5
6
5 08

9
8
10 08

Fig. 6.1.1: Using 2-input basic gate.


(b) Using two-input NAND-NAND gates.

Y � ( B A � CB ) � DB � ( B A � CB ) . DB � ( B A . CD ) . DB
Experiments in Digital Electronics [118]

D C B A

12 13
00
11
1 4
3 6 9 12
00 00 11 1
2 5
10 00 00 3
8 2 00
13
4
6
5 00

9
10 00
8

Fig. 6.1.2: Using 2-input NAND-NAND gate

Y � ( B A � CB ) � DB � ( B A.CB) � ( D � B) � ( B � A).(C � B) � ( D � B)

� ( B � A) � (C � B) � ( D � B) � {( B � A) � (C � B)} � ( D � B)
D C B A

02 02 02 02

2
1 8 11
3 02 10 13 2
9 02 02 1
3 02
12
5
4
6 02

5
6 02
4

Fig. 6.1.3: Using two-input NOR-NOR gates.


Procedure:
(1) Insert ICs on the logic trainer board. Connect the power supply to the
proper pin of the chip.
(2) Construct the above logic circuit on the breadboard.
(3) Connect the LEDs to the output with a current limiting resistor.
(4) Connect the inputs of the gate to the switch provided on the trainer/
board or hook them up to the +5V supply (logic 1) or ground (logic 0) as
required.
(5) Vary these inputs from 0000 to 1111 and observe LED outputs.
(6) Prepare the truth table.
[119] Combinational Logic Circuits-Data Processing Circuits

Observation Table:
Decimal Inp uts O utput
D C B A Y
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Result: Verified the output of the abovementioned combinational circuit.
Precautions:
1. Check each gate in ICs before designing a logic circuit.
2. Check the power supply of the power project board.
3. Do not leave an input floating.
EXPERIMENT-6.2
Object: To study and verify the workings of the multiplexer and its operation as a
logic function generator.
Equipment/Components required:
1. Equipment: Power Project board and digital Multimeter.
2. Components:
ICs: One 7432, One 7404, One 7486, One 74150 (16X1 MUX), One
74151 (8X1 MUX), One 74153 (4X1 MUX), and One 74157 (2X1
MUX).
Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, wire


cutter and stripper.
Experiments in Digital Electronics [120]

Brief theory:
A multiplexer (MUX) is a combination 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-
data input lines and n- selection lines, whose bit combinations determine which data
input is selected.
A MUX is also called a data selector, since it selects one of many inputs and
steers the binary information to the output line. The enable input (EN) in a MUX,
must be active for normal operation. Therefore, MUX is a very convenient logic circuit
used in combinational logic circuits.
Digital multiplexers are available in ICs. Some of these are given in Table
6.2.1.
Table 6.2.1: TTL and CMOS MUXs

IC Description
number
74150 16 -data inputs MUX with 4 data select inputs lines.
Output is complemented.
74151A 8 -data inputs MUX with 3 data select inputs lines. Data
output and its complement are available at the output.
74152 8- data inputs MUX with 3 data select input lines. Output
is inverted input.
74153 Dual separate 4-data inputs MUXs with 2- data select
inputs lines. Output is the same as input.
74157 Quad separate 2-data inputs MUXs with 1-data select
input lines on a single chip. They share a common data
select and a common enable. Output same as input.
74158 Quad separate 2-data inputs MUXs with 1-data select
input lines on a single chip. Output is complemented. One
data select line.

Boolean function implementation:


As the name indicates, MUX is many into one, which means that this circuit is
associated with many inputs and a single output. Here, the minterms of a function are
generated by the circuit associated with the selection inputs. MUX has n- selection
inputs and 2n- data inputs, one for each minterm.
For implementing a Boolean function of n- variables with a MUX that has
(n-1)-selection inputs. The first (n-1) variables of the function are connected to the
[121] Combinational Logic Circuits-Data Processing Circuits

selection inputs and the remaining single variable are used for the data inputs. If the
single variable is denoted by ‘C’, each data input of the MUX will be c, c ,1, or 0 .The
procedure for using it to generate a given minterm logic expression is as under:
1. The select lines are used as data input lines.
2. Input lines corresponding to given minterms are connected to logic 1
level.
3. The remaining input lines are connected to logic-0 level (i.e., ground).
Let us consider the Boolean function of three variables:

Y ( A, B, C ) � A B C � ABC � ABC � ABC � � m (1,2,6,7)

This function can be implemented with:


1. A 16-to-1line (16X1) MUX:
The IC 74150 is a 16-to-1line (16X1) MUX that has active high 16-data inputs
and 4-selection input lines and one active low output. But the above function has only
three selection inputs lines. One selection line can be eliminated by either giving
logic-0 or logic-1. In this chip, we are eliminating selection input D, which is MSB. If
D = logic 0, the first eight data inputs are enabled, or if it is logic-1, last eight data
inputs are enabled. Finally, the 16X1 MUX IC can work as 8X1 MUX. Fig.6.2.1
shows the pin diagram, logic diagram, function table, and block diagram for the above
function using IC-74150.

(a)
Experiments in Digital Electronics [122]

Control Inputs Enable Output


D C B A E Y
X X X X 1 1
0 0 0 0 0 D0
0 0 0 1 0 D1
0 0 1 0 0 D2
0 0 1 1 0 D3
0 1 0 0 0 D4
0 1 0 1 0 D5
0 1 1 0 0 D6
0 1 1 1 0 D7
1 0 0 0 0 D8
1 0 0 1 0 D9
1 0 1 0 0 D10
1 0 1 1 0 D11
1 1 0 0 0 D12
1 1 0 1 0 D13
1 1 1 0 0 D14
1 1 1 1 0 D15

(b) logic diagram (c) function table

D0
D1
D2
D3
D4
D5
D6
D7
Y� m 1,3, 6,7
D8
D9
D10
D11
D12
D13
D14
D15
5V � VCC
Enable

(d)

Fig.6.2.1: IC 74150 (a) Pin diagram (b) Logic diagram (c) Function table (d)
Block diagram of given Boolean function.
[123] Combinational Logic Circuits-Data Processing Circuits

2. A 8X1 MUX:
IC 74151A is an 8-to-1 line (8X1 MUX) that has active high 8-data inputs and
3-selection input lines and two outputs, one active low and other active high output.
As per the above function, it connects the data input lines (1, 2, 6, and 7) to logic-1
and the remaining data input lines (0, 3, 4, and 5) to logic-0. Connect A, B, C to select
lines. Connect LED at the output terminal. Fig.6.2.2 shows the pin diagram, logic
diagram, function table, and block diagram for the above function using IC-74151.

(a)

(b)

Enable Control Inputs Output


E C B A Y
0 X X X 0
1 0 0 0 D0
1 0 0 1 D1
(c) 1 0 1 0 D2
1 0 1 1 D3
1 1 0 0 D4
1 1 0 1 D5
1 1 1 0 D6
1 1 1 1 D7
Experiments in Digital Electronics [124]

D0
D1
D2
D3
Y
D4 5
D5
Outputs
Y
D6
6
Y� m 1,2,6,7
D7
5V � VCC
Enable / Strobe

(d)
Fig.6.2.2 : IC 74151 (a) Pin diagram (b) Logic diagram (c) Function table
(d) Block diagram of given Boolean function.
3. A 4X1 MUX:
IC 74153 is a dual 4-to-1 line (4X1 MUX) that has active high 4-data inputs
and 2-selection input lines and one active high output. For implementing any Boolean
function of n-variables with a MUX with (n-1) selection inputs and (2n-1) data inputs,
the following steps are used:
(i) Firstly, the Boolean function is listed in a truth table.
(ii) The first (n-1) variables in the table are applied to the selection inputs of
the MUX.
(iii) For each combination of selection variables, evaluate the output as a
function of the last variable.
But the above function has three selection inputs; any one selection input can
be shifted to data inputs of the 4X1 MUX as shown in Table 6.2.2. Here the A and B
are applied to the selection lines in that order; B is connected to the LSB input and C
to the MSB input. The values for the data input lines are determined from Table 6.2.2.
Fig.6.2.3 shows the pin diagram, logic diagram, function table and block diagram for
the above function using IC-74153.
[125] Combinational Logic Circuits-Data Processing Circuits

Table 6.2.2 three control lines function using two control lines.
Data Inputs 0utput
input
C B A Y Comments
D0 0 0 0 0 When CB = 00 (D0 ), D0 = A, because Y = 0 when
A A = 0 and Y = 1 when A = 1.This requires that
0 0 1 1
variable ‘A’ be applied to data input D0.
D1 0 1 0 1 When CB = 01 (D1), D1= A , because Y = 1
0 1 1 0 A when A = 0 and Y = 0 when A = 1.This requires
that variable A be applied to data input D1.
D2 1 0 0 0 When CB = 10 (D2), D2 = 0, because Y = 0 when
0 A = 0 and Y = 0 when A = 1.This requires that
1 0 1 0 logic ‘0’ be applied to data input D2 .
D3 1 1 0 1 When CB = 11 (D3), D3 = 1, because Y = 1 when
1 A = 0 and Y = 1 when A = 1.This requires that
1 1 1 1 logic ‘1’ be applied to data input D3 .

(b) (c)
Experiments in Digital Electronics [126]

D0
A
(LSB) D1
D2
Y� m 1,2,6,7
D3
(d) 7
Outputs
� VCC 5V
�Enable �EN

(MSB)
Fig.6.2.3: IC 74153 (a) Pin diagram (b) Logic diagram (c) Function table
(d) Block diagram of given Boolean function.
4. Dual 4X1 MUX and a two-input OR gate.
The IC 74153 is dual 4-to-1 line (4X1 MUX) that has active high 4-data inputs
and 2-selection input lines, one active high output, and an active high enable (strobe)
input. An 8X1 MUX can be implemented with two 4X1 MUXs with enabled inputs
and a 2-input OR gate. Using enable input as one of the select input of MUXs, generally
takes enable as MSB i.e., C selection input. The C (MSB) input determines which
multiplexer is enabled. The enable input of upper MUX is connected to C and the
lower MUX to C. If C = 0, the enable input in upper MUX is logic-1, or lower MUX
is logic-0, which enables the upper MUX and disable the lower MUX. The select
inputs A , B, and C (when C = 0) determine which of the data inputs D 0 to D7 will be
steered to the output. When C=1, the bottom multiplexer is enabled and select inputs
A, B, and C determine which of the data inputs D0 to D7 is selected to the output..
Fig.6.2.4 shows the block diagram of the given Boolean-function using IC-74153 and
one two-input OR gate.
D0
D1
1
D2
D3
7
Output Y1
Enable

1
C 32 3
(MSB) (LSB) 2
Y� m 1,2,6,7
D4
D5
D6
D7 9 Output Y2

Enable
� VCC 5V
2

Fig.6.2.4: Block diagram of given function using IC-74153 and two input
OR gate
[127] Combinational Logic Circuits-Data Processing Circuits

5. Dual 4X1 MUX and 2X1 MUX:


The IC 74157 is a quadruple 2-to-1 line (2X1 MUX) with active high 2-data
inputs and 1-selection input lines, one active high output, and an active low-enable
(strobe) input. A 4X1 MUX can handle a maximum of 4 inputs. When the number of
inputs is more than 4, a MUX tree can be used. Fig 6.2.5 shows an arrangement for an
8X1 MUX using two 4X1 MUX (LSB) and one 2X1 MUX (MSB). Two 4X1 MUXs
(upper M1 and lower M2) select one output from their 4 data inputs and one 2X1 MUX
(M3) selects two data inputs depending on the selected input lines. When the select
input of M3 is 0, the output of M1 will be the final output. If the control input of M3 is
1, the output of M2 will be the final output. Fig.6.2.5 shows the block diagram for the
above function using IC-74153 and 74157.

(a)

(b)
Experiments in Digital Electronics [128]

Enable Control Input Outputs


74157 74158
E A Y Y
(c) 1 X 0 1
0 0 D0 D0
0 1 D1 D1

D0
M1
D1
D2
D3
7
Y1
Enable

M3

(d) (LSB)
Output
4
Y� m 1,2, 6,7
D4 � VCC
D5 M2 Enable

D6
Y2
D7 9
Enable

� VCC 5V

Fig.6.2.5 : IC 74157 (a) Pin diagram (b) Logic diagram (c) Function table
(d) Block diagram of above function using IC-74153 and IC-74157.
6. A 2X1 MUX:
The IC 74157 is a quadruple 2-to-1 line (2X1 MUX) with active high 2-data
inputs and 1-selection input lines, one active high output, and an active low-enable
(strobe) input. But the above function has three control inputs; any two control inputs
can be shifted to data input as shown in the Table 6.2.3. Here, one variable A is applied
to the selection lines and is connected to the MSB input. From tTable 6.2.3 the values
for the data input lines are calculated. Fig.6.2.6 shows the block diagram for the above
function using IC-74157 and a 2-input EX-OR gate.
[129] Combinational Logic Circuits-Data Processing Circuits

Output
4 Y m 1,2,6,7
VCC 5V

Fig.6.2.6: Block diagram for the above function using IC-74157 and 2-input
EX-OR gate.
Table 6.2.3: Three control lines function using two control lines.
MUX Control Inputs Variable sifted in MUX 0utput
Data (2X1MUX) data inputs Comments
Input A B C Y
0 0 0 0
0 0 1 1 When A = 0 (D0),
D0 output
0 1 0 1
D0 � B � C
0 1 1 0
1 0 0 0
1 0 1 0 When A = 1 (D1),
D1 Output
1 1 0 1
1 1 1 1 D1 BC BC B

7. A Quad 2X1 MUX, a 4X1 MUX:


The IC 74157 is a quadruple 2-to-1 line (2X1 MUX) has active high 2-data
inputs and 1-selection input lines, one active high output, and an active low-enable
(strobe) input, and IC 74153 is a dual 4-to-1 line (4X1 MUX) with active high 4-data
inputs and 2-selection input lines, one active high output, and an active high-enable
(strobe) input.
A single 2X1 MUX can handle a maximum of 2-data inputs. When the number
of inputs is more than two, a MUX tree can be used. Fig 6.2.7 shows an arrangement
for an 8X1 MUX using four 2X1 MUX and one 4X1 MUX. Four 2X1 MUXs select
one output from their 2-data inputs and one 4X1 MUX selects four data inputs,
depending on the selected input lines. When selecting input lines A, B, C = 000, the
output of MUX-(D0) will be the final output. If select inputs lines A, B, C = 111, the
output of MUX-(D7) will be the final output. Fig.6.2.7 shows the block diagram for
the given function using IC's-74157 and 7453.
Experiments in Digital Electronics [130]

74157
D0

D1 4

D2
7 D0
D3
D1
D2
Y (Output)
D3 11 Y � m 1, 2,6,7
D4

D5 9
� VCC

D6

D7 12
Enable
0

� VCC

Fig.6.2.7: Block diagram for the above function using IC's-74157 and 74153
Procedure:
(1) Insert an IC on the power project board. Connect the power supply to the
proper pins.
(2) Construct a different logic diagram.
(3) Give binary inputs through binary switches.
(4) Observe the LED output and verify the function operation.
(5) Prepare a truth table for the same.
[131] Combinational Logic Circuits-Data Processing Circuits

Observation Table:
Truth table for MUXs:
Inputs Outputs

A B C 16X1 8X1 4X1 2X1 Dual 4X1, Dual 4X1, Quad


2-input OR o ne 2X1 2X1, one 4X1
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Result: Verified the output of the giving function using different MUX.
Precautions:
1. Check each minterm of ICs by giving control input and data input.
2. Check the power supply of the power project board.
3. Do not leave an input floating.
EXPERIMENT-6.3
Object: To study and verify the operation of the demultiplexer as a logic function
generator.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and digital
Multimeter.
2. Components:
ICs: One 7410 (Triple 3-input NAND gates), One 7420 (Dual 4-input
NAND gates, One 74138 (One 1X8 DMUX with 3-data select lines,
inverted output), One 74139 (Dual 1X4 DMUX with 2-data select line,
complemented output), and One 74154 (One 1X16 DMUX with 4-data
select lines, active high output).
Diode: One LED
Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
A demultiplexer (DMUX) is a circuit that receives information from a single
line and directs it to one of 2n possible output lines. The selection of specific output is
Experiments in Digital Electronics [132]

controlled by the bit combination of n-selection lines. The selection of a particular


input line is controlled by a set of selection lines. Normally, there are 2n-output lines
and n-selection lines, whose bit combinations determine which input is selected.
Therefore, the DMUX is a very convenient logic circuit used in multi output
combinational logic circuits.
A DMUX is also called a data distributor, since it distributes one of many
outputs and steers the binary information to the output line. The enable input (EN) in
a DMUX, must be active for normal operation. DMUX are also available in ICs.
Some of the common available packages are given in Table 6.3.1.
Table 6.3.1: DMUX ICs
IC number Descriptions
74138 One 1X8 DMUX with 3-data select lines. Output is inverted input.
74139 Dual 1X4 DMUX with 2-data select lines. Output is complemented.
74154 One 1X16 DMUX with 4-data select lines. Output is same as input.
74155 Dual 1X4 DMUX with 2-data select lines. Two outputs – one is
complemented and other is same as input.
74159 One 1X16 DMUX with 4-data select lines. Output is same as input
open collector.

Combinational logic implementation:


The minterms of a function are generated in a DMUX by the circuit associated
with the selection inputs. The individual minterms can be selected by the data outputs.
This provides a method of implementing a Boolean function of ‘n’ variables with a
DMUX that has n-selection inputs and 2n- data outputs, one for each minterm. Let us
consider the following minterm expression of three variables:
Y1 ( A, B, C ) � � m (0,2,3,6)
Y2 ( A, B, C ) � � m (1,5,6,7)
Y3 ( A, B, C ) � � m (3,4,5)
These functions can be implemented with:
1. A 1-line-to-16 line (1X16) DMUX and NAND gate:
IC 74154 is a 1-line-to-16 line (1X16) DMUX with active low outputs (as
indicated by small circles at outputs). Therefore, a NAND gate is required. The above
expressions have only three variables (eight outputs). Out of sixteen, any eight outputs
can be used depending upon the selection of inputs. If we take the first three as control
inputs and the last one as MSB, Giving MSB = logic 0, means the first eight DMUX
outputs will be low, used in the above 1X8 functions and leaving others. The above
multi output function is implemented with IC74154 and NAND gates as shown in
Fig.6.3.1.
[133] Combinational Logic Circuits-Data Processing Circuits

Enable Data D C B A 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 1 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 0 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1
0 0 0 1 0 0 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1
0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1
0 0 0 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1
0 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 1
0 0 1 0 0 0 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1
0 0 1 0 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1
0 0 1 0 1 0 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1
0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1
0 0 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1
0 0 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1
0 0 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0
0 1 x x x x 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 x x x x 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 x x x x 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
x = Don’t care

(c)
Experiments in Digital Electronics [134]

18 1 1
logic c '0' Din Y0 Y1 � �m 0,2,3,6
19 2 7420
EN Y1 6
3
1×16 Y2 4
24
+5V VCC DMUX Y3 9 Y2 � �m 1,5,6,7
12 5 7420
GND Y4
6 8
Y5
7
Y6
8 Y3 � �m 3,4,5
(d) Y7 7410
6

D C B A
Logic '0'
(LSB)

Fig.6.3.1 : IC74154 (a) Pin diagram (b) Logic diagram (c) Function table
(d) Block diagram of given function using IC-74154 and 3 NAND gates.
2. A 1X8 DMUX and NAND gate :
The IC74138 is a 1-line-to-8 line (1X 8) DMUX, having active low outputs.
Connect the multi output function in the three NAND gates. The above multi output
function is implemented with IC74138 and NAND gates as shown in Fig.6.3.2.

(a)
[135] Combinational Logic Circuits-Data Processing Circuits

(b)

Inputs Outputs
Enable Inputs Select
G2B G2A G1 C B A 0 1 2 3 4 5 6 7
0 0 1 0 0 0 0 1 1 1 1 1 1 1
0 0 1 0 0 1 1 0 1 1 1 1 1 1
0 0 1 0 1 0 1 1 0 1 1 1 1 1
(c) 0 0 1 0 1 1 1 1 1 0 1 1 1 1
0 0 1 1 0 0 1 1 1 1 0 1 1 1
0 0 1 1 0 1 1 1 1 1 1 0 1 1
0 0 1 1 1 0 1 1 1 1 1 1 0 1
0 0 1 1 1 1 1 1 1 1 1 1 1 0
x x 0 x x x 1 1 1 1 1 1 1 1
x 1 x x x x 1 1 1 1 1 1 1 1
1 x x x x x 1 1 1 1 1 1 1 1
x = Don’t care

1
Data (6) (15) Y1 � �m 0,2,3,6
7420
(14) 6
1×8 (13)
DMUX (12) 9 Y2 � �m 1,5,6,7
(11) 7420
(d) 74138 (10)
8
18
logic c '0' EN (4) (9)
19 Y3 � �m 3,4,5
EN (5) (7) 7410
6

C B A (LSB)

Fig.6.3.2: IC74138(a) Pin diagram (b) Logic diagram (c) Function table (d)
Block diagram of given function.
Experiments in Digital Electronics [136]

3. Dual 1X4 DMUX and NAND gate:


The IC74139 is a 1-line-to-4 line (1X4 DMUX, having active high selection,
enabled input and active low outputs, The above expressions have only three variable
(eight outputs), but above chip has only four outputs. The remaining four can be
expanded by using one more 1X4 DMUX, taking enable as a control input as shown
in Table 6.3.2. Therefore, the dual 1X4 DMUX can be converted to 1X8 DMUX as
shown in Fig. 6.3.3.
Table 6.3.2
Enable Control input of 1X4 DMUX
input Comments
C B A
0 0 0 Make upper DMUX enable for first four
0 0 1 enable input (C = 0) and disable for last four
0 1 0 (C = 1).
0 1 1
1 0 0 Make lower DMUX enable for first four
1 0 1 enable input (C = 1) and disable for last four
1 1 0 (C = 0).
1 1 1

(a)

(b)
[137] Combinational Logic Circuits-Data Processing Circuits

Inputs Outputs
Strobe/Enable Select
G B A 0 1 2 3
(c) 0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
1 x x 1 1 1 1
x = Don’t care

74139-1 4 1
Y1 � �m 0,2,3,6
1×4 5 7420
DMUX 6
6
7
Y2 � �m 1,5,6,7
EN (1)
9
74139-2 12 7420
1×4 11 8
(d)
DMUX 10
9 Y3 � �m 3,4,5
EN (15) 7410
6

C B A
(LSB)
Fig.6.3.3: IC74139 (a) Pin diagram (b) Logic diagram (c) Function table (d)
Block diagram of given function.
Procedure:
(1) Insert IC on the power project board. Connect the circuit as shown in the
above.
(2) Give binary inputs A, B, C through binary switches or hook them up to
the logic-1 and logic-0.
(3) Verify the each function operation by observing the LEDs output.
(4) Prepare the truth table.
Observation Table:
1. DMUX
Inputs Output (Y) using DMUXs and gate
C B A 1X16 1X8 Dual 1X4

0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
Experiments in Digital Electronics [138]

Result: Verified the output of the givin function using different DEMUX.
Precautions:
1. Check each minterm of ICs by giving control input and data input.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-6.4
Object: To study and verify the operation of decoders-drivers.
Equipment/Components required:
1. Equipment: Power Project board and digital Multimeter.
2. Components:
ICs: One 74138 (One 1X8 DMUX with 3-data select lines, inverted
output), One 74139 (Dual 1X4 DMUX with 2-data select line,
complemented output), and One 74154 (One 1X16 DMUX with 4-data
select lines, active high output), One 7420 (Dual 4-input NAND gates
and One 7410 (Triple 3-input NAND gates).
Diode: One LED

Miscellaneous: One Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
Decoder:
A decoder is similar to a demultiplexer, with one exception-there is no data
input. The only inputs are the selection bits. A circuit is called 4-of-16 decoder
depending upon the selection inputs. The selection of a specific output is controlled
by the bit combination of selection lines. A 1X4 DMUX with an enable (EN) input
can be used as 2X4 decoder by giving an enable (EN) input-to enable the DMUX.
Therefore, decoder is a very convenient logic circuit used in combinational logic circuit.
Some commonly used decoders-drivers are: binary-to-octal decoder (3X8,) binary-
to- decimal decoder (4X16), BCD-to-decimal decoders (4X10), and BCD-to- Seven–
Segment Decoder.
Decoders-drivers are also available in ICs. Some of the common available
decoder ICs is given in Table 6.4.1
[139] Combinational Logic Circuits-Data Processing Circuits

Table 6.4.1: Some common available Decoder ICs.


IC number Descriptions
7441 BCD-to-decimal decoder-nixie driver
7442 BCD-to-decimal decoder
7443 Excess 3 to decimal decoder
7445 BCD-to-decimal decoder-driver.
7446 BCD-to-seven segment decoder- drivers (30 V output), drives a
common-anode indicator.
7447 BCD-to--seven segment decoder- drivers (15 V output)
7448 BCD-to--seven segment decoder- drivers drives a common-
cathode indicator.
74141 BCD-to-decimal decoder- driver
74145 BCD-to-decimal decoder- driver
Combinational logic implementation:
In a decoder, the minterms of a function are generated by the circuit which are
associated with the selection inputs. The individual minterms can be selected by the
data outputs which provides a method of implementing a Boolean function of ‘n’
variables with a decoder having n-selection inputs and 2n -data outputs, one for each
minterm. Let us consider the following minterm expression of three variables:
Y1 ( A, B, C ) � � m (0,2,3,6)
Y2 ( A, B, C ) � � m (1,5,6,7)
Y3 ( A, B, C ) � � m (3,4,5)
These functions can be implemented with:
1. A 4-line-to-16 line (4X16) Decoder and NAND gate:
IC 74154 is a binary to decimal decoder (4X16) decoder, having active low
outputs. Therefore, a NAND gate is required to implement the above three variable
outputs. The above expressions is only three selection lines, out of sixteen only eight
output lines can be used depending upon the selection inputs lines. If we use first
three as selection inputs (A, B, and C) and D as MSB. Giving D = logic 0, the first
eight outputs will be low. The above 3X8 decoder multi output function can be
implemented with 4X16 decoder and NAND gates as Similar to Fig. 6.3.1.
2. A 3X8 Decoder and NAND gate :
IC74138 is a binary to octal decoder (3X8) decoder, having active low outputs.
Connect the outputs of 3X8 decoder in the multi outputs function in the NAND gate
as Similar to Fig. 6.3.2.
Experiments in Digital Electronics [140]

3. Dual 2X4 Decoder and NAND gate:


IC74139 is a (2X4) decoder, having active high control, enabled input and
active low outputs. The above expressions have only three variables (eight outputs),
but the above chip has only four outputs. The remaining four can be expanded by
using one more 2X4 decoder, taking enable as a control input as shown in Table 6.4.2.
Therefore, the dual 2X4 decoder can be converted to a 3X8 decoder as Similar to Fig.
6.3.3.
Table 6.4.2: 2X4 decoder, taking enable as a control input.
Enable Control input of
input 1X4 decoder Comments
C B A
0 0 0 Make upper decoder enable for first four enable input
0 0 1 (C = 0) and disable for last four (C = 1).
0 1 0
0 1 1
1 0 0 Make lower decoder enable for first four enable input
1 0 1 (C = 1) and disable for last four (C = 0).
1 1 0
1 1 1
Procedure:
(1) Insert an IC on the power project board. Connect the circuit as shown in
the above figures.
(2) Give binary inputs A, B, C, and D through binary switches.
(3) Observe the outputs.
(4) Prepare the truth table.
Observation Table:
I np u ts D eco der -d riv e r o utp ut s
A B C D 4 X 16 3X 8 D ua l 2 X 4
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
[141] Combinational Logic Circuits-Data Processing Circuits

Result: Verified the output of given functions using different decoders.


Precautions:
1. Check all the IC's and gates used in the circuits before making them use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-6.5
Object: To study and verify the operation of display devices and their decoders-drivers.
Equipment/Components required:
1. Equipment: Power Project board, Multi-channel CRO, and digital
Multimeter.
2. Components:
ICs: One 7446/7447 (BCD-to-seven segment decoder- drivers: drives a
common anode type seven segment display), and One 7448/7449 (BCD-
to-seven segment decoder- drivers: drives a common cathode type seven
segment display),
Display: One common anode: seven segments display, and one common
cathode: seven segments display.
Miscellaneous: Seven resistor � 330 � � 0.25watt, Single core wire,
Cutter and stripper
Brief theory:
Display devices:
The LED is the most commonly used display device. This is very efficient
because electrical energy is converted directly into light. Its brief theory has been
discussed in the first unit point 3.
1. Seven Segment Displays:
A group of seven LEDs is formed into a seven segment display. Each LED is
called a segment because it forms a part of the character being displayed. Individual
segments can be lit to represent the decimal numbers 0 to 9 plus a few letters of the
alphabet. Usually, the decimal digit is available in BCD. A BCD-to-seven-segment
decoder/driver accepts a decimal digit in BCD and generates the corresponding seven-
segment code. The layout of the seven segment display is given in Fig.3. There are
two ways to connect the seven segments; they are the common anode and the common
cathode, as shown in Fig, 6.5.1.
2. Common Anode LED displays:
The diode used to form the segments may have all their anodes connected
Experiments in Digital Electronics [142]

together. With the common anode display, all the anodes are connected to the positive
supply rail. Each individual diode cathode is then switched to ground to illuminate
the diode. Fig.4 shows the seven segment display of the common cathode
3. Common cathode LED displays:
The diode used to form the segments may have all their cathodes connected
together. With the common cathode display, all the cathodes are connected to the
ground. Each individual diode anode is then switched to a positive supply to illuminate
the diode. Fig.4 shows the seven segment display of common cathode. Some of the
common available packages are given in table 6.5.1.
Table 6.5.1: Common available packages of BCD-to-seven segment
decoder-drivers.
IC number Descriptions
7446 BCD-to-seven segment decoder- drivers (30 V output), drives a
common-anode indicator.
7447 BCD-to--seven segment decoder- drivers (15 V output)
7448 BCD-to--seven segment decoder- drivers drives a common-cathode
indicator.
4. Seven-Segment decoder-driver:
4.1 The Common-Anode Seven Segment Display Decoder drive:
There are two types of decoder-driver, corresponding to the common-anode
and common cathode indicators. Each decoder-driver has 4 input pins (the BCD input)
and seven output pins (a through g segments).The IC 7446A, 47A, and LS47 are
BCD-to-seven segment display, active-low outputs designed for driving common-
anode LEDs or incandescent indicators directly.
Fig.6.5.1 shows a 7446 driving a common-anode indicator. Logic circuits inside
the 7446 convert the BCD input to the required output. You have to connect external
resistors to limit the current in each segment to a safe value between 1 and 50 mA,
depending on how bright you want the display to be.

(a)
[143] Combinational Logic Circuits-Data Processing Circuits

(b)

Pin No. Pin Name Description


1 B BCD input of the IC
2 C BCD input of the IC
3 Display test / To test the display LED
Lamp test
4 Blank Input To turn-off the LEDs of the
display
5 Store Store or strobe a BCD code
6 D BCD input of the IC
7 A BCD input of the IC
8 GND Ground
(c) 9 e 7 segment output 1
10 d 7 segment output 2
11 c 7 segment output 3
12 b 7 segment output 4
13 a 7 segment output 5
14 g 7 segment output 6
15 f 7 segment output 7
16 +Vcc IC Supply Voltage

(d)

Fig.6.5.1: (a) Common Anode LED's (b) 7446/7447 pin-diagram (c) Pin
description (d) Circuit diagram
Experiments in Digital Electronics [144]

4.2 The Common-Cathode Seven- Segment Display Decoder drive:


The IC 7448, LS48 and LS49 are BCD-to-seven segment displays with active
high outputs for, driving lamp buffers or common-cathode LEDs. All the circuits
except the LS49 have full ripple-blanking input/output controls and a lamp test input.
The LS49 features a direct blanking input. The display pattern for BCD input count
above nine are unique symbols to authenticate input conditions. All of the circuits
except the LS49 incorporate automatic leading/or trailing-edge, zero-blacking control
(RBI and RBO). The lamp test (LT) of these devices may be performed at any time
when the BI/RBO node is at a high logic level. All types (including LS 49) contain an
overriding blanking input (BI) which can be used to control the lamp intensity (by
pulsing), or to inhibit the outputs.
Fig.6.5.2 shows a 7448 driving a common-cathode indicator. Logic circuits
inside the 7448 convert the BCD input to the required output. Unlike the 7446, which
requires external current-limiting resistors, the 7448 has its own current–limiting
resistors on the chip. Table 6.5.2 shows a logic function table for IC 7446A, 7447A
and Table 6.5.3 shows a logic function table for IC 7448.

(a)

(b)

Fig.6.5.2: 7448/49 decoder-driving a common-cathode indicator :


(a) Pin diagram (b) Circuit diagram
[145] Combinational Logic Circuits-Data Processing Circuits

Table 6.5.2: function table for IC 7446A,7447A.


7 4 4 6 A ,7 4 4 7A
D ec ima l Inp uts BI / O u tp u ts
or RB O N o te
fu nc ti on N o te
LT RBI D C B A a b c d e F g
(1 )
0 1 1 0 0 0 0 1 0 0 0 0 0 0 1
1 1 X 0 0 0 1 1 1 0 0 1 1 1 1
2 1 X 0 0 1 0 1 0 0 1 0 0 1 0
3 1 X 0 0 1 1 1 0 0 0 0 1 1 0
4 1 X 0 1 0 0 1 1 0 0 1 1 0 0
5 1 X 0 1 0 1 1 0 1 0 0 1 0 0
6 1 X 0 1 1 0 1 1 1 0 0 0 0 0
7 1 X 0 1 1 1 1 0 0 0 1 1 1 1
8 1 X 1 0 0 0 1 0 0 0 0 0 0 0
9 1 X 1 0 0 1 1 0 0 0 1 1 0 0 ( 2)
10 1 X 1 0 1 0 1 1 1 1 0 0 1 0
11 1 X 1 0 1 1 1 1 1 0 0 1 1 0
12 1 X 1 1 0 0 1 1 0 1 1 1 0 0
13 1 X 1 1 0 1 1 0 1 1 0 1 0 0
14 1 X 1 1 1 0 1 1 1 1 0 0 0 0
15 1 X 1 1 1 1 1 1 1 1 1 1 1 1
BI X X X X X X 0 1 1 1 1 1 1 1 ( 3)
R BI 1 0 0 0 0 0 0 1 1 1 1 1 1 1 ( 4)
LT 0 X X X X X 1 0 0 0 1 0 0 0 ( 5)

* 0 = ground, 1 = VCC and X = don't care


Table 6.5.3: logic function table for IC 7448.
7 448
Decimal Inputs BI / Outputs
or RBO
function Note N ote
LT R BI D C B A a b c d e F g
(1 )
0 1 1 0 0 0 0 1 1 1 1 1 1 1 0
1 1 X 0 0 0 1 1 0 1 1 0 0 0 0
2 1 X 0 0 1 0 1 1 1 0 1 1 0 1
3 1 X 0 0 1 1 1 1 1 1 1 0 0 1
4 1 X 0 1 0 0 1 0 1 1 0 0 1 1
5 1 X 0 1 0 1 1 1 0 1 1 0 1 1
6 1 X 0 1 1 0 1 0 0 1 1 1 1 1
7 1 X 0 1 1 1 1 1 1 1 0 0 0 0
8 1 X 1 0 0 0 1 1 1 1 1 1 1 1
9 1 X 1 0 0 1 1 1 1 1 0 0 1 1 ( 2)
10 1 X 1 0 1 0 1 0 0 0 1 1 0 1
11 1 X 1 0 1 1 1 0 0 1 1 0 0 1
12 1 X 1 1 0 0 1 0 1 0 0 0 1 1
13 1 X 1 1 0 1 1 1 0 0 1 0 1 1
14 1 X 1 1 1 0 1 0 0 0 1 1 1 1
15 1 X 1 1 1 1 1 0 0 0 0 0 0 0
BI X X X X X X 0 0 0 0 0 0 0 0 ( 3)
RBI 1 0 0 0 0 0 0 0 0 0 0 0 0 0 ( 4)
LT 0 X X X X X 1 1 1 1 0 1 1 1 ( 5)
Note (1): BI/RBO is a wire-AND logic serving as blanking input (BI) and /or ripple
blanking output (RBO).
Experiments in Digital Electronics [146]

Note (2): The blanking input (BI) must be open or held at a high logic level when
output functions 0 through 15 are desired. The ripple-blanking input (RBI)
must be open or high if blanking of a decimal zero is not desired.
Note (3): When a low logic level is applied directly to the blanking input (BI), all
segment outputs are high (46, 47), regardless of the level of any other input.
Note (4): When ripple-blanking input (RBI) and inputs A, B, C, and D are at a low
level with the lamp test input high, all segment outputs go high and the ripple-
blanking output (RBO) goes to a low level (response condition).
Note (5): When the blanking- output (BI/RBO) is open or held high and a low is
applied to the lamp-test input, all segment outputs are low. Input BI/RBO is a
wire-AND logic serving as a blanking input (BI) and /or ripple blanking output
(RBO).
Procedure:
(1) Insert an IC on the power project board. Connect the circuit as shown in
the above figures.
(2) Give binary inputs A, B, C, and D through binary switches or hook them
up to the +5V supply (logic 1) or ground (logic 0).
(3) Observe the outputs.
(4) Prepare the truth table.
Observation Table:
Inp ut s D ecod er -d ri ver ou tp uts
A B C D Com mon anode C om mon ca thode
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1

Result: Verified the operations of display devices and their decoder-drivers.


[147] Combinational Logic Circuits-Data Processing Circuits

Precautions:
1. Check all the IC's and gate used in the circuits before making them use.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-6.6
Object: To study encoder logic circuits and verifies their operations.
Equipment/Components required:
1. Equipment: Power Project board, Digital IC tester, and digital
Multimeter.
2. Components:
ICs: Three 7432 (Quadruple 2-input OR gate), 74147 (Decimal to BCD
priority encoder, active low input and output), 74148 (Priority encoder).
Diode: Four LEDs

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
1. Encoder:
An encoder converts an active input signal into a coded output signal. It has 2n
(or fewer) input lines and n-output lines. The output lines generate the binary code
corresponding to the input value. Table 6.7 is the truth table of the octal to binary
encoder. It has eight inputs and three outputs that generate the corresponding binary
number. Another common type of encoder is the decimal-to-BCD encoder. Fig. 6.6.1
shows the logic diagram for the octal to binary encoder.
Table 6.6.1: truth table of octal to binary encoder

Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 A B C
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
Experiments in Digital Electronics [148]

Design:

These conditions can be expressed by the following output Boolean functions;

A � D1 � D3 � D5 � D7
B � D2 � D3 � D6 � D7
C � D4 � D5 � D6 � D7

The encoder can be implemented with three four-input OR gates as shown in


the Fig6.6.1.
Octal (Input)
D7 D6 D5 D4 D3 D2 D1 D0

1
3 4
2 32 6 9
5 32 8
10 32 C

12
11 1
13 32 3 4
2 32 6
B Binary
5 32
(Output)

9
8
10 32 11 1
12 32 3
2 32 A
13

Fig.6.6.1: octal-to-binary encoder

2. Priority Encoder:

The encoder, which is defined in the above table, has the limitation that only
one input can be active at any given time. If two inputs are active simultaneously, the
output produces an undefined combination. For example, if D3 and D6 are ‘1’
simultaneously, the output of the encoder will be 111 because all three outputs are
equal to ‘1’. This does not represent either binary ‘3’ or binary ‘6’. To resolve this
ambiguity, encoder circuits must establish an input priority to ensure that only one
input is encoded. If we established a higher priority for inputs with higher subscript
[149] Combinational Logic Circuits-Data Processing Circuits

numbers, and if both D3 and D6 are 1 at the same time, the output will be 110 because
D6 has a higher priority than D3.

Another ambiguity in the octal to binary encoder is that an output with all 0’s
is generated when all the inputs are 0; this output is the same as when D0 is equal to
1. The discrepancy can be resolved by providing one more output to indicate that at
least one input is equal to 1.

Table 6.6.2: Truth table of a decimal to BCD priority encoder

Inputs Outputs
D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 A B C D V(valid
Bit)
0 0 0 0 0 0 0 0 0 0 X X X X 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 1
X 1 0 0 0 0 0 0 0 0 0 0 0 1 1
X X 1 0 0 0 0 0 0 0 0 0 1 0 1
X X 0 1 0 0 0 0 0 0 0 0 1 1 1
X X X X 1 0 0 0 0 0 0 1 0 0 1
X X X X X 1 0 0 0 0 0 1 0 1 1
X X X X X X 1 0 0 0 0 1 1 0 1
X X X X X X X 1 0 0 0 1 1 1 1
X X X X X X X X 1 0 1 0 0 0 1
X X X X X X X X X 1 1 0 0 1 1

Using map simplification, the simplified Boolean expressions for the priority
encoder are:
A � D8 � D9
B � D4 D 8 D 9 � D5 D 8 D 9 � D6 D 8 D 9 � D7 D 8 D 9 � D 8 D 9 ( D4 � D5 � D6 � D7 )
C � D2 D 4 D 5 D 8 D 9 � D3 D 4 D 5 D 8 D 9 � D6 D 8 D 9 � D7 D 8 D 9
D � D1 D 2 D 4 D 6 D 8 � D3 D 4 D 6 D 8 � D5 D 6 D 8 � D7 D 8 � D9
V � D0 � D1 � D2 � D3 � D5 � D6 � D7 � D8 � D9
Encoders are also available as ICs. The available packages are given in Table
6.6.3.
Table 6.6.3
IC Description
number
74147 Decimal to BCD priority encoder ( active low input and output)
74148 Priority encoder
Experiments in Digital Electronics [150]

(a)

Decimal Inputs BCD Outputs BCD


(active low inputs) (active low outputs) (negative logic)
1 2 3 4 5 6 7 8 9 D C B A
1 1 1 1 1 1 1 1 1 1 1 1 1 0
x x x x x x x x 0 0 1 1 0 9
x x x x x x x 0 1 0 1 1 1 8
x x x x x x 0 1 1 1 0 0 0 7
(b) x x x x x 0 1 1 1 1 0 0 1 6
x x x x 0 1 1 1 1 1 0 1 0 5
x x x 0 1 1 1 1 1 1 0 1 1 4
x x 0 1 1 1 1 1 1 1 1 0 0 3
x 0 1 1 1 1 1 1 1 1 1 0 1 2
0 1 1 1 1 1 1 1 1 1 1 1 0 1

VCC 5V

LED’s

14
6
(c) 7
9
BCD outputs

Fig. 6.6.2: IC 74LS147 (a) Pin diagram (b) Function table (c) Block diagram of
decimal to BCD encoder.
[151] Combinational Logic Circuits-Data Processing Circuits

The function table for Deciml to BCD encoder and octal to binary encoder are
shown in table 6.6.4.
Table 6.6.4: (a) Decimal to BCD encoder (b) Octal to binary encoder
Inputs Outputs
E1 E2 E3 E4 E5 E6 E7 E8 E9 QD QC QB QA
1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 0
X 0 1 1 1 1 1 1 1 1 1 0 1
X X 0 1 1 1 1 1 1 1 1 0 0
X X X 0 1 1 1 1 1 1 0 1 1
X X X X 0 1 1 1 1 1 0 1 0
X X X X X 0 1 1 1 1 0 0 1
X X X X X X 0 1 1 1 0 0 0
X X X X X X X 0 1 0 1 1 1
X X X X X X X X 0 0 1 1 0
(a)
EI E0 E1 E2 E3 E4 E5 E6 E7 QC QB QA GS E0
1 X X X X X X X X 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 1 1 1 1 1 0 1
0 X 0 1 1 1 1 1 1 1 1 0 0 1
0 X X 0 1 1 1 1 1 1 0 1 0 1
0 X X X 0 1 1 1 1 1 0 0 0 1
0 X X X X X 1 1 1 0 1 1 0 1
0 X X X X X 0 1 1 0 1 0 0 1
0 X X X X X X 0 1 0 0 1 0 1
0 X X X X X X X 0 0 0 0 0 1
(b)
The GS is active low when any input is low : This indicates when any input is
active. The EO (Enable output) is active low when all inputs are high. Using the
enable output along with the enable input (EI), allows priority encoding of N-input
Experiments in Digital Electronics [152]

Octal Inputs BCD Outputs


Enable 0 1 2 3 4 5 6 7 C B A GS Enable
Input Output
1 x x x x x x x x 1 1 1 1 1
0 1 1 1 1 1 1 1 1 1 1 1 1 0
0 x x x x x x x 0 0 0 0 0 1
0 x x x x x x 0 1 0 0 1 0 1
(b) 0 x x x x x 0 1 1 0 1 0 0 1
0 x x x x 0 1 1 1 0 1 1 0 1
0 x x x 0 1 1 1 1 1 0 0 0 1
0 x x 0 1 1 1 1 1 1 0 1 0 1
0 x 0 1 1 1 1 1 1 1 1 0 0 1
0 0 1 1 1 1 1 1 1 1 1 1 0 1

VCC 5V

LED’s

6
7
(c) 9
Binary outputs

EI

Fig.6.6.3: 74LS148 (a) pin diagram and (b) function table (c) Block diagram of
octal to binary encoder.
Procedure:
(1) Insert an IC on the power project board. Connect the circuit as shown
above.
(2) Give input through binary switch or hook them up to the +5V supply
(logic 1) or ground (logic 0).
(3) Observe the outputs.
(4) Prepare the truth table.
[153] Combinational Logic Circuits-Data Processing Circuits

Observation Table:
1. Decimal to BCD priority encoder:
Decimal Inputs BCD Outputs BCD
(active low inputs) (active low outputs) (negative logic)
1 2 3 4 5 6 7 8 9 D C B A
1 1 1 1 1 1 1 1 1
x x x x x x x x 0
x x x x x x x 0 1
x x x x x x 0 1 1
x x x x x 0 1 1 1
x x x x 0 1 1 1 1
x x x 0 1 1 1 1 1
x x 0 1 1 1 1 1 1
x 0 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1

1. Octal to binary encoder:


Octal Inputs BCD Outputs
Enable 0 1 2 3 4 5 6 7 C B A GS Enable
Input Output
1 x x x x x x x x
0 1 1 1 1 1 1 1 1
0 x x x x x x x 0
0 x x x x x x 0 1
0 x x x x x 0 1 1
0 x x x x 0 1 1 1
0 x x x 0 1 1 1 1
0 x x 0 1 1 1 1 1
0 x 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1 1

Result: Verified the above encoder logic circuits.


Precautions:
1. Check all IC's used in the circuits before making them use.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
Experiments in Digital Electronics [154]

7. Sequential Circuits-Flip-Flops
EXPERIMENT-7.1
Object: To study and verify the operation of SR, D, JK, and T Flip-Flops using universal
gate ICs.
Equipment/Components required:
1. Equipment: Power Project board and Digital Digital Multimeter.
2. Components:
ICs: One 7404 (Hex inverter), One 7400 (Quadruple 2-input NAND
gates), One 7402 (Quadruple 2-input NOR gates), One 7410 (Triple 3-
input NAND gates).
Diode: Two LEDs

Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:

A Flip-flop is a digital circuit that has two outputs, Q and Q , which are always
in opposite states. If Q is 1, then Q is 0, and the flip-flop is said to be set, on, or preset.
If Q is 0, then Q is 1 and the flip-flop is said to be reset, off, or cleared. It is also
known as a sequential circuit, which can maintain a binary state indefinitely (as long
as power is delivered to the circuit) until directed by an input signal to switch states.
The most basic types of flip-flops operate at signal levels and are referred to as latches.
Flip-flops are constructed from basic circuits (latch). There are several types of flip-
flop, and the control inputs vary with each type.
1. Latches Types:
1.1 SR latch:
The two NAND gates are cross-coupled so that the output first NAND/NOR
gate is connected to one of the input of second NAND/NOR gate and vice-versa. It
has two inputs, ‘S’ (set) and ‘R’ (reset). The two crossed NAND/NOR gates in Fig.
7.1.1 and 7.1.2 form a set reset latch.
[155] Sequential Circuits-Flip-Flops

Inputs Outputs Comments


S R Q Q
0 0 Q(t) Q (t ) Present state

0 1 0 1 Reset
1 0 1 0 Set
1 1 0 0 Race condition
(a) (b) (c)
Fig.7.1.1: SR latch with NOR gates (a) function table (b) logic diagram (c)
graphic symbol
Inputs Outputs Comments
S R Q Q
0 0 1 1 Race condition
0 1 1 0 Set
1 0 0 1 Reset
1 1 Q(t) Q (t ) Present state

(a) (b) (c)


Fig.7.1.2: SR latch with NAND gates (a) function table (b) logic diagram (c)
graphic symbol
1.2 SR latch with control input:
The latch can be modified by providing an additional control input that
determines when the state of the latch can be changed. The logic diagram and its
function table are shown in Fig.7.1.3.
Inputs Outputs Comments
C S R Q Q
0 X X Q(t) Q (t ) No change

1 0 0 Q(t) No change
Q (t )

1 0 1 0 1 Reset
1 1 0 1 0 Present state
1 1 1 1 1 Race condition
(a) (b) (c)
Fig.7.1.3: SR latch with NAND gates and control input (a) function table (b)
logic diagram (c) graphic symbol
Experiments in Digital Electronics [156]

1.3 D-Latch:
One way to eliminate the race condition/undesirable condition of the
indeterminate state in the SR latch is D-latch. This circuit is often called a data/
transparent latch. The logic diagram and its function table are shown in Fig.7.1.3.
Inputs Outputs D
1 2 1
3
2 00 Q

D Q Q Comments
4
0 0 0 Set 5 00
6
Q
1 1 0 Reset
(a) (b) (c)
Fig.7.1.4: D latch with NAND gates (a) function table (b) logic diagram (c)
graphic Symbol
1.4 D-Latch with control input:
This latch has only two inputs {D (data) and C (control)} and two outputs
� Q andQ � . The logic diagram and its function table are shown in Fig.7.1.4.
Input Outputs
s
C D Q Q Comments

0 X Q(t) Q (t ) No change/Present
state

1 0 0 1 Reset
1 1 1 0 Set

(a) (b) (c)


Fig.7.1.5: D latch with control input (a) function table (b) logic diagram (c)
graphic Symbol
2. Flip-Flops Types:
The state of a latch or flip-flop is switched by a change in the control input.
This momentary change is called a trigger and the transition it causes is said to trigger
the flip-flop. The D-latch with pulses in its control input is essentially a flip-flop that
is triggered every time the pulse goes to the logic 1 level. As long as the pulse input
remains in this level, any changes in the data input will change the output and the state
of the latch.
Flip-flop circuits are constructed in such a way as to make them operate properly
when they are part of a sequential circuit that employs a common clock. The problem
[157] Sequential Circuits-Flip-Flops

with the latch is that it responds to a change in the level of a clock pulse. A positive
level response in the control input allows changes, in the output when the input changes
while the clock pulse stays at logic 1. The key to proper operation of a flip-flop is to
trigger it only during a signal transition. A clock pulse goes through two transitions
from 0 to 1 and return from 1 to 0. The positive transition is defined as the positive-
edge and the negative transition as the negative-edge as shown in Fig.7.1.6 (b, and c).
There are two ways that a latch can be modified to form a flip-flop. One way
is to employ two latches in a special configuration that isolates the output of the
flip-flop from being affected while its input is changing. Another way is to produce a
flip-flop that triggers only during a signal transition (from 0 to 1 or from 1 to 0), and
is disabled during the rest of the clock cycle pulse duration. Positive edge means
positive transition i.e. signal transition from 0 to 1. Negative edge means negative
transition, i.e. signal transition from 1 to 0.

(a) Response to positive level (b) Positive-edge response (c) negative-edge response
Fig.7.1.6: clock response in latch and flip-flop
2.1 Edge-triggered D, JK and T flip-flop:
A clock input is included in edge-triggered flip-flops. This input is marked
with a small triangle. The most economical and efficient flip-flop is the edge-triggered
D flip-flop because it requires the smallest number of gates. Other types of flip-flops
that can be constructed by using the D flip-flop and external logic used in the design
of digital systems are the JK and T flip-flops. Fig.7.1.7 shows the function table,
graphic symbol of the D flip-flop. The function table, graphic symbol of a JK and T
flip-flop constructed with a D flip-flop is shown in Fig. 7.1.8.and Fig. 7.1.9. There are
three operations performed on a flip-flop: set it to 1, reset it to 0, or compliment its
output. This can be verified by investigating the circuit applied to the D input:

Inputs Output Comments


CLK D Q Q
0 X Q(t) Q (t ) Present State
No change

1 0 0 1 Set
1 1 1 0 Reset

(a) (b) (c)


Fig.7.1.7: Positive edge-triggered D Flip-Flop (a) functional table (b) logic
diagram (c) graphic symbol.
Experiments in Digital Electronics [158]

Inputs Output Comments


CLK J K Q Q
0 X X Q(t) Q (t ) Present State/
No change

1 0 0 Q(t) Q (t ) No change

1 0 1 1 0 Set
1 1 0 0 1 Reset
1 1 1 Q (t ) Q (t ) Toggle

(a) (b) (c)


Fig.7.1.8: Positive edge-triggered JK Flip-Flop (a) function table (b) logic
diagram (c) graphic symbol

Inputs Output Comments


CLK T Q Q
0 X Q(t) Q (t ) Present State/
No change
1 0 Q(t) Q (t ) Present State/
No change
1 1 Q (t ) Q(t) Toggle

(a) (b) (c)


Fig.7.1.9: Positive edge-triggered T Flip-Flop (a) function table (b) logic
diagram (c) graphic symbol
2.2 Race-Around Condition of JK flip-flop:
The inherent difficulty of S-R flip-flop (i.e., S = R = 1) is eliminated by using
the feedback connections from the outputs to the inputs of gate as shown in the JK
flip-flop using NAND gates. The truth tables and next state tables of JK and SR flip-
flop were formed with the assumption that the inputs do not change during the clock
pulse (CLK=1). But the consideration is not true because of the feedback connections.

Fig, 7.1.10: A clock pulse.


[159] Sequential Circuits-Flip-Flops

In JK flip-flop the inputs are J = K = 1 and Q = 1, and a pulse as shown in Fig,


7.1.10 is applied at the clock input. After a time interval t p equal to propagation delay
through two NAND gates in series, the outputs will change to Q = 0. So now we have
J = K = 1 and Q = 0. After another time interval of the output will change back to Q=1.
Hence, we conclude that for the time duration to �t of the clock pulse, the output will
oscillate between 0 and 1. Hence, at the end of the clock pulse, the value of the output
is not certain. This situation is referred to as race-around condition.
Generally, the propagation delay of TTL gates is of the order of nano-seconds.
So if the clock pulse is of the order of micro-seconds, then the output will change
thousands of times within the clock pulse. This race-around condition can be avoided
if �t � 2t p � T . Due to the small propagation delay of the ICs, it may be difficult to
satisfy the above condition. A more practical way to avoid the problem is to use the
master-slave configuration.
1.1 Master-Slave D Flip-flop:
The first latch is called the master and the second, the slave. The circuit samples
the D input and changes its output Q only at the positive-edge of the clock input.
When the clock is 0, the output of the inverter is 1. The slave latch is enabled and its
output Q is equal to the master output. The master latch is disabled because the clock
is 0. When the input pulse changes to the logic 1 level, the data from the external D
input is transferred to the master. The slave, however, is disabled as long at the clock
remains in the 1 level because its clock input is equal to 0. Any change in the input
changes the master output, but can’t affect the slave output. When the pulse returns to
0, the master is disabled and is isolated from the D input. At the same time, the slave
is enabled and the value of the master is transferred to the output of the flip-flop at Q.
Thus, the output of the flip-flop can change only during the operation of the clock
from 1 to 0. It is also possible to design the circuit so that the flip-flop output changes
on the negative edge of the clock. This happens in a flip-flop that has an inverter
between the clock terminals of the master and the slave, as shown in Fig. 7.1.11.

(a) (b)
Fig.7.1.11: Master-Slave D Flip-Flop (a) graphic Symbol (b) logic diagram
Experiments in Digital Electronics [160]

2.4 Master-Slave JK flip-flop:


A master-slave (M-S) flip-flop is shown in Fig. 7.1.12. Basically a master-
slave flip-flop is a system of two flip-flops-ones being designated as master and the
other is the slave. The clock pulse is applied to the master and the inverted version of
the same clock pulse is applied to the slave. When CLK=1, the first flip-flop (i.e., the
master) is enabled and the outputs Qm and Q m respond to the input J and K, as shown
in figure 7.1.12. At this time, the second flip-flop (i.e., the slave) is disabled because
the CLK is low on the second flip-flop. Similarly, when CLK becomes low, the master
becomes disabled and the slave becomes active, since now the CLK is high. Therefore,
the output Qs and Qs follows the outputs respectively. Since the second flip-flop just
follows the first one, it is referred to as. Hence the configuration is referred to as
master-slave (M-S) flip-flop.

(a) (b)
Fig.7.1.12: JK M-S Flip-Flop (a) logic diagram (b) graphic Symbol
3. Characteristics equations for flip-Flops:
From the function table shown in the above tables, we can make the next state
table.
Table 7.1.1: Next state/ Characteristics equation table
P.S I/Ps N.S P.S I/Ps N.S P.S I/P N.S P.S I/P N.S
Q(t) S R Q(t+1) Q(t) J K Q(t+1) Q(t) D Q(t+1) Q(t) T Q(t+1)
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0 0 1 1 0 1 1
0 1 0 1 0 1 0 1 1 0 0 1 0 1
0 1 1 X 0 1 1 1 1 1 1 1 1 0
1 0 0 1 1 0 0 1
1 0 1 0 1 0 1 0
1 1 0 1 1 1 0 1
1 1 1 X 1 1 1 0
* P.S � Present state, N.S � Next state
[161] Sequential Circuits-Flip-Flops

The logical properties of a flip-flop as described in the above function/


characteristic table can be expressed also algebraically with a characteristic/next state
equation. The characteristics equation/next state equation for the SR flip-flop can be
derived from the characteristic table. We obtained
�S � RQ (t )�
Q (t � 1) SR � � �
�SR � 0 �
It states that the next state of the output will satisfy the above two equations.
For the D flip-flop, The characteristic equation is;
Q (t � 1) D � D
It states that the next state of the output will be equal to the value of input D in
the present state. The characteristics equation/next state equation for the JK flip-flop
can be derived from the characteristic table. We obtained
Q(t � 1) JK � QJ � KQ
Where Q is the value of the flip-flop output prior to the application of the
clock edge. The characteristics/next state equation for the T flip-flop is obtained from
the next state output value of the T flip-flop in the next state table.
Q (t � 1) T � T � Q
4. Asynchronous/direct inputs of Flip-Flops:
Some flip-flops have asynchronous inputs that are used to force the flip-flop
into a particular state independent of the clock. The input that sets the flip-flop to 1 is
called a preset or direct set. The input that clears the flip-flop to 0 is called clear or
direct reset. When power is turned on in a digital system, the state of the flip-flop is
unknown. The direct inputs are useful for bringing all the flip-flops in the system to a
know starting state prior to the clocked operation. The function table, circuit diagram,
and graphic symbols of a active high direct inputs of flip-flops are shown in Fig.
7.1.13 and active low inputs are shown in Fig.7.1.14. PRE
1

Asynchronous F lip flop response 2


1
Inputs S
1
3 2 12
Q
00 10
2
PRE CLR 11

0 0 Clocked O peration CLK


0 1 Q = 0 Clear 4 3
6
1 0 Q = 1 Set R
00 4 10 6
Q
5 5

1 1 Not Used 4

3
(a) (b) CLR (c)
Fig. 7.1.13: (a) Active high direct inputs of D type Flip-Flop (a) function table
(b) logic diagram (c) graphic Symbol
Experiments in Digital Electronics [162]
PRE
Asynchronous Flip-flop response
1
Inputs S
1
3 2 12
00 10 Q
2
PRE CLR 13

0 0 Not Used CLK

0 1 Q = 1 Set 4 3
6
1 0 Q = 0 Clear 00
6 4
10 Q
R 5
1 1 Clocked Operation 5

(a) (b) CLR (c)


Fig.7.1.14: active low direct inputs of D type Flip-Flop (a) function table (b)
logic diagram (c) graphic Symbol
Procedure:
(1) Insert ICs on the power project board. Connect the power supply to the
proper pin of the chip.
(2) Construct the circuit on the breadboard.
(3) Connect the LEDs to the output with a current limiting resistor.
(4) Connect the inputs of the gate to the switch provided on the trainer/
board or hook them up to the +5V supply (logic 1) or ground (logic 0) as
required.
(5) Vary these inputs as mentioned in the table and observe LED outputs.
(6) Prepare the truth table.
Observation Table:
P.S Inputs Next P.S Inputs Next P.S I/ Next P.S I/ Next
(I/Ps) state (I/Ps) state P state P state
(N.S) (N.S) (N.S) (N.S)
Q(t) S R Q(t+1) Q(t) J K Q(t+1) Q(t) D Q(t+1) Q(t) T Q(t+1)
0 0 0 0 0 0 Q(t) 0 0 0 0 Q(t)
0 0 1 0 0 1 0 0 1 0 1 Q (t )
0 1 0 0 1 0 1 0 1 0
0 1 1 0 1 1 1 1 1 1
1 0 0 1 0 0
1 0 1 1 0 1
1 1 0 1 1 0
1 1 1 1 1 1
Result: Verified the different latches and flip-flops.
Precautions:
1. Check all the gates inside ICs before putting them to use.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
[163] Sequential Circuits-Flip-Flops

EXPERIMENT-7.2
Object: To study and verify Flip-Flops using ICs.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 74 LS 279 (Quad set-reset latch), One IC 7474 (Dual D flip-
flop), One IC 7473 dual JK flip-flop, One 7476 (Dual JK negative edge
triggered master slave).
Diode: Two LED

Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
1. Flip-flops ICs:
Flip-flops are available in ICs. Some common types of TTL and CMOS family
ICs are:
Most commonly used TTL and CMOS ICs are:-
Number Function
7470 Standard TTL Edge-triggered JK
7472 Standard TTL JK master-Slave
7473 Standard TTL Dual JK master-slave
7474 Standard TTL Dual D
7475 Standard TTL Quad latch
7476 Standard TTL Dual JK negative edge triggered master slave
74100 Standard TTL 4-bit bistable latch
74104 Standard TTL JK master-slave
74105 Standard TTL JK master-slave
74107 Standard TTL Dual JK master slave
74109 Standard TTL Dual JK positive edge triggered
74116 Standard TTL Dual 4-bit latches with clear
74175 Standard TTL Quad D flip-flop with clear
74276 Standard TTL Quad JK flip-flop
74279 LS Quad set-reset latch
74390 Standard TTL Individual clocks with flip-flops
74HC74 CMOS Dual D with set-reset
74HC73 CMOS Dual JK with reset.

2. Function table and pin out diagram:


The following figures show the function table and pin diagram for the different
flip-flop ICs. The function table specifies the circuit operation and pin assignment
Experiments in Digital Electronics [164]

indicate pin numbers. The IC 74LS279 is a quad set-reset latch. The pinout and function

Fig7.2.1: IC 74LS279Set-reset (a) function table (b) pin diagram

Fig7.2.2: IC 7474 Dual D flip-flop (a) function table (b) pin diagram

Fig7.2.3: IC 7473 dual JK flip-flop (a) function table (b) pin diagram
[165] Sequential Circuits-Flip-Flops

The IC 7476 is a dual JK flip-flops. The pinout and function table for this
circuit are given in Fig. 7.2.4.

Fig7.2.4: Dual JK negative edge triggered master slave -7476 (a) function table
(b) pin diagram
Procedure:
(1) Insert ICs on the power project board. Connect the power supply to the
proper pin of the chip.
(2) Connect the LEDs to the output with a current limiting resistor.
(3) Connect the inputs of the IC to the switch provided on the trainer/board
or hook them up to the +5V supply (logic 1) or ground (logic 0) as
required.
(4) Vary these inputs as given in the function table and observe LED outputs.
(5) Prepare the truth table.
Observation Table:
P.S Inputs Next P.S Inputs Next P.S I/P Next P.S I/P Next
(I/Ps) state (I/Ps) state state state
(N.S) (N.S) (N.S) (N.S)
Q (t ) S R Q ( t � 1) Q (t ) J K Q ( t � 1) Q (t ) D Q (t � 1) Q (t ) T Q ( t � 1)

0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 1 0 1
0 1 0 0 1 0 1 0 1 0
0 1 1 0 1 1 1 1 1 1
1 0 0 1 0 0
1 0 1 1 0 1
1 1 0 1 1 0
1 1 1 1 1 1
Result: Verified the output for each flip-flop IC.
Experiments in Digital Electronics [166]

Precautions:
1. Check each gate in ICs before designing the circuit.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-7.3
Object: To study and verify the conversion of Flip-Flops.
Equipment/Components required:
1. Equipment: Power Project board and Digital Multimeter.
2. Components:
ICs: One 74 LS 279 (Quad set-reset latch), One IC 7474 (Dual D flip-flop),
One 7473 dual JK flip-flop, One 7476 (Dual JK negative edge triggered
master slave), One 7400, One 7408, One 7432, One 7404, One 7486.
Diode: Two LED
Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
VLSI contains thousands of gates within one package. Circuits are constructed
by interconnecting various gates to provide a digital system. Each flip-flop is
constructed from an interconnection of gates. The most economical and efficient
flip-flop constructed in this manner is the edge-triggered D flip-flop because it requires
the smallest number of gates. Other types of flip-flops can be constructed by using the
D flip-flop and external logic. JK and T flip-flops are widely used in the design of
digital systems.
To convert one type of flip-flop into another type, a combination circuit is
designed (using function table shown in Table 7.3.1, next state equation shown in
Table 7.3.2, and the excitation table shown in Table 7.3.3) and such that if the inputs
of the required flip-flop are fed as inputs of the combinational circuit and the output
of the combinational circuit is connected to the inputs of the actual flip-flop, then the
output of the actual flip-flop is the output of the required flip-flop.
Table 7.3.1: Function table of flip-flops
Inputs Next Inputs Next I/P Next I/P Next
(I/Ps) state (I/Ps) state state state
(N.S) (N.S) (N.S) (N.S)
S R Q(t+1) J K Q(t+1) D Q(t+1) T Q(t+1)
0 0 Q(t) 0 0 Q(t) 0 0 0 Q(t)
0 1 0 0 1 0 1 1 1 Q (t )
1 0 1 1 0 1
1 1 Race 1 1 Q (t )
[167] Sequential Circuits-Flip-Flops

Table 7.3.2: Next state Characteristics equation table


P.S I/Ps N.S P.S I/Ps N.S P.S I/P N.S P.S I/P N.S
Q(t) S R Q(t+1) Q(t) J K Q(t+1) Q(t) D Q(t+1) Q(t) T Q(t+1)
0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0 0 1 1 0 1 1
0 1 0 1 0 1 0 1 1 0 0 1 0 1
0 1 1 X 0 1 1 1 1 1 1 1 1 0
1 0 0 1 1 0 0 1
1 0 1 0 1 0 1 0
1 1 0 1 1 1 0 1
1 1 1 X 1 1 1 0
Table 7.3.3: Excitation table
P.S N.S Flip-flop inputs
Q(t) Q(t+1) S R J K D T
0 0 0 X 0 X 0 0
0 1 1 0 1 X 1 1
1 0 0 1 X 1 0 1
1 1 X 0 X 0 1 0
Conversion of flip-flops:
With the help of conversion table, we can find the next state decoder circuit
for the actual flip-flop converted to another, which is basically a combination circuit.
1. SR flip-flop to D flip-flop:
Table 7.3.4: Conversion table
P.S N.S N.S Required I/Ps
Q(t) D Q(t+1) S R
0 0 0 0 X
0 1 1 1 0
1 0 0 0 1
1 1 1 X 0
From the above conversion table, the k-map simplification of the Boolean
expressionss for S and R inputs are: S � D , R � D .The SR flip-flop can be converted
into D flip-flop by giving the value of S and R in the SR flip-flop. Fig.7.3.1 shows the
logic diagram for D flip-flop converted from a SR flip-flop and an inverter. Then the
next state equation for SR flip-flop will become the next state equation for the D flip-
flop:

Fig.7.3.1: D flip-flop using SR flip-flop.


Experiments in Digital Electronics [168]

2. SR flip-flop to JK flip-flop:
Conversion table
P.S Flip-fl op I/P s N .S R eq u ired I/Ps
Q(t) J K Q(t+ 1) S R
0 0 0 0 0 X
0 0 1 0 0 X
0 1 0 1 1 0
0 1 1 1 1 0
1 0 0 1 X 0
1 0 1 0 0 1
1 1 0 1 X 0
1 1 1 0 0 1
From the above conversion table, the k-map simplification of the Boolean
expressions for S and R inputs a re: S � QJ , R � QK .The SR flip-flop can be converted
into a JK flip-flop by giving the value of S and R in the SR flip-flop. Fig.7.3.2 shows
the logic diagram for the JK flip-flop converted from the SR flip-flop. Then the next
state equation for the SR flip-flop will become the next state equation for the JK flip-
flop as:
� S � RQ(t ) � ��QJ � (QK )Q ��
Q(t � 1) SR � � ��� �
� SR � 0 � ��QJ .QK � 0 ��
� QJ � (Q � K )Q
� QJ � K Q
� Q(t � 1) JK

3. SR flip-flop to T flip-flop:
Conversion table
P.S Flip flop I/Ps N.S Required I/Ps
Q(t) T Q(t+1) S R
0 0 0 0 X
0 1 1 1 0
1 0 1 X 0
1 1 0 0 1
[169] Sequential Circuits-Flip-Flops

From the above conversion table, the k-map simplification of the Boolean
expressions for S and R inputs are: S � QT , R � QT .The SR flip-flop can be converted
into a T flip-flop by giving the value of S and R in the SR flip-flop. Fig.7.3.3 shows
the logic diagram for the T flip-flop converted from an SR flip-flop and two AND
gates. The next state equation for SR flip-flop will become the next state equation for
the T flip-flop as:

�S � RQ (t )� ��QT � QT ��
Q (t � 1) SR � � ��� �
�SR � 0 � ��QT .QT � o ��
�T �Q
� Q (t � 1) T

Fig.7.3.3: T flip-flop using SR flip-flop.


4. D flip-flop to SR flip-flop:
Conversion table
P.S Flip flop I/Ps N.S Required I/P’s
Q(t) S R Q(t+1) D
0 0 0 0 0
0 0 1 0 0
0 1 0 1 1
0 1 1 X X
1 0 0 1 1
1 0 1 0 0
1 1 0 1 1
1 1 1 X X

From the above conversion table, the k-map simplification of the Boolean
expressions for D input is D � S � RQ � t � . The D flip-flop can be converted into SR
flip-flop by giving the value of D in the D flip-flop. Fig.7.3.4 shows the logic diagram
for D flip-flop converted from the SR flip-flop. The next state equation for D flip-flop
will become the next state equation for the SR flip-flop.
Experiments in Digital Electronics [170]

1
S
3
7432 D Q
2

CLK
1 2 4
R 04 6 Q
5 7408

Fig .7.3.4: SR flip-flop using D flip-flop.


5. D flip-flop to JK flip-flop:
Conversion table
P.S Flip flop I/Ps N.S Required I/P’s
Q(t) J K Q(t+1) D
0 0 0 0 0
0 0 1 0 0
0 1 0 1 1
0 1 1 1 1
1 0 0 1 1
1 0 1 0 0
1 1 0 1 1
1 1 1 0 0
From the above conversion table, the k-map simplification of the Boolean
expressions for D input is: D � QJ � Q K .The D flip-flop can be converted into a JK
flip-flop by giving the value of D in the D flip-flop. Fig.7.3.5 shows the logic diagram
for D flip-flop converted from the JK flip-flop. The next state equation for D flip-flop
will become the next state equation for the JK flip-flop as:
Q(t � 1) D � D � QJ � Q K
� Q(t � 1) JK

1
3
2
00 PRE
J
9 Q5
8 D
10
00 2
CLK
1 04 2 4 3
K 6
00 Q6
5
CLR

Fig.7.3.5: JK flip-flop using D flip-flop..


[171] Sequential Circuits-Flip-Flops

6. D flip-flop to T flip-flop:
Conversion table
P.S Flip-flop I/P’s N.S Required I/P’s
Q(t) T Q(t+1) D
0 0 0 0
0 1 1 1
1 0 1 1
1 1 0 0

From the above conversion table, the k-map simplification of the Boolean
expressions for D input is: D � QT � QT .The D flip-flop can be converted into a T
flip-flop by giving the value of D in the D flip-flop. Fig.7.3.6 shows the logic diagram
for D flip-flop converted from T flip-flop. The next state equation for D flip-flop will
become the next state equation for the T flip-flop as:

Q(t � 1) D � D � QT � QT
� Q(t � 1) T

Fig.7.3.6: T flip-flop using D flip-flop..


7. JK flip-flop to SR flip-flop:
Conversion table:

P.S Flip-flop I/Ps N.S Required I/P’s


Q(t) S R Q(t+1) J K
0 0 0 0 0 X
0 0 1 0 0 X
0 1 0 1 1 X
0 1 1 X X X
1 0 0 1 X 0
1 0 1 0 X 1
1 1 0 1 X 0
1 1 1 X X X
Experiments in Digital Electronics [172]

From the above conversion table, the k-map simplification of the Boolean
expressions for S and R inputs are: J � S , K � R .The JK flip-flop can be converted
into a SR flip-flop by giving the value of J and K in the SR flip-flop. Fig.7.3.7 shows
the logic diagram for the JK flip-flop converted from the SR flip-flop. The next state
equation for JK flip-flop will become the next state equation for the SR flip-flop as:

Q(t � 1) JK � QJ � KQ � QS � RQ � QS � RQ( S � 1) � QS � RQS � RQ


� QS � RQS � RQS � RQ {SR � 0}
� QS � RQ � QS ( R � R ) � QS � QS � RQ
� S � RQ
� Q(t � 1) SR

Fig.7.3.7: SR flip-flop using JK flip-flop..


8. JK flip-flop to D flip-flop:
Conversion table
P.S N.S N.S Required I/P’s
Q(t) D Q(t+1) J K
0 0 0 0 X
0 1 1 1 X
1 0 0 X 1
1 1 1 X 0
From the above conversion table, the k-map simplification of the Boolean
expressions for S and R inputs are: J � D , K � D .The JK flip-flop can be converted
into a D flip-flop by giving the value of J and K in the JK flip-flop. Fig.7.3.8 shows
the logic diagram for D flip-flop converted from JK flip-flop. The next state equation
for JK flip-flop will become the next state equation for the D flip-flop as:
[173] Sequential Circuits-Flip-Flops

Q (t � 1) JK � QJ � Q K � QD � QD
�D
� Q (t � 1) D

9. JK flip-flop to T flip-flop:
Conversion table
P.S N.S N.S Required I/P’s
Q(t) T Q(t+1) J K
0 0 0 0 X
0 1 1 1 X
1 0 1 X 0
1 1 0 X 1
From the above conversion table, the k-map simplification of the Boolean
expressions for J and K inputs are: J � T , K � T .The JK flip-flop can be converted
into a T flip-flop by giving the value of J and K in the JK flip-flop. Fig.7.3.9 shows the
logic diagram for T flip-flop converted from JK flip-flop. Then the next state equation
for JK flip-flop will become the next state equation for the T flip-flop as:

Q(t � 1) JK � QJ � Q K � QT � QT
�T �Q
� Q(t �

Fig.7.3.9: T flip-flop using JK flip-flop.


Experiments in Digital Electronics [174]

10. T flip-flop to SR flip-flop:


Conversion table
P.S Flip-flop I/Ps N.S Required I/P’s
Q(t) S R Q(t+1) T
0 0 0 0 0
0 0 1 0 0
0 1 0 1 1
0 1 1 X X
1 0 0 1 0
1 0 1 0 1
1 1 0 1 0
1 1 1 X X

From the above conversion table, the k-map simplification of the Boolean
expressions for T input is: T � QS � QR .The T flip-flop can be converted into a SR
flip-flop by giving the value of T in the T flip-flop. Fig.7.3.10 shows the logic diagram
for SR flip-flop converted from T flip-flop. The next state equation for T flip-flop will
become the next state equation for the SR flip-flop as:
Q (t 1) T QT QT Q (QS QR ) Q QS QR
QS Q QR S Q S R QS QR QS R
QS QR QS R QSR QS (1 R ) QR (1 S ) QS QR ( S 1)
QS QR QRS QRS QS QR QS
S Q Q QR S QR
S QR
SR 0 SR
Q (t 1) SR

1
3
2 08
S

1 Q Q
3 T
2
32
CLK
4
R 6
08 Q Q
5

Fig.7.3.10: SR flip-flop using T flip-flop.


[175] Sequential Circuits-Flip-Flops

11. T flip-flop to D flip-flop:


Conversion table:
P.S Flip-flop I/Ps N.S Required I/P’s
Q(t) D Q(t+1) T
0 0 0 0
0 1 1 1
1 0 0 1
1 1 1 0
From the above conversion table, the k-map simplification of the Boolean
expressions for D input is: T � QD � Q D � Q � D .The T flip-flop can be converted
into D flip-flop by giving the value of T in the T flip-flop. Fig.7.3.11 shows the logic
diagram for D flip-flop converted from the T flip-flop. The next state equation for T
flip-flop will become the next state equation for the D flip-flop as:

Q(t � 1) T � Q � T � Q � Q � D � 0 � D � D
� Q(t � 1) D

1
3
Q
86 T
D 2
CLK

Fig.7.3.11: D flip-flop using T flip-flop.


12. T flip-flop to JK flip-flop:
Conversion table:
P.S Flip-flop I/P N.S Required I/P
Q(t) J K Q(t+1) T
0 0 0 0 0
0 0 1 0 0
0 1 0 1 1
0 1 1 1 1
1 0 0 1 0
1 0 1 0 1
1 1 0 1 0
1 1 1 0 1
Experiments in Digital Electronics [176]

From the above conversion table, the k-map simplification of the Boolean
expressions for T input is: T � QJ � QK .The T flip-flop can be converted into a JK
flip-flop by giving the value of T in the T flip-flop. Fig.7.3.12 shows the logic diagram
for the JK flip-flop converted from the T flip-flop. The next state equation for T flip-
flop will become the next state equation for the JK flip-flop as:

Q (t � 1) T � Q � T � Q � (Q J � QK ) � Q (QJ � QK ) � Q (QJ � QK )

� QJ � Q (QJ .QK ) � QJ � Q{(Q � J ).(Q � K )}


� QJ � Q K � Q J K � Q J � Q K (1 � J ) � Q J � Q K
� (Q (t � 1) JK

1
3
2
00
J
9 Q
8 T
10 00
CLK
4
K 6
00 Q
5

Fig.7.3.12: JK flip-flop using T flip-flop.


Procedure:
(1) Insert ICs on the power project board. Connect the power supply to the
proper pin of the chip.
(2) Construct each logic circuit on the breadboard.
(3) Connect the LEDs to the output with a current limiting resistor.
(4) Connect the inputs of the gate to the switch provided on the trainer/
board or hook them up to the +5V supply (logic 1) or ground (logic 0) as
required.
(5) Vary the inputs and observe next state output through LED output.
[177] Sequential Circuits-Flip-Flops

(6) Prepare the truth table.


Observation Table:
Inputs Next Inputs Next I/P Next I/P Next
(I/Ps) state (I/Ps) state state state
(N.S) (N.S) (N.S) (N.S)
S R Q(t+1) J K Q(t+1) D Q(t+1) T Q(t+1)
0 0 0 0 0 0 0
0 1 0 1 1 1 1
1 0 1 0
1 1 1 1

Result: Verified the all converted flip-flops.


Precautions:
1. Check all ICs and gates before making use of them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
[178]

8. Sequential Circuits-Registers
EXPERIMENT-8.1
Object: To study and verify the operation of the 4-bit shift right register using D-Flip-
Flops.
Equipment/Components required:
1. Equipment: Power Project board, Edge triggered generator, and digital
multimeter.
2. Components:
ICs: Two 7474 (Dual D-type edge-triggered flip-flop), three 7400.
Diode: Four LED
Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
A register is a device capable of storing a number of bits. We know that a
flip-flop has a memory element. Thus, flip-flop can be connected together to form a
register. A shift register consists of a group of flip-flops connected so that each flip-
flop transfers its bit of data to the next flip-flop of the register when a clock pulse
arrives. Data may have to be shifted left or shifted right. We have shifted left and
shifted right registers.
The data can be in serial form or parallel form. Thus we can have four types of
shift registers:
1. Serial in- Serial out: The data is loaded into and read from the shift register
serially. Fig.8.1.1 shows the circuit of a 4-bit serial in-serial out (SISO) shifts right
register using four D flip-flops. The Q outputs of one state are connected to the D
input of the next state. Thus, the inputs to second, third and fourth flip-flop are
conditioned by their preceding flip-flops. The data in each flip-flop is shifted to the
next flip-flop on the arrival of a positive edge of clock pulse. Since it is a 4 bit register,
4 clock pulses are required to shift the data through this register.
[179] Sequential Circuits-Registers

VCC VCC

14 logic ‘1’ logic ‘1’ 14 logic ‘1’ logic ‘1’


4 10 4 10
2 D PRE1 5 12 D PRE2
9 2D PRE3
12 D PRE4
Q4
(SI) 1 Q1 2 Q2 3 Q3 4
5 9

CLK 11 3 11
CLK1 CLK2 CLK3 CLK4
3 1 2 3 4
Q1 6 Q2 8 Q3 6 Q4
CLR1 CLR2 CLR3 CLR4 8
1 13 1 13
CLR1

GND GND

Fig.8.1.1: SISO shifts right register.


2. Serial in-Parallel out: The data is loaded into the register serially but read
in parallel mode, i.e., data is available from all bits simultaneously. Fig.8.1.2 shows
the circuit of a 4-bit serial in-parallel out (SIPO) shifts right register using four D
flip-flops. The Q outputs of one state are connected to the D input of the next state.
Thus, the inputs to second, to the third and fourth flip-flop are conditioned by their
preceding flip-flops. The data in each flip-flop is shifted to the next flip-flop on the
arrival of a positive edge of the clock pulse. Output terminals and data are available at
all of them together. Since it is a 4 bit register, after 4 clock pulses we see all the data
is available in the outputs of this register.
PRE logic '1'

� VCC � VCC

14 14
4 10 4 10
PRE1 PRE2 PRE3 PRE4
2 D 5 12 D 9 2 D 12 D
Q4
(SI) 1 Q1 2 Q2 3 Q3 4
5 9

CLK 11 3 11
CLK1 CLK2 CLK3 CLK4
3 1 2 3 4
Q1 6 Q2 8 Q3 6 Q4
CLR1 CLR2 CLR3 CLR4 8
1 13 1 13
GND GND
CLR logic '1'

Q1 Q2 Q3 Q4

(Data parallel out)


Fig.8.1.2: SIPO shifts right register.
Experiments in Digital Electronics [180]

3. Parallel in- Serial out: The data is loaded in parallel form and read serially.
Fig.8.1.3 shows the circuit of a 4-bit parallel in-serial out (PISO) shifts right with four
bits. It uses D flip-flops and four data input lines: A (LSB), B, C, and D. Moreover, it
has a Shift Load input which allows four bits of data to be entered into the register
simultaneously. When control input is low, the output of gates G1, G4, G7 will be the
complement of the input data � i.e. � B,C,D � , while the output of gates G2, G5, G8 will
remain in the logic '1' state. The output of gates G1G2, G4G6 and G7G8 are connected to
the input of gate G3 G6 G9 . Hence, the output of gates G3 G6 G9 will be the complement

� �
of the input data i.e. � B,C,D � B,C,D . In this mannar, data is loaded into the input of
each flip-flop. Similarly, when the control input is high, data is shifted from left to
right.

A (LSB)
B C D (MSB)
Shift
Load

1 12 9
3 11 8
2 00 9 13 00 1 10 00 1
8 3 3
4 10 00 4 2 00 12 2 00
5 00 5 00 13 00
� VCC
6 6
� VCC 11

14 logic ‘1’ logic ‘1’ 14 logic ‘1’ logic ‘1’

4 10 4 10
2 D PRE1 5 D2
PRE2
2 D PRE3
D4
PRE4
Q4
1 Q1 Q2 3 Q3
12 9 5 12 9

CLK 11 3 CLK3 11
CLK1 CLK2 CLK4
3 1 2 3 4
Q1 6 Q2 8 Q3 6 Q4
CLR1 CLR2 CLR3 CLR4 8
1 13 1 13
GND GND

CLR logic '1'

Fig.8.1.3: PISO shifts right register.

4. Parallel in-Parallel out: The data is loaded in parallel and read from the
register in parallel, i.e., all bits are loaded simultaneously and read simultaneously.
Fig.8.1.4 shows the circuit of a 4-bit parallel in-parallel out (PIPO) shifts right register
using four D flip-flops. The data in each flip-flop is shifted to the output the arrival of
a positive edge of clock pulse. Output terminals and data are available at all of them
together. A, B, C, and D are the parallel data bits and Q1, Q2, Q3, and Q4 are parallel
data outputs. After one clock pulse, all the input data is available in the outputs.
[181] Sequential Circuits-Registers

Parallel data in (PI)

A B C D
� VCC � VCC

14
4 10 4 10
2 D PRE1 5 D2
PRE2
9 D3
PRE3
D4
PRE4
Q4
1 Q1 Q2 Q3
12 2 5 9

CLK 3 11 3 11
CLK1 CLK2 CLK3 CLK4
1 2 3 4
Q1 6 Q2 8 Q3 6 Q4 8
CLR1 CLR2 CLR3 CLR4
1 13 1 13

PRE / CLR
�logic '1' � Q1
GND
Q2 Q3
GND
Q4

(Data parallel out)


Fig.8.1.4: PIPO shifts right register.
Procedure:
(1) Insert the IC in the proper place on the power project board.
(2) Connect the circuit as shown in the above figures.
(3) Connect LED to the output through a current limiting resistor.
(4) Give input to the flip-flop and start the clock generator.
(5) Observe LED output.
(6) Verify that on application of one clock pulse, the data is transferred by
one bit to the right.
Observation Table:
1. SISO shift right register.
Inputs Output
Data clock Q1 Q2 Q3 Q4
Experiments in Digital Electronics [182]

2. SIPO shift right register.


Inputs Output
Data clock Q1 Q2 Q3 Q4

3. PISO shift right register.

Inputs Output
Shift
Data Load
clock Q1 Q2 Q3 Q4

4. PIPO shift right register.

Inputs Output
Shift
Data Load
clock Q1 Q2 Q3 Q3

Result: Verified the 4-bit shift right registers using D-Flip-Flops.


Precautions:
1. Check all the flip-flops before putting them to use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-8.2
Object: To study and verify the operation of the 4-bit shift right register using registers
IC's.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
[183] Sequential Circuits-Registers

2. Components:
ICs: One 7491 (8-bit serial shift register, totem pole output), One 74164
(8-bit shift register with parallel outputs, totem pole output), One 74165
(8-bit shift register with parallel inputs, totem pole output), One 74195
(4-bit universal shift register),
Diode: four LEDs.

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
A register is a group of flip-flops connected so that each flip-flop transfers its
bit of data to the next flip-flop of the register when a clock pulse arrives. Data may
have to be shifted left or shifted right. Thus, we have shifted left and shifted right
registers. The data can be in serial form or parallel form. Thus, we can have four types
of shift register ICs.
1. Serial in-Serial out:
IC type 7491 is an 8-bit serial shift register with totem pole output. It uses
eight clocked SR flip-flops. Thus, it is an 8-bit register; designated as SRG 8 (shift
register 8 bits). A and B are two input lines. When data is entered into A, B must be

t n : Time before clock pulse,

t n�8 : Time after eight clock pulse


X : Don't care
Fig.8.2.1: IC type 7491 (a) function table (b) pin diagram
2. Serial in-Parallel out:
IC type 74164 is 8-bit shift register with parallel totem pole output. It has two
serial inputs, A and B, an active low reset (R) and parallel outputs QA to QH. It uses SR
flip-flops.Fig.8.2.2 shows the function table and pin diagram of IC 74164.
Experiments in Digital Electronics [184]

Input Output
tn tn+1

R T A B QA QB ….QH
0 X X X 0 0…0
1 0 X X No change
1 ? 1 1 1 Shift
1 ? 0 X 0 Shift
1 ? X 0 0 Shift

(a) (b)
R = Reset input, T = clock input, A B = enable input
QA , QB ...QH � data outputs,QA � LSB.
Fig.8.2.2: IC type 74164 (a) function table (b) pin diagram
3. Parallel in-Serial out:
IC type 74165 is 8-bit shift register with parallel inputs, totem pole output,
with Load (S/L) terminal. A, B, C, D, E, F, G, H are the terminals for 8-bit data
Shift

input. An additional terminal SE is provided for serial data input. The clock can be
inhibited any time by a high on its CLKINH input. The serial data output is QH and its

FE = Enable input, SE = serial input on shift register,


SQ = serial output on shift register,
Fig.8.2.3: IC 74165 (a) function table (b) pin diagram
4. Parallel in-Parallel out:
IC type 74195 is a 4-bit universal shift register with a Shift
Load (S/L) terminal.
[185] Sequential Circuits-Registers

When S/L input is low, the data on parallel lines A, B, C, and D can be entered
synchronously on the positive edge of the clock pulse. When S/L input is high, then
stored data shifts to the right (i.e. QA to QD) synchronously with the clock. This IC can
also be used for serial input-serial output. J and K are serial data inputs to the first
stage of IC. A QD can be used for serial data output. The active low clear is
asynchronous. Fig.9.2.4 shows the function table and pin diagram of IC 74195.
Input Output
R S/L T J K QA QB QC QD
1 1 0 X X No change in output
1 1 ↑ 0 1 No change in output
0 X X X X Asynchronous clear
1 0 ↑ X X Load input data
1 1 ↑ 0 0 Shift from
QA towards QD, QA = 0
1 1 ↑ 1 1 Shift from
QA towards QD, QA = 0
1 1 ↑ 1 0 Q Shift right
n

(a) (b)
Fig.8.2.4: IC 74195 (a) function table (b) pin diagram
Procedure:
(1) Insert the IC in the proper place on the power project board.
(2) Connect the circuit as shown in the above figures.
(3) Connect LED to the output through a current limiting resistor.
(4) Give input to the flip-flop and start the clock generator.
(5) Observe LED output.
(6) Verify that on application of one clock pulse, the data is transferred by
one bit to the right or left.
Observation Table:
1. SISO shift right register.
Inputs Outputs
Data clock QA QB QC QD
Experiments in Digital Electronics [186]

2. SIPO shift right register.


Inputs Outputs
Data clock QA QB QC QD

3. PISO shift right register.


Inputs Outputs
Shift
Data Load
clock QA QB QC QD

4. PIPO shift right register.


Inputs Outputs
Shift
Data Load
clock QA QB QC QD

Result: Verified the 4-bit shift right registers using register IC's.
Precautions:
1. Check all the flip-flops before putting them to use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-8.3
Object: To study and verify the function table operation of the 4-bit shift right register
using registers IC.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
[187] Sequential Circuits-Registers

2. Components:
ICs: One 7491 (8-bit serial shift register, totem pole output), One 74164
(8-bit shift register with parallel outputs, totem pole output), One 74165
(8-bit shift register with parallel inputs, totem pole output), One 74195
(4-bit universal shift register),
Diode: Four LED
Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
A register is a group of flip-flops connected so that each flip-flop transfers its
bit of data to the next flip-flop of the register when a clock pulse arrives. Data may
have to be shifted left or shifted right. Thus, we have shifted left and shifted right
registers. The data can be in serial form or parallel form. Thus, we can have four types
of shift register ICs.
1. Serial in-Serial out:
IC type 7491 is an 8-bit serial shift register, totem pole output. It uses eight
clocked SR flip-flops. Thus, it is an 8-bit register; designated as SRG 8 (shift register
8 bits). A and B are two input lines. When data is entered into A, B must be high and
vice versa. Fig.8.2.1 shows the function table and pin diagram of the 7491.
2. Serial in-Parallel out:
IC type 74164 is an 8-bit shift register with a parallel totem pole output. It has
two serial inputs, A and B, active low reset (R) and parallel outputs QA to QH. It uses
SR flip-flops.Fig.8.2.2 shows the function table and pin diagram of IC 74164.
3. Parallel in-Serial out:
IC type 74165 is an 8-bit shift register with parallel inputs, a totem pole output,
with a Shift Load (S/L) terminal. A, B, C, D, E, F, G, H are the terminals for 8-bit data
input. An additional terminal SE is provided for serial data input. The clock can be
inhibited at any time by a high on its CLKINH input. The serial data output is QH and
its complement is Q H Fig.8.2.3 shows the function table and pin diagram of IC 74165.
4. Parallel in-Parallel out:
IC type 74195 is a 4-bit universal shift register, with (S/L) terminal. When S/
L input is low, the data on parallel lines A, B, C, and D can be entered synchronously
on the positive edge of the clock pulse. When S/L input is high, then stored data shifts
to the right (i.e. QA to QD) synchronously with clock. This IC can also be used for
serial input-serial output. J and are serial data inputs to the first stage of IC. A QD can
be used for serial data output. The active low clear is asynchronous. Fig.8.2.4 shows
the function table and pin diagram of IC 74195.
Experiments in Digital Electronics [188]

Procedure:
(1) Insert the registered IC in the proper place on the power project board.
(2) Connect LED to the output through a current limiting resistor.
(3) Give input to register and start the clock generator.
(4) Observe LED output.
(5) Verify that on application of one clock pulse, the data is transferred by
one bit to the right or left.
Observation Table:
1. Serial in- Serial out: IC type 7491
Input Output
tn tn+8
A B Q Q
1 1
0 X
X 0
2. Serial in- Parallel out: IC type 74164.
Input Output
tn tn+1
R T A B QA QB….QH
0 X X X
1 0 X X
1 ↑ 1 1
1 ↑ 0 X
1 ↑ X 0
3. Parallel in- Serial out: IC type 74165

Input Intern Output

S/L FE T A…H SE QA QB...QG QH = SQ


0 X X X
1 0 0 X X
1 1 X X X
1 0 ↑ X
[189] Sequential Circuits-Registers

4. Parallel in- Parallel out: IC type 74195.


Input Output
R S/L T J K QA QB QC QD
1 1 0 X X
1 1 ↑ 0 1
0 X X X X
1 0 ↑ X X
1 1 ↑ 0 0
1 1 ↑ 1 1
1 1 ↑ 1 0
Result: Verified the 4-bit shift registers using ICs.
Precautions:
1. Be sure about the IC used in the circuits and confirm about the proper
pin numbers.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-8.4
Object: To study and verify the operation of universal shift register IC.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 74194 (4-bit directional shift register),.
Diode: Four LED
Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
A universal shift register can shift data in both directions, i.e. to the left as well
as the right .The logic gates are arranged in such a way that data bits can be transferred
from one stage to the next in either direction depending on control line input.
A universal shift register can be constructed from flip-flops. It is also available
in IC form. IC 74194 is a 4-bit universal shift register. Fig.8.4.1 shows its symbol and
pin connections. A, B, C, and D are inputs. QA, QB, QC, and QD are the outputs. Parallel
loading is achieved by applying 4-bits of data simultaneously to inputs A, B, C, and D
and high to S0 and S1 inputs at positive edge of the clock Parallel data is loaded into
the register.
Experiments in Digital Electronics [190]

When S0 is high and S1 is low, the shift right operation occurs at positive edge
of the clock. In this mode, serial data can be entered at SR SER (shift right serial
input). When S0 is low and S1 is high, shift left operation occurs at positive edge of the
clock. In this mode, serial data can be entered at shift left serial input (SL SER).
Input Output
R S0 S1 T SEI SEr QA QB QC QD
1 0 0 X X X No change
1 X X 0 X X No change
0 X X X X X 0 0 0 0
1 1 1 ↑ X X A B C D
1 0 1 ↑ X 1 1 shift right
1 0 1 ↑ X 0 0 shift right
1 1 0 ↑ 1 X shift left 1
1 1 0 ↑ 0 X shift left 0
SEI= serial input for shift left, SER = serial input for shift right
S0, S1= mode select inputs, A, B, C, and D inputs on shift registers
(a)

(b)
Fig.8.4.1: IC 74194 (a) function table (b) pin configurations
Procedure:
(1) Insert IC 74194 in the proper place on the power project board. Connect
LEDs to outputs QA, QB, QC, and QD through a current limiting resistor.
(2) Give input at SR SER. Set S0 = 1 and S1 = 0.observe LED output with
the application of each clock pulse.
[191] Sequential Circuits-Registers

(3) Give input at SL SER. Set S0 = 0 and S1=1. Observe LED output with the
application of each clock pulse.
(4) Give input at A, B, C, and D. Set SR SER=0 and SL SER =0. Set S0 = 1
and S1 = 1.observe LEDs output with the application of each clock pulse.
Change S1 = 0. Observe LEDs output. Verify that shift right operation in
parallel loading is being achieved. Set S0 = 0 and S1 = 1. Observe LED
output. Verify that shift left operation in parallel loading is being achieved.
(5) Prepare a truth table in each of the steps.
Observation Table:
Input Output
R S0 S1 T SEI SEr QA QB QC QD
1 0 0 X X X
1 X X 0 X X
0 X X X X X
1 1 1 ↑ X X
1 0 1 ↑ X 1
1 0 1 ↑ X 0
1 1 0 ↑ 1 X
1 1 0 ↑ 0 X

Result: Verified the operation of the universal shift register IC.


Precautions:
1. Check power supplies of the power project board.
2. Do not leave an input floating.

EXPERIMENT-8.5
Object: To study and verify the operation of 4-bit Ring counter and Johnson counter
using IC 74195.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 74195 (4-bit parallel access shift register).
Diode: Four LEDs.

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Experiments in Digital Electronics [192]

Brief theory:
A counter can be designed to generate any desired sequence of states. Counters
can also be constructed by means of shift registers.
1. Ring Counter:
A ring counter is a circular shift register with the signal from the serial output
QD going into the serial input. Connect the J and input together to form a serial input.
Use the load condition to preset the ring counter to an initial value of 1000. Rotate the
single bit with the shift condition and check the state of the register after each clock
pulse. Fig.8.2.4 shows the function table and pin diagram of IC 74195. Fig.8.4.1 shows
the IC 74195 used as a ring counter.

Fig.8.5.1: IC 74195 as a ring counter


2. Johnson counter:
Its also known as switch-tail ring counter uses the complement output of QD
[193] Sequential Circuits-Registers

for the serial input. Preset the switch-tail ring counter to 0000 and predict the sequence
of states that will result from shifting. Verify your prediction by observing the state
sequence after each shift. Fig.8.5.2 shows the IC 74195 used as a Johnson counter.

Fig.8.5.2: IC 74195 as a Johnson counter.


Procedure:
(1) Insert the registered IC on the proper place on the power project board.
(2) Connect LED to the output through a current limiting resistor.
(3) Give input to register and start the clock generator.
(4) Observe LED output.
(5) Verify that on application of one clock pulse, the data is transferred by
one bit to the right.
Experiments in Digital Electronics [194]

Observation Table:
1. Ring Counter

Input Output
R S/L T J K QA QB QC QD
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1

2. Johnson Counter

Inputs Output
R S/L T J K QA QB QC QD
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1
1 1 ↑ 1 1

Result: Verified the operation of the Ring and Johnson counter.


Precautions:
1. Check all the flip-flops.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
[195] Sequential Circuits-Registers

EXPERIMENT-8.6
Object: Design, construct, and verify a 4-bit serial adder.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 7474 (Dual D flip-flop), One 7476 (Dual JK master slave flip-
flop), One 7491 (8-bit shift register), One 7408 (Quadruple 2-input AND
gates),One 7402 (Quadruple 2-input NOR gates), One 7486 ( Quadruple
2-input EX-OR gates).
Diode: Two LED
Miscellaneous: Two Resistor � 330 � � 0.25watt, Single core wire, Cutter
and stripper
Brief theory:
We can design and construct a four-bit serial adder using a sequential logic
concept. The state table that specifies the sequential circuit is listed in Table 8.6.1.
The present state of Q(t) is the present value of the carry. The present carry in Q(t) is
added together with inputs X and Y to produce the sum bit in output S. the next state
of Q is equal to the output carried. Note that the state table entries are identical to the
entries in a full-adder truth table, except that the input carry is now the present state of
Q (t) and the output carry is now the next state of Q (t+1).
Table 8.6.1: State table for serial adder
Present Inputs Next Output Flip-Flop Inputs Flip-Flop Inputs
State State ( using JK) (using D)
Q(t) X Y Q(t+1) S J K D
0 0 0 0 0 0 X 0
0 0 1 0 1 0 X 0
0 1 0 0 1 0 X 0
0 1 1 1 0 1 X 1
1 0 0 0 1 X 1 0
1 0 1 1 0 X 0 1
1 1 0 1 0 X 0 1
1 1 1 1 1 X 0 1

1. Design using JK flip-flop:


If the JK flip-flop is used for Q, it is necessary to determine the values of
inputs J and K by referring to the excitation table. This is done in the last two columns
of table 8.6.1. The two flip-flop input equations and the output equation can be
simplified by means of K-map.
Experiments in Digital Electronics [196]

J � XY
K � XY � (X � Y)
S � X �Y �Q

Fig. 8.6.1 shows the serial adder circuit using J and K flip-flop and register.

SO
SI SUM
Shift
Control Shift Register X 1 4
(1) 3
2
86 5 86
6
CLK

Serial
Input SI SO 1
3
Shift Register Y 2 08 I Q
(2)
CLK4

2 1
3 02 K Q

4 CLR
6
5 08 logic ‘1’

Fig. 8.6.1: Serial adder circuit using J and K flip-flop.

Design using D flip-flop:

If D flip-flop is used for Q, it is necessary to determine the values of input D


by referring to the excitation table. This is done in the last two column of table 8.6.1.
The D flip-flop input equation and the out put equation can be simplified by means of
K-map to

D � XY � QY � QX
S � X �Y �Q

Fig. 8.6.2 shows the 4-bit serial adder circuit using D flip-flop, full adder and
4-bit shift right register.
[197] Sequential Circuits-Registers

Fig. 8.6.2: Serial adder circuit using D flip-flop.


Procedure:
(1) Insert the ICs on proper place of power project board.
(2) Connect LEDs to the output through a current limiting resistor.
(3) Give input to the serial adder sequentially and observe LED output.
Observation Table:
Inputs Outputs
S.No. C in X Y Cout S
(input carry) (Addend) (Augends) (Carry) (Sum)

0 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
Result: Verified 4-bit serial adder circuit.
Precautions:
1. Check all the gates inside the ICs before using them.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
[198]

9. Sequential Circuits-Counters
EXPERIMENT-9.1
Object: To design and verify the operation of 4-bit asynchronous binary counter using
IC 7473 (JK Flip-Flops).
Equipment/Components required:
1. Equipment: Power Project board and Digital multimeter.
2. Components:
ICs: Two 7473 (Dual JK master-slave flip-flop).
Diode: Four LED

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
A counter is probably one of the most useful and versatile subsystems in a
digital system. A counter consists of flip-flops. A counter driven by a clock can be
used to count the number of clock cycles. The function of a counter is to count the
number of clock pulses. Since the clock pulses occur at known intervals, the counter
can be used as an instrument for measuring time and, therefore, period or frequency.
There are basically two different types of counters-synchronous and asynchronous.
An asynchronous binary counter is also called a serial or ripple counter. The
ripple counter is simple and straightforward in operation and its construction requires
a minimum amount of hardware. It does, however, have a speed limit. Each flip-flop
is triggered by the previous flip-flop, and thus the counter has a cumulative settling
time. Counters such as these are called serial or asynchronous.
Fig.9.1.1 shows the circuit of a 4-bit ripple counter consisting of four negative
edge triggered JK flip-flops. QA is the least significant bit and QD is the most significant
bit. The flip-flops are connected in a series. The QA output is connected to clock
terminal of the second flip-flop. The QB output is connected to the clock of the third
flip-flop and so on. It is known as a ripple counter because the carry moves through
the flip-flops like a ripple in water.
[199] Sequential Circuits-Counters

QA (LSB) QB QC QD (MSB)

(+5V)

14 12 7 9 7
JA QA JB QB JC QC JD QD
9
1 5 1 5
CLK 7473-1 7473-2 7473-3 7473-4

3 1 QA 13 2 8 3 3 13 4
KA KB KC KD 8
2 6 2 6
CLR logic '1'
(+5V)

QA
QB
7473 : Pin 4 = VCC = +5V
Pin 11 = GND = 0 V. QC
QD

Fig. 9.1.1: four bit asynchronous (ripple) counter

Initially, the clear is made low and all flip-flops are reset giving an output of
0000. When the clear becomes high, the counter is ready to start. As LSB receives its
clock pulse, its output changes from 0 to 1 and its total output is 0001. When the
second clock pulse arrives, QA resets and carries (i.e., QA goes from 1 to 0 and the
second flip-flop will receive clock input). Now the output is 0010. The third clock
pulse changes QA to 1, giving a total output of 0011. The fourth clock pulse causes QA
to reset and QB also resets and carries on, giving a total output of 0100 and the process
goes on. Table 9.1.1 shows the action of counting. The number of output states of a
counter is known as the modulus. A ripple counter with four flip-flops can count from
0 to 15 and is, therefore, known as a mod-16 counter, while one with six flip-flops can
count from 0 to 63 and is a mod-64 counter, and so on.
Experiments in Digital Electronics [200]

Table 9.1.1: four bit ripple counter

Count QD QC QB QA
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1

Ripple counters are simple to fabricate but have the problem that the carry has
to propagate through a number of flip-flops. The delay times of all the flip-flops are
added. Therefore, they are very slow for some applications.

Procedure:

(1) Insert IC in the proper place on the power project board and construct
the circuit as shown in Fig.9.1.1

(2) Initially asynchronously clear the outputs of all flip-flops to 0000.

(3) Apply clock input to first flip-flop.

(4) Observe the LED outputs.

(5) Verify the truth table.


[201] Sequential Circuits-Counters

Observation Table:
Count CLK QD QC QB QA
0 �
1 �
2 �
3 �
4 �
5 �
6 �
7 �
8 �
9 �
10 �
11 �
12 �
13 �
14 �
15 �

Result: Verified the operation of a 4-bit asynchronous binary counter.


Precautions:
1. Check all your flip-flops before putting them to use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.

EXPERIMENT-9.2
Object: To design and verify the operation of an asynchronous decade counter using
IC 7473 (JK Flip-Flops).
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 7473 (Dual JK master-slave flip-flop), One 7410 (three 3-
input NAND gates),
Diode: Four LED
Experiments in Digital Electronics [202]

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
A decade counter is also known as a mod-10 counter or BCD counter. It counts
from 0 to 9. Thus, it requires 10 pulses to reset. It is used in frequency counters, digital
voltmeters, wristwatches, etc.
Design:
To design an asynchronous (ripple) decade counter, total number of flip-flops is
required as per the given formula: 2 n � N ( total number of count � 10) therefore n � 4
i.e., ‘n’ number of flip-flops. That means sixteen possible states, out of which ten are
valid and the remaining six are invalid. The counter has ten stable states, 0000 through
1001, i.e., it counts from 0 to 9. The initial state is 0000 and after nine clock pulses it
goes to 1001. After the nineth clock pulses, the counter goes to state 0000. Table 9.2.1
shows the sequence of asynchronous decade counters.
Table 9.2.1: Sequence of decade counter

Count QD QC QB QA Reset
0 0 0 0 0 1
1 0 0 0 1 1
2 0 0 1 0 1
3 0 0 1 1 1
4 0 1 0 0 1
5 0 1 0 1 1
6 0 1 1 0 1
7 0 1 1 1 1
8 1 0 0 0 1
9 1 0 0 1 1
10 0 0 0 0 0

The circuit is shown in Fig. 9.2.1. It is seen that, in many respects, it is similar
to a ripple counter. However, it skips 10 to 15 states. This is possible because just
after nine clock pulses, it generates its own clear signal and reset to 0000. It uses four
JK flip-flops and one NAND gate. Initially, low clear causes 0000, when clear is high;
the counter is ready to start. It is seen that the inputs of NAND gates are QA and QD.
The counter operates as usual while counting from 0 to 9. After nineth clock pulses,
the output is 0000 i.e., both QA and QD are high when the clock is negative edge
triggered. This forces the NAND gate output to be low, which in turn resets the counter
and its output is 0000. Hence, output of the NAND gate goes high and the counter
starts again.
[203] Sequential Circuits-Counters

QA(LSB) QB QC QD
1
2 12
(+5V) 10

14 12 7 9 7
JA QA JB QB JC QC JD QD
9
1 5 1 5
CLK 7473-1 7473-1 7473-2 7473-2

3 13 3
KA
1 QA KB 2
QB 8 KC
3
QC 13 KD
4
QD
8
2 6 2 6

CLR
CLR = 0 : (clear the data)
= 1: (operation mode) 7473 : VCC - Pin 4
GND - Pin 11
7410 : VCC - Pin 14
GND - Pin 7

Fig. 9.2.1: 4-bit asynchronous (ripple) decade counter,


Procedure:
(1) Insert IC in the proper place on the power project board and construct
the circuit as shown in Fig.9.2.1
(2) Initially asynchronously clear the outputs of all flip-flops to 0000.
(3) Apply clock input to first flip-flop.
(4) Observe the LED outputs.
(5) Verify the truth table.
Observation Table:
Clock pulse QD QC QB QA Count
� 0 0 0 0 0
� 0 0 0 1 1
� 0 0 1 0 2
� 0 0 1 1 3
� 0 1 0 0 4
� 0 1 0 1 5
� 0 1 1 0 6
� 0 1 1 1 7
� 1 0 0 0 8
� 1 0 0 1 9
Experiments in Digital Electronics [204]

Result: Verified the operation of the asynchronous decade-counter.


Precautions:
1. Check all your flip-flops before putting them to use.
2. Check power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-9.3
Object: To design and verify the operation of a 4-bit synchronous binary counter
using JK Flip-Flops.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 7473 (Dual JK master-slave flip-flop), One 7408 (Quadruple
2-input AND gates).
Diode: Four LED

Miscellaneous: Four Resistor � 330 � � 0.25watt, Single core wire, Cutter


and stripper
Brief theory:
In a synchronous counter, all the flip-flops are clocked together. A counter
consists of flip-flops. A synchronous binary counter is also called a parallel counter.
An increase in the speed of operation can be achieved by use of a parallel or synchronous
counter. Here, every flip-flop is triggered by the clock (synchronism), and thus the
settling time is simply equal to the delay time of a single flip-flop. The increase in
speed is usually obtained at the price of increased hardware.
Fig.9.3.1 shows the circuit of a 4-bit parallel counter consisting of four negative
edge triggered JK flip-flops. Since all the flip-flops are clocked together, the delay
time is less. The flip-flop corresponding to LSB has its input JK fed from voltage
+Vcc. Therefore, it responds to each negative clock pulse. However, the other three
flip-flops can respond to the negative clock pulse under certain conditions. The QA
flip-flop toggles on negative clock edge only if QA is 1. The QB flip-flop toggles on
negative clock edge only when QA and QB are high (due to presence of the AND
circuit) and so on.
A low clear signal resets the counter so that Q = 0000. When clear goes high,
the counter is ready to start. The first negative clock edge sets QA to 1 so that Q =
0001. At second negative clock pulse QB and QA toggle and Q=0010. The third negative
clock pulse increases the count by 1 so that Q = 0011.
[205] Sequential Circuits-Counters

The successive Q outputs are 0100, 0101 and so on up to 1111. The next clock
edge resets the counter to 0000 and the cycle is repeated. More flip-flops can be added
to increase the count. Q D
QA(LSB) QB QC
1 3 4
2 08 08 6
5

14 12 7 7
JA QA JB QB JC QC JD QD
9 9
1 5 1 5
7473-1 7473-1 7473-2 7473-2

3 13 3
KA
1 QA KB
2
QB 8 KC
3
QC 13 KD
4
QD 8
2 6 2 6
CLK

CLR = 0: Counter clear the F/Fs 0 = Pin Number


= 1: Counter in operation
7473 : VCC - Pin 4
GND - Pin 11
7408 : VCC - Pin 14
GND - Pin 7

Fig. 9.3.1: four bit synchronous counter


Design:
To design a 4-bit synchronous counter:
1. Required number of flip-flops n = 4.
2. Fig. 9.3.2 shows the state /transition diagram for a 4-bit synchronous
counter. It is a graphical means of depicting the sequence of the states
through which the counter progresses.
0000
1111 0001

1110 0010

1101 0011

1100 0100

1011 0101

1010 0110

1001 0111
1000

Fig. 9.3.2: state /transition diagram


Experiments in Digital Electronics [206]

3. Table 9.3.1 shows the excitation table. It lists the present state and next
state and required excitation.

Table 9.3.1: Excitation table

Present state Next state Required excitation


QD QC QB QA QD QC QB QA JD KD J C K C JB K B JA KA
0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X
0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1
0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X
0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1
0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X
0 1 0 1 0 1 1 0 0 X X 0 1 X X 1
0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X
0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1
1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X
1 0 0 1 1 0 1 0 X 0 0 X 1 X X 1
1 0 1 0 1 0 1 1 X 0 0 X X 0 1 X
1 0 1 1 1 1 0 0 X 0 1 X X 1 X 1
1 1 0 0 1 1 0 1 X 0 X 0 0 X 1 X
1 1 0 1 1 1 1 0 X 0 X 0 1 X X 1
1 1 1 0 1 1 1 1 X 0 X 0 X 0 1 X
1 1 1 1 0 0 0 0 X 1 X 1 X 1 X 1

Obtain the minimal expression for the excitation of the flip-flops

JA � KA � 1
J B � K B � QA
J C � K C � QAQB
J D � K D � QAQBQC

Fig 9.3.1 shows a four bit asynchronous counter. Initially, the clear is made
low and all flip-flops are reset, giving an output of 0000. When the clear becomes
high, the counter is ready to start. As LSB receives its clock pulse, its output changes
from 0 to 1 and its total output 0001. When the second clock pulse arrives, QA resets
and carries (i.e., QA goes from 1 to 0 and the second flip-flop will receive clock input).
Now the output is 0010. The third clock pulse changes QA to 1, giving a total output
0011. The fourth clock pulse causes QA to reset and carry and QB also resets and
carries, giving a total output of 0100 and the process goes on. Table 9.1.1 shows the
action of counting. The number of output states of a counter is known as modulus. A
sunchronous counter with four flip-flops can count from 0 to 15 and is, therefore,
known as a mod-16 counter, while one with six flip-flops can count from 0 to 63 and
is a mod-64 counter, and so on.
[207] Sequential Circuits-Counters

Procedure:

(1) Insert IC into proper place on power project board and construct the
circuit as shown in Fig.9.3.1.
(2) Initially, asynchronously clear the outputs of all flip-flops to 0000.
(3) Apply clock input to all flip-flops.
(4) Observe the LEDs outputs.
(5) Verify the truth table
Observation Table:

S. No. Input Flip Flops Output Decimal Value


CLK QD QC QB QA
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Result: Verified the synchronous binary counter.
Precautions:
1. Check all your flip-flops before putting them to use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
EXPERIMENT-9.4
Object: To study and verify the counters using ICs.
Equipment/Components required:
1. Equipment: Power Project board and digital multimeter.
2. Components:
ICs: One 7490 (4-bit, ripple-type decade counter), 7492 (Divide by 12
counter), One 7493 (4-bit binary counter).
Experiments in Digital Electronics [208]

Diode: Four LED


Miscellaneous: Four Resistors � 330 � � 0.25watt, Single core wire,
Cutter and stripper
Brief theory:
Counters are available in a single IC package. The following are the common
ICs used in the digital lab.
1. IC-7490 chip study:
Fig.9.4.1 (a) shows the logic diagram and (b) the block diagram, (c) the pin
diagram for the IC-74LS90, which is a 4-bit, ripple-type decade counter. The device
consists of four master-slave flip-flops internally connected to provide a divide-by-
two section and a divide-by-five section. Each section has a separate clock input to
initiate state changes of the counter on the high-to-low clock transition. State changes
of the Q outputs do not occur simultaneously because of internal ripple delays.
Therefore, decoded output signals are subject to decoding spikes and should not be
used for clocks or strobes.

(a)
[209] Sequential Circuits-Counters

(c)

1
3
2 08
1 12 9 8 8
(+5V) CLKB QA QB QC QD
5 VCC

IC 7490 as Mod - 7
CLK IN 14 CLKA

MR1 MR2 GND MS1 MS2


2 3 12 6 7 GND

(d)

(e)
Fig.9.4.1: IC-74LS90 (a) logic diagram (b) block diagram (c) pin diagram (d)
mod-7 counter (e) mod-10 counter
Experiments in Digital Electronics [210]

A gated NAND asynchronous master reset (MR1, MR2) is provided which


overrides both clocks and reset all the flip flops. In addition, it provided a gated NAND
asynchronous master set, (MS1, MS2).
Since the output from the divide-by-two section is not internally connected to
the succeeding stage, the device may be operated in various counting modes. In a
BCD counter, the CLKB input must be externally connected to the QA output. The
CLKA input receives the incoming count, producing a BCD count sequence. In a
symmetrical biquinary divide-by-ten counter, the QC output must be connected
externally to the CLKA input. The input count is then applied to the CLKA input and
a divide-by ten square wave is obtained at the output. To operate as a divide-by-two
and divide-by five counter, no external interconnection is required. The first flip-flop
is used as a binary element for the divide-by-two function ( CLKA as input and QA as
output). The CLKB input is used to obtain a divide-by-five operation. Table 9.4.1
shows the mode selection-function table and the BCD count sequence-function table
for the IC-7490.
Table 9.4.1
Function table Count Sequence
Reset/Set inputs Outputs Outputs
MR1 MR2 MS1 MS2 QD Q C QB QA Count QD QC QB QA
1 1 0 X 0 0 0 0 0 0 0 0 0
1 1 X 0 0 0 0 0 1 0 0 0 1
X X 1 1 1 0 0 1 2 0 0 1 0
X 0 X 1 Count 3 0 0 1 1
0 X 0 X Count 4 0 1 0 0
0 X X 0 Count 5 0 1 0 1
X 0 0 X Count 6 0 1 1 0
X=Don’t care. 7 0 1 1 1
8 1 0 0 0
9 1 0 0 1

Note: Output QA connected to CLKB input

2. IC-7492 chip study:


Table 9.4.2 shows the logic function and cont sequence for IC-74LS92, is a 4-
bit, ripple-type divide by 12 counter.
[211] Sequential Circuits-Counters

Table 9.4.2

Function table Count Sequence


Inputs Outputs Outputs
MR1 MR2 QD Q C QB QA Count QD QC QB QA
1 1 0 0 0 0 0 0 0 0 0
0 X Count 1 0 0 0 1
X 0 Count 2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1

Fig. 9.4.2 shows the pin configuration for IC-74LS92, is a 4-bit, ripple type
divide by 12 counter.

1 12 9 8 11
(+5V) QA QB QC QD
5 V CC CLKB

IC 7492 as Mod - 12
CLK IN 14 CLKA

MR1 MR2 GND MS1 MS2


2 3 10 6 7 GND

(a)
Experiments in Digital Electronics [212]

(c)

1 12 11 9 8
(+5V) Q A QB QC Q D
V CLKB
5 CC

IC 7492 as Mod - 8 counter


CLK IN CLKA

GND MR1 MR2


10 6 7

GND
(d)
Fig. 9.4.2: IC74LS92 (a) mod-12 counter (b) logic diagram (c) pin diagram (d)
mod-8 counter.
[213] Sequential Circuits-Counters

3. IC-7493 chip study:


Fig.9.4.1 (a) shows the logic diagram and (b) the pin diagram for the IC-74LS93,
is a 4-bit, ripple counter. This device consists of a single flip-flop and a 3-bit
asynchronous counter. This arrangement is for flexibility. It can be used as a divide
by-2 device using only the single flip-flop, or it can be used as a modulus-8 counter
using only the 3-bit counter portion. The device also provides gated reset inputs, MR1
and MR2. When both of these inputs are high, the counter is reset to the 0000 state by
CLR .
Additionally, the 7493A can be used as a 4-bit modulus-16 counter by
connecting the QA output to the CLKB input.
The device consists of four master-slave flip-flops internally connected to
provide a divide-by-two section and a divide-by-eight section. Each section has a
separate clock input to initiate state changes of the counter on the high-to-low clock
transition. State changes of the Q outputs do not occur simultaneously because of
internal ripple delays. Therefore, decoded output signals are subject to decoding spikes
and should not be used for clocks or strobes.

(a) (b)
Fig.9.4.3: IC-74LS93 (a) logic diagram and (b) pin diagram
A gated NAND asynchronous master reset (MR1, MR2) is provided which
overrides both clocks and resets all the flip flops. Since the output from the divide-by-
two section is not internally connected to the succeeding stages, the device may be
operated in various counting modes. In a 4-bit ripple counter, the output QA must be
connected externally to the input CLKB. The input count pulses are applied to the
input CLKA. Simultaneously, divisions of 2, 4, 8, and 16 are performed on QA, QB,
QC, and QD outputs as shown in the function Table 9.4.3. As a 3-bit ripple counter, the
input count pulses are applied to the input. Simultaneous frequency division of 2, 4,
Experiments in Digital Electronics [214]

and 8 are available at the QB, QC, and QD outputs, respectively. Table 9.4.3 (a) shows
the mode selection-function table and (b) the BCD count sequence-function table for
the IC-7493.
Table 9.4.3.
Function table Count Sequence
Reset Outputs Outputs
Inputs Count
MR1 MR2 Q D Q C Q B QA QD QC QB QA
1 1 0 0 0 0 0 0 0 0 0
0 1 Count 1 0 0 0 1
1 0 Count 2 0 0 1 0
0 0 Count 3 0 0 1 1
(a) 4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
(b)
Note: Output QA connected to input of clock pulse CLKB. .
Procedure:
(1) Insert IC in the proper place on the power project board and connect the
circuit.
(2) Initially reset the output (0000) by using asynchronous inputs..
(3) Using count operation in function table, apply clock pulses using clock
generator.
(4) Verify the operation by observing the LED output.
Observation Table:
Make different table for different IC as shown above.
Result: Verified the counter sequence using IC.
Precautions:
1. Check all the IC's before putting them to use.
2. Check the power supplies of the power project board.
3. Do not leave an input floating.
[215]

Appendix-A
STANDARD GRAPHIC SYMBOLS
The IEC (International Electro technical Commission) and the IEEE (Institute
of Electrical and Electronics Engineers) have developed a system of logic symbols
that show the relationship of each input to each output, without showing the internal
circuitry. This standard has been approved by industry, government, and professional
organizations and is consistent with international standards.
The standard uses a rectangular-shapeed outline and a general symbol to
represent each particular logic function. The rectangular-shape graphic symbol and
the general symbol for gates are shown in Fig. A.1 to A.3.
IN OUT
& 1 1 1
A A A
A.B A+B A A
A
B B

2-input AND gate 2-output OR gate Buffer NOT gate

& 1 =1 =1
A A
A A
A.B A �B Y � A �B Y =A B

B B
B B

2-input NAND gate 2-input NOR gate 2-input Ex-OR gate 2-input Ex-NOR gate

Fig.A.1 Rectangular-shape graphic symbol for gates (British-symbol)


IN OUT
A
Y=AB Y=A+B A Y=A
& 1 1
B
2-input AND gate 2-output OR gate Buffer

A
A Y � AB
A
1 & 1
B B

NOT gate 2-input NAND gate 2-input NOR gate

A Y � A � B=A
Y � A �B B
=1 =1
B
2-input Ex-OR gate 2-input Ex-NOR gate

Fig.A.2 : Rectangular-shape graphic symbol for gates (IEC symbol)


Experiments in Digital Electronics [216]

A Y=A.B A Y=A+B Y=A


A
B B

2-input AND gate 2-output OR gate Buffer

Y�A A Y � AB A Y � A �B
A
B B
NOT gate 2-input NAND gate 2-input NOR gate

A A
Y � A �B Y =A B
B B
2-input Ex-OR gate 2-input Ex-NOR gate

Fig. A.3: General symbol for gates (ANSI symbol)

The standard graphic symbols for 4-bit parallel adders (IC 7483 and IC
74LS283) are shown in fig. A.4.

10 5
8 3
A 3 9 S1 A 14 4 S1
1 6 S2 12 1 S2
SUM SUM
11 2 S3 6 13 S3
7 15 S4 2 10 S4
B B IC
4 IC 7483 15 74LS283
16 11
Carry in 13 14 Carry out Carry in 7 9 Carry out
5 12 8 16

VCC GND VCC GND

Fig.A.4: Rectangular-shape graphic symbol 4-bit parallel adder

The standard graphic symbol for multiplexers are (IC 74151 and IC 74157)
shown in fig, A.5.
[217] Appendix-A

EN 15
1
Control
(Select)
EN 1 MUX
A 11
Control input MUX
B 10 (Select input) A1 2 Y1
4
C 9 B1 3

Y Quadrupla Y2
D0 4 5 A2 5
2×1MUX 7
D1 3 Y B2 6
D2 2 6
D3 1 A3 11 Y3
9
D4 15 IC B3 10
D5 14 74151
(8X1MUX)
D6 13 A4 14 IC Y4
74157 12
D7 12 B4 13
5 12 5 12

VCC GND VCC GND

Fig.A.5: Graphic symbol for multiplexers


Table A.1 gives the description of some general qualifying symbols used in
digital electronic logic circuits. A general qualifying symbol defines the basic function
performed by the device represented.
Table A.1: General qualifying symbols.
Symbol Description

& AND function

�1 OR function

1 Buffer or NOT function

=1 Exclusive-OR function

MUX Multiplixer

DMUX Demultiplexer

X/Y Coder, decoder or code converter


Experiments in Digital Electronics [218]

� Adder

� Multiplier

COMP Magnitude Comparator

ALU Arithmetic Logic Unit

SRG Shift Register

CTR Counter

RCTR Ripple Counter

Table A.2 gives the list of qualifying symbols associated with input and output.

Table A.2: Qualifying symbols associated with inputs and outputs

Symbol Description

Active-low input or output


(IEC Symbol)

Logic negative input or output


(Active-low input or output)
British Symbol

Dynamic indicator input

EN Enabel input

Shift right

Shift left

Figure A.6 gives the standard graphic symbol for IC 74155 (Dual 1×4 DEMUX)
[219] Appendix-A

X/Y

A 13 D0
D1
B 3 D2
D3
C 1 D4
15 D5
D6
EN IC
2 74155 D7

14

Fig.A.6: Standard graphic symbol for IC 74155 connected as a 3×8 decoder.


Fig. A.7 gives the standard graphic symbol for D flip-flop

D
D Q Q

Control CLK
Q Q
D latch Positive-edge-triggered
D Flip-flop

D D
Q Q

CLK CLK

Q Q

Negative-edge-triggered Master-slave D Flip-flop


D Flip-flop

Fig.A.7: Graphic symbol for D flip-flop


Experiments in Digital Electronics [220]

Fig. A.8 gives the standard graphic symbol for IC 74176 and 7474 with
direct/asynchronous set and reset.

PRE1 2 PRE2 7

14 Q1 Q2
J1 4 J2 9

1 6
CLK1 15 Q1 CLK2 Q2
K1 16 1 K2 12 2
CLR1 3 CLR2 8

7446 (Dual JK flip-flop)


(a)
VCC GND

PRE 4
3 5 Q
CLK

D 2
7474 6 Q
CLR 1

One-half 7474 D flip-flop


(b)

Fig. A.8: Graphic symbol for flip-flop with asynchronous inputs.


Fig.A.9 gives the standard graphic symbol for a 4-bit register (74175 : Quad
D-flip-flop)
CLR 1
CLK 9

2 Q1
D1 4
3 Q1

7 Q2
D2 5
6 Q2

10 Q3
D3 12
11 Q3

15 Q4
D4 13 74175
14 Q4
16 8

VCC GND
Graphic symbol for a four-bit register

Fig.A.9: Graphic symbol for a four-bit register.


[221] Appendix-A

Fig. A.10 gives the standard graphic symbol for the bi-directional shift register
(IC 194) with parallel load.
CLR 1 SRG 4
S0 9 Select/Control
Inputs
S1 10
CLK 11

Shift right
serial input 2 15 QA
A 3
Parallel inputes

14 QB
IC type
74194 13 QC
B 4
C 5 12 QD
D 6
Shift left
serial input
7
16 8

VCC GND

Fig.A.10: Graphic symbol for bi-directional shift register with parallel load.
Fig. A.11 gives the standard graphic symbol for a shift register (IC 74195)
with parallel load.

CLR 1 SRG 4
Shift 9 Shift � Logic '1'
Load � Logic '0'
Load
CLK 10 (CLK)

J 2 15 QA
K 3
14 QB
A 4
Parallel inputes

74195 13 QC
B 5
12 QD
C 6
11 QD
D 7
16 8

VCC GND
Fig.A.11: Graphic symbol for a shift register with parallel load
Experiments in Digital Electronics [222]

Fig. A.12 and A.13 represent the standard graphic symbols for ripple coumter
(IC 7493) and 4-bit binary counter (IC 74161) with parallel load.

RCTR
MR1 2
&
MR2 3

devide-by-two
A 12 QA

9 QB
devide-by-eight
8 QC
B IC type
7493 11 QD
5 10

VCC GND

Fig.A.12: Graphic symbol for 4-bit ripple counter

CLR 1 CTR
9M1 DIV 16
Load
M2

ENT 10
ENP 7 15
CLK 2

A 3
data inputs

15 QA
B 4
14 QB
C 5 Outputs
IC type 13 QC
D 6
74161
12 QD

Fig. A.13: Graphic symbol for 4-bit binary counter with parallel load
[223]

Appendix-B
CIRCUITS USED IN DIGITAL LABORATORIES
Following circuits are used in digital electronics laboratories for performing
the experiments. Fig. B.1 gives the circuit diagram of 5V DC power supply. TTL
devices require an operating voltage of 5 V. It uses an IC-7805, a three-terminal
regulator, and it is quite adequate to handle a load up to 1 amp.

Bridge
Rectifier

9 1 3
IC
230 V 7805
AC IN 2 +5V DC
OUT
0
C1 C2 C3
230 V primary 0.22 F 0.22 F
2200 F
0-9 secondary
2A
Transformer

Fig.B.1: Regulated power supply (5V) for TTL devies


Fig. B.2 and B.3 gives the circuit diagram for a bank of logic switches (Double
pole single through).
1 2 3 4

(DPST Swich)

GND (logic '0') = 0

Fig. B.2: Four logic switches


Experiments in Digital Electronics [224]

VS
1
3 1 2
2 00 04

4
6 3 4
5 00 04

VS
Fig. B.3: Debounce switch
Fig. B.4 and B.5 shows the circuit diagram of four logic monitors. The LED in
the logic monitor begins to glow brightly as the voltage beings to rise at 2.4 V. They
do not glow if the input voltage is below 2V.

180

BC108

Inputs 180 �
LED
(Red)

BC108

LED
10 F (Red)

GND

Fig. B.4: Logic monitor


[225] Appendix-B

Positive voltage

1K 1K 1K 1K

Output

0 2 4 6 8 �4050: VDD is pin1 �


�� GNDis pin 8��
(7406) � �
�7406: VCC is pin 14 �
1 3 5 9 �� GNDis pin 7��

2 4 7 9
(4050)

3 5 6 10
Input 10K 10K 10K 10K

Fig. B.5: 4-Buffered LEDs


Fig B.6, B.7 and B.8 gives the circuit diagram for the clock pulse generator
(555 Timer), positive and negative clock generator (555 Timer) and clock pulse
generator using IC-72555.

10K 4 8
6LR VCC
2
Trigger

Trigger 7
Discharge 555 Output
input

6
Threshold

10 F 1 5
0.01 F

GND
Fig. B.6: 555 Timer circuit
Experiments in Digital Electronics [226]

VCC
CLK (Negative)
1K
1
Fine Frequency 8 3 4 6
Adjustment 7 3 03 03 CLK
(Discharge) (Positive)
20K 2 5
555
1K
2(Trigger)
5
6(Threshold)
1 F
0.01 F 10 F 1 0.01K 0.01 F
0.1 F

GND

Course
Frequency
Adjustment

Fig. B.7: Positive and negative clock generator using 555 and 7403 IC

(+5V)
VCC
0.01 F RA
8 5 4 CLR
5k

6 Upper Comparator
+
Compare 3
2
3
vcc R Q Output
-
5k

Lower Comparator
+
1
v cc Compare S Q
3
Trigger -
7
Discharge
5k

72555 Timer

RB
1
C
GND

Fig. B.8: Clock pulse generator using IC-72555


[227]

Appendix-C
BRIEF DESCRIPTION OF DIGITAL ICS
Digital ICs are classified as: TTL (Transistor-transistor logic), ECL (Emitter-
coupled logic), MOS (Metal-oxide semiconductor), and CMOS (Complementary
metal-oxide-semiconductor. TTL is popular among logic families. ECL is used only
in systems requiring high-speed operation. MOS and CMOS are based on field-effect
transistors. They are widely used in large-scale integrated circuits because of their
high component density and relatively low power consumption. CMOS logic consumes
far less power than MOS logic.
There are various commercial integrated circuit chips available. TTL ICs are
usually distinguished by numerical designations such as the 5400 and 7400 series.
The former has a wide operating temperature range, suitable for military use, and the
latter has a narrower temperature range, suitable for industrial and laboratory use.
Some of the standard absolute maximum ratings and specifications for the
74XX series logic family are given below:
Table C.1: Characteristics of TTL Logic Families
P a ra m ete rs Su b S ta n d a rd LS AL S S AS
F a m ily
VC C 5 V± 5% 5 V ±5 % 5 V ±1 0 % 5 V ±5% 5 V± 10%
GND 0 V o lt
T T L L o g ic V OH 2 .7 V o lt
L ev el s V IH 2 .0 V o lt
VOL 0 .4 V o lt
V IL 0 .8 V o lt
F req u en c y < 35 M H z <4 0 M H z < 70M Hz < 1 2 5 M Hz < 200M H z
lo w
cu rren t
o u tp u t 16mA 20m A 8mA 20mA
TTL
M i n im u m
circu i t
o u tp u t d ri v e
Hi gh
cu rren t
cu rren t
o u tp u t 48mA 24m A 24 /4 8m A 64 m A 4 8 /6 4 m A
TTL
circu i t
lo w
cu rren t
o u tp u t 40 20 20 50 50
TTL
Fan -o u t circu i t
cap ab i li ty * Hi gh
cu rren t
o u tp u t 120 60 6 0/120 160 1 2 0 /1 6 0
TTL
circu i t
O p erat in g free -air
0 0 C to + 70 0 C
te m p erat u re ran g e
S t o rag e T e m p e r at ure
- 65 0 C to + 15 0 0 C
R an ge

*Taking the number of LS-TTL load as an example


Experiments in Digital Electronics [228]

VOH: Minimum output voltage level a TTL device will provide for a high signal.
VIH: Minimum input voltage level to be considered a high signal.
VOL: Maximum output voltage level a device will provide for a low signal.
VIL: Maximum input voltage level to still be considered a low signal.
For each TTL IC, such as 7404, 74LS01, 74AS04, 74F04, 74ALS04, their pin
arrangement and logic function are the same, but they have a significant difference in
circuit speed and power consumption.
The brief descriptions of some TTL digital ICs used in this book are given
below:
1. 7400: Quad 2-input NAND Gates
Brief Description:
The 7400 is a 14-pin integrated circuit consisting of four 2-input NAND gates,
each gate performing the logic NAND gate function. The remaining two pins are
reserved for the power supply. These gates are useful for providing the fundamental
functions of digital circuits.
Features:
� Propagation delay for each gate will be 10 ns.
� The maximum toggle speed is 25 MHz.
� Power utilization for each gate is 10 mW.
� Independent 2-input NAND Gates : 4.
� The output can be interfaced with TTL, NMOS, and CMOS.
� The range of operating voltage will be large.
Package: 14 pin D.I.L. / (14 pin FLAT)
[229] Appendix-C

Pin Configurations:

Vc c I npu ts of G ate 4 Outp u t 4 In pu ts of Gate 3 Ou tpu t 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

O utput 1 Input s of G ate 2 O utput 2 G ND


Inputs of G ate 1

Vcc: Supply Voltage; GND: Ground


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
2. 7401: Quad 2-input NAND Gates (open collector outputs)
Brief Description:
The 7401 is a 14-pin integrated circuit consisting of four 2-input NAND gates
with open collector outputs, each gate performing the logic NAND gate function.
These are intended for applications where a TTL “totem pole” output configuration is
not required. This IC may be used to implement active-low wired-OR or active-high
wired-AND functions by connecting them to other open-collector outputs. Aside from
the output, the circuitry is the same as the standard quadruple 2-input gate 7400.
Features:
� The output can directly interface to CMOS, NMOS and TTL
� Wide Operating Conditions.
Package: 14 pin D.I.L. / (14pin FLAT)
Experiments in Digital Electronics [230]

Pin Configurations:

Inputs of Gate 3
V cc Output 4 Inputs of G ate 4 Output 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

O utput 1 Inputs of G ate 1 O utput 2 Input s of G ate 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
3. 7402: Quad 2-input NOR Gates
Brief Description:
The 7402 IC is a high-speed quad 2-input NOR gate that utilizes silicon-gate
CMOS technology to achieve high speed at nominal power dissipation. This IC contains
four independent gates, each of which performs the logic NOR function.
Features:
� Maximum current allowed to draw through each gate output: 8mA
� TTL outputs
� Low power consumption.
� Maximum ESD: 3.5KV.
� Typical Rise Time: 15ns.
� Typical Fall Time: 15ns.
Package: 14 pin D.I.L./ (14 pin FLAT)
[231] Appendix-C

Pin Configurations:

Vcc Output 4 Inputs of Gate 4 Output 3 Inputs of Gate 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Output 1 Inputs of Gate 1 Output 2 Inputs of Gate 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
4. 7403: Quad 2-input NAND Gates (open collector outputs)
Brief Description:
The 7403 IC package contains four independent positive-logic, open collector,
NAND gates. The outputs of one gate can be connected to inputs of another within the
same chip or another chip as long as they share the same ground.
Package: 14 pin D.I.L.
Experiments in Digital Electronics [232]

Pin Configurations:

Vcc In puts of Gate 4 Outp u t 4 In pu ts of Gate 3 O utp u t 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Input s of G ate 1 O utput 1 Input s of G ate 2 O utput 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
5. 7404: Hex Inverter (NOT) Gates
Brief Description:
The 7404 is the most commonly used 14-pin NOT gate. It consists of six
inverters that perform logical invert action. The output of an inverter is the complement
of its input logic state.
Features:
� Maximum current allowed to draw through each gate output: 8mA
� Totally lead-free
� Maximum Rise Time: 15ns
� Maximum Fall Time: 15ns
Package: 14 pin D.I.L. / (14pin FLAT)
[233] Appendix-C

Pin Configurations:
Input of Input of Input of
Gate 6 Gate 5 Gate 4
Vcc Output 6 Output5 Output 4

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Input of
Input of Output 1 Input of
Output 2 Gate 3 Output 3 GND
Gate 1 Gate 2

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
6. 7408: Quad 2-input AND Gates
Brief Description:
The 7408 is a high-speed CMOS Logic Quad AND Gate. This contains four
independent 2-input AND gates in one package. An AND gate is a digital logic gate
with two or more inputs and one output that performs a logical conjunction. The
output of an AND gate is true only when all of the inputs are true.
Package: 14 pin D.I.L./ (14 pin FLAT)
Experiments in Digital Electronics [234]

Pin Configurations:

Vcc In puts of Gate 4 Outp u t 4 In pu ts of Gate 3 O utp u t 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Input s of G ate 1 O utput 1 Input s of G ate 2 O utput 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
7. 7410: Triple 3- input NAND Gates
Brief Description:
The IC 7410 contains three independent 3-input positive NAND gates, designed
as an HF/50MHz specialized rig with excellent performance. The IC-7410 employs a
high-grade DSP unit and a double conversion super-heterodyne system developed
from the latest technology used in our higher grade rigs, such as the IC-7800/7700/
7600 series.
Features:
� Three 3-Input NAND Gates
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
Package: 14 pin D.I.L. / (14 pin FLAT)
[235] Appendix-C

Pin Configurations:
Input of
Vcc Output 1 Inputs of Gate 3 Output 3
Gate 1

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Two Inputs of Gate 1 Inputs of Gate 2 Output 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
8. 7411: Triple 3-input AND gates
Brief Description:
This integrated circuit contains three independent positive logic, three-input
AND gates, each performing the logic AND function.
Features:
� Three 3-Input AND Gates
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
Package: 14 pin D.I.L./(14 pin FLAT)
Experiments in Digital Electronics [236]

Pin Configurations:
Input of
Vcc Output 1 Inputs of Gate 3 Output 3
Gate 1

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Two Inputs of Gate 1 Inputs of Gate 2 Output 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
9. 7420: Dual 4-input NAND gates
Brief Description:
The 7420 is a dual-quad input NAND gate IC. It has two independent four-
input NAND gates, a combination of NOT AND, each performing the logic NAND
operation.
Package: 14 pin D.I.L./ (14 pin FLAT)
[237] Appendix-C

Pin Configurations:

V cc T w o inpu t of Gate 2 NC In p uts of Gate 2 Ou tpu t2

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Tw o Input s of G ate 1 NC Tw o Input s of G ate 1 Out put 1 GN D

NC: No Connection
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
10. 7421: Dual 4-input AND gates
Brief Description:
The 7421 IC comprises two independent four-input AND gates, each
performing the logic AND function.
Features:
� Two Independent 4-Input AND Gates
� Standard Pin Configuration
� Operating Temperature to 70°C
� Standard TTL Switching Voltages
Package: 14 pin D.I.L./(14 pin FLAT)
Experiments in Digital Electronics [238]

Pin Configurations:

Vcc Two input of Gate 2 NC Inputs of Gate 2 Output2

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Two Inputs of Gate 1


Two Inputs of Gate 1 NC Output 1 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
11. 7423: Expandable Dual 4-input NOR gate with enable/strobe
Brief Description:
The 7423 IC is a TTL expandable dual 4-input positive NOR gate with strobe.
This contains dual 4-input positive NOR gates with a strobe in a 16 lead-plastic DIP
type. Enable/strobe input is AND’ed with the four normal inputs. This device is
expandable and performs Boolean functions.
[239] Appendix-C

Pin Configurations:

Vcc Two input of Gate 2 NC Inputs of Gate 2 Output2

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

Two Inputs of Gate 1 NC Inputs of Gate 1 Output 1 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
12. 7430: Single 8-input NAND gate
Brief Description:
The 7430 IC is a NAND gate with 8 inputs. It is 14-pin IC and has 1 circuit
with an 8-input NAND gate. This gate is very useful for providing the basic functions
used in the implementation of digital integrated circuit systems.
Features:
� High noise immunity
� Minimal variation in switching times with temperature
� Low output impedance
� Good capacitive drive capability
Package: 14 pin plastic DIP type package / (14 pin FLAT)
Experiments in Digital Electronics [240]

Pin Configurations:

Vcc NC Inputs of Gate 1 NC NC Output2

14 13 12 11 10 9 8

1 2 3 4 5 6 7

GND
Inputs of Gate 1

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
13. 7432: Quad 2-input OR Gates
Brief Description:
IC 7432 is a logic gate IC that consists of four independent OR gates, each of
which performs the logic OR function. This gate is very useful for providing the basic
functions used in the implementation of digital integrated circuit systems.
Features:
� Four 2-Input Logic OR Gates
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
Package: 14 pin D.I.L./ (14 pin FLAT).
[241] Appendix-C

Pin Configurations:

Vcc Inputs of Gate 4 Output 4 Inputs of Gate 3 Output 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Inputs of Gate 1 Output 1 Inputs of Gate 2 Output 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
14. 7441: BCD-to-decimal decoder/driver (open-collector)
Brief Description:
The 7441 is a BCD-to-decimal decoder designed specifically to drive cold-
cathode indicators. This device is also capable of driving other types of low-current
devices. This is a monolithic binary-coded decimal (BCD)-to-decimal decoder. The
BCD to be decoded is applied to the four input lines. The unique output corresponding
to the decimal equivalent of the input number falls to a low-level logic.
Package: 16 pin D.I.L. / (16 pin FLAT)
Experiments in Digital Electronics [242]

Pin Configurations:

D0 D1 D5 D4 GND D6 D7 D3

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

D8 D9 A D Vcc B C D2

D C B A: Active high BCD Inputs, A is LSB, D0 to D9 : Active low Decimal Outputs


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
15. 7445: BCD-to-decimal decoder/driver (open collector: 30 V outputs)
Brief Description:
This IC is a BCD-to decimal decoder/driver consisting of eight inverters and
four-input NAND gates. The inverters are connected in pairs to make BCD input data
available to the NAND gates. Full decoding of BCD input logic ensures that all outputs
remain off for all invalid binary input conditions.
Features:
� fully compatible for use with TTL or DTL logic circuits
� Output transistor is capable of sinking 80 mA
� Compatible for interfacing with most MOS integrated circuits.
� High-performance capability
� Use as indicator/relay drivers, or as open-collector logic-circuit drivers.
Package: 16 pin D.I.L. / (16 pin FLAT)
[243] Appendix-C

Pin Configurations:

Vcc A B C D D9 D8 D7

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

D0 D1 D2 D3 D4 D5 D6 GND

D C B A: Active high BCD Inputs, A is LSB, D0 to D9 : Active low Decimal Outputs


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
16. 7446/7447: BCD-to-seven segment decoder/driver (open-collector)
Brief Description:
This is a BCD to seven-segment display decoder/driver IC with active low
outputs. The IC is stand-alone and requires no external components other than the
LED current limiting resistors. The output of the IC has complete ripple blanking and
requires no external driver transistors. It incorporates automatic leading/ or trailing-
edge, zero blanking control (RBI and RBO). A Lamp test of these devices may be
performed at any time when the BI/RBO mode is at a high logic level.
Features:
� Single BCD to 7-Segment Decoder with Open Collector Output
� Active-low output for driving common anode.
� Full ripple blanking input/output controls and a lamp test input
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
Experiments in Digital Electronics [244]

Package: 16 pin D.I.L. / (16 pin FLAT)

Pin Configurations:

Vcc f g a b c d e

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

B C LT BI/RBO RBI D A GND

D C B A: Active high BCD Inputs, a to g: Seven LED of seven segment display


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
17. 7448: BCD-to-seven segment decoder/driver
Brief Description:
The 7448 is a BCD to seven segment decoder/driver used to display numbers
[245] Appendix-C

decoded in binary coded decimal format. The seven-Segments are a small seven LED-
based device used to represent a single numeric value from 0 to 9. Each seven-segment
has seven input pins to light up a single led in each of the seven segments. This IC is
used for common cathode configuration.
Package: 16 pin D.I.L. / (16 pin FLAT)

Pin Configurations:

Vcc f g a b c d e

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

B C LT BI / RBO RBI D A GND

D C B A: Active high BCD Inputs, a to g: Seven LED of seven segment display


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
Experiments in Digital Electronics [246]

18. 7449: BCD-to-seven segment decoder/driver (open-collector)


Brief Description:
The 7448 is a BCD to seven-segments decoder and driver for common cathode
configuration. This package accepts a 1-2-4-8 positive logic BCD input and converts
it to the proper pattern to eliminate the seven-segment display. High output is intended
to light the segment.
Package: 16 pin D.I.L. / (16 pin FLAT)

Vcc f g a b c d

14 13 12 11 10 9 8

1 2 3 4 5 6 7

B C BI D A e GND

D C B A: Active high BCD Inputs, a to g: Seven segments of LED (Common cathode).


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
[247] Appendix-C

19. 7472: AND-Gated J-K FLIP- FLOP


Brief Description:
This IC is a Single AND Gated JK Master/Slave Flip-Flop. It is a single flip
flop with gating used to perform logic on the J and K inputs. Separate active low
PRESET AND CLEAR inputs override the clock and permit the flip flop to be directly
set to either state. The flip flop is termed Master-Slave since the J and K information
is loaded into the Master section when the clock voltage rises and is transferred to the
Slave section and output when the clock voltage falls. The device also features a
special clock line clamp to reduce ringing and prevent false clocking.
Features:
� Single AND Gated JK Master/Slave Flip-Flop
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
Package: 14 pin D.I.L./ (14 pin FLAT)

Pin Configurations:

Vcc PRE CLK (�) K3 K2 K1 Q1

14 13 12 11 10 9 8

1 2 3 4 5 6 7

NC CLR J1 J2 J3 Q1 GND

CLK (�) : Negative Edge Triggering, J = J1J2J3; K= K1K2K3


Experiments in Digital Electronics [248]

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
20. 7473: Dual J-K FLIP- FLOP
Brief Description:
The 74LS73 is a dual in-line JK flip flop IC. It contains two independent J-K
flip-flops with individual J-K, clock and direct clear inputs. The 7473 is a negative
pulse triggered flip-flop. An active-low Asynchronous CLEAR input is provided on
7473 and is designed for use in high-speed control and counting applications. The
device also features a special clock line clamp to reduce ringing and prevent false
clocking.
Specifications:
� High speed of operation 25 MHz toggling
� Optimum power dissipation 45 mW/ff
� High noise immunity 1V
� Guaranteed Clock Skew 15 ns
Package: 14 pin D.I.L./ (14 pin FLAT)
[249] Appendix-C

Pin Connectios:

J1 Q1 Q1 GND K2 Q2 Q2

14 13 12 11 10 9 8

1 2 3 4 5 6 7

CLK1(�) CLR1 K1 Vcc CLK2 (�) CLR 2 J2

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
21. 7474: Dual D- type FLIP- FLOPs
Brief Description:
The 7474 is an edge-triggered device. The Q output will change only on the
edge of the input trigger pulse. This device is designed for use where the flexibility of
two inputs, such as on a JK or an RS flip flop, is not required. It was only a single data
input. The logical level applied to this data input is transferred to the Q output when
the clock pulse voltage rises to a logical 1.
Package: 14 pin D.I.L./ (14 pin FLAT)
Experiments in Digital Electronics [250]

Pin Configurations:

Vcc CLR 2 D3 CLK2 (�) PRE2 Q2 Q2

14 13 12 11 10 9 8

1 2 3 4 5 6 7

CLR1 D1 CLK1(�) PRE1 Q1 Q1 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
22. 7475: Dual 2-Bit Transparent Latches
Brief Description:
The 7475 contains four transparent D-Latches with a common enable (gate)
on latches 1 and 2, and another common enable on latches 3 and 4. When Q follows D
(latch enabled), then the latch is said to be transparent.
Features:
� 4-bit Bi stable Latch in a 16-Pin DIP Package
� Designed as a Temporary Storage for Binary Information
� Latches Feature Complementary Q Outputs
� Fast Switching Speed
� Standard TTL Switching Voltages
� Outputs Directly Interface to CMOS, NMOS and TTL
� Large Operating Voltage Range
� Wide Operating Conditions
[251] Appendix-C

Package: 16 pin D.I.L./ (14 pin FLAT)

Pin Configurations:

Q1 Q2 Q2 EN 1-2 GND Q3 Q3 Q4

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

Q1 D1 D2 EN 3-4 Vcc D3 D4 Q4

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
23. 7476: Dual JK FLIP- FLOP
Brief Description:
The 7476 is a positive edge triggered flip flop with individual J-K, clock,
preset, and clear inputs. The J and K inputs must be stable when the clock is high. The
7476 is a master-slave J-K and. It has synchronous inputs of J, K and clock pulse, two
asynchronous inputs preset (PRE) and clear (CLR) to set and clear flip flops.
Experiments in Digital Electronics [252]

Features:
� 4 bit bi -stable latch in a sixteen pin DIP package.
� The operating voltage range for IC is 4 to 6V
� Input voltages range HIGH state is a minimum of 2V and the LOW state
is 0.8V. I
� Draws output voltages for the HIGH state is 3.5V and LOW state is
0.25V.
� Large operating voltage range
� Fast switching speed
Package: 16 pin D.I.L./ (16 pin FLAT)

K1 Q1 Q1 GND K2 Q2 Q2 J2

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

CLK1(�) PRE1 CLR1 J1 Vcc CLK2 (�) PRE2 CLR 2


[253] Appendix-C

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
24. 7482: 2-bit Binary Adder
Brief Description:
The 7482 is a 2-bit binary full adder in a 14-Lead DIP type package that performs
the addition of two-bit binary numbers. Sum outputs are provided for each bit, and the
resultant carry out is obtained from the second bit.
Package: 14 pin D.I.L.

Pin Configurations:

A1 B1 S1 GND Cout NC NC

14 13 12 11 10 9 8

1 2 3 4 5 6 7

S0 A0 B0 Vcc Cin NC NC
Experiments in Digital Electronics [254]

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
25. 7483: 4-bit Binary Adder
Brief Description:
The IC 7483 is a 4-bit parallel adder that consists of four interconnected full
adders along with the look-ahead carry circuit. This binary full adder has two four-bit
binary numbers. A carry input is included, and four outputs are provided along with
the resultant carry. Since the carry-ripple-time is the limiting delay in the addition of
a long word-length, carry-look-ahead circuitry has been included in the design to
minimize this delay.
Features:
� 4-bit Full Adder with Carry Out.
� Output Propagation delay: 16nS.
� Maximum Input Low Voltage: 0.8V.
� Minimum Input High Voltage: 2V.
� Easily expandable through high speed cascading input
� Typical power 275 mW
� Typical propagation delay from carry-input to carry output is 12 ns.
Package: 1
[255] Appendix-C

Pin Configurations:

B3 S3 Cout Cin GND B0 A0 S0

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

A3 S2 A2 B2 Vcc S1 B1 A1

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C

26. 7485: 4-bit Magnitude Comparator

Brief Description:

The IC 7485 is a 4-bit magnitude comparator that can be used for the
comparison of straight binary numbers and BCD coded numbers. This device is fully
expandable through the use of cascading inputs. A digital comparator is widely used
in combinational systems and is specially designed to compare the relative magnitudes
of binary numbers. To compare two binary numbers, first, their MSB (Most Significant
Bits) are compared.

Features:

� Compares 4-bit Binary or BCD Codes and Outputs Greater, Less Than
or Equal.

� Outputs Directly Interface to CMOS, NMOS and TTL.

� Large Operating Voltage Range.

� Wide Operating Conditions.


Experiments in Digital Electronics [256]

Package: 16 pin D.I.L.

Vcc A3 B2 A2 A1 B1 A0 B0

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

B3 A>B A=B A>B A>B A=B A<B GND


Outputs
Cascading Inputs

Connect first 7483’s cascading Inputs as: A>B, A<B to logic ‘0’, and A=B to logic ‘1’.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
27. 7486: Quad EX-OR Gates
Brief Description:
The 7486 is a quad 2-input EX-OR gate IC, and each gate has the functionality
of the EX-OR (Exclusive-OR) gate function. The internal gates in these ICs are made
of Schottky Transistors of low power.
[257] Appendix-C

Features:
� Four 2-Input Exclusive OR Gates.
� Outputs Directly Interface to CMOS, NMOS and TTL.
� Large Operating Voltage Range.
� Wide Operating Conditions.
� Typical noise immunity 1V
� Average Propagation delay15ns
� Average Propagation dissipation 40 mw per gate
Package: 14 pin D.I.L./ (14 pin FLAT)

Vcc Inputs of Gate 4 Output 4 Inputs of Gate 3 Output 3

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Inputs of Gate 1 Output 1 Inputs of Gate 2 Output 2 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
Absolute Maximum Rating: Same as 7400.
Experiments in Digital Electronics [258]

28. 7490: BCD Counter


Brief Description:
The IC 7490 is a decade counter IC in which four master-slave flip-flops are
internally connected to provide a divide-by-2 and divide-by-5 counter, which can
generate output code in BCD. It is an Asynchronous Decade Counter IC, which can
count the binary numbers from 0000 to 1001. After 1001, it gets reset and again starts
counting. As the IC 7490 gets reset after counting ten numbers, it is called the MOD-
10 Decade Counter. Gating is provided to reset the counters to design the different
MOD-N counters.
Features:
� BCD decade counter
� Count pulses at a frequency of 20 MHz.
� High speed at moderate power dissipation,
� High noise immunity and minimal variation in performance over
temperature.

CLKA (�) NC QA QD GND QB QC

14 13 12 11 10 9 8

1 2 3 4 5 6 7

CLKB(�) MR1 MR2 NC Vcc MS1 MS2


[259] Appendix-C

CLK (�) : Negative Edge Triggering. The MOD of the IC 7490 is set by changing
the MR1 and MR2 pins. If any one of MR1 & MR2 is at high or MS1 & MS2 is at
ground, the counter will reset all the outputs QA, QB, QC, and QD to 0.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
29. 7491:A 8-bit Serial-in Serial-out Shift Register
Brief Description:
This IC is a monolithic serial-in, serial-out, 8-bit shift register that utilizes
TTL circuits and is composed of eight R-S master-slave flip-flops, input gating, and a
clock driver. The input data of the first flip-flop is controlled by gated inputs A and B
and an internal inverter to form the complementary inputs to the first bit of the shift
register. The drive for the internal common clock line is provided by an inverting
clock driver.
Features:
� Typical noise immunity 1.0 V
� Typical power dissipation 175 mW
� Full fan out 10
� Storing and transferring data at clock rates up to 22 MHz.
Package: 14 pin D.I.L./ (14 pin FLAT)
Experiments in Digital Electronics [260]

Pin Configurations:

Q Q A B GND CLK(�) NC

14 13 12 11 10 9 8

1 2 3 4 5 6 7

.NC NC NC NC Vcc NC NC

CLK(�) : Negative Edge Triggering

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
Absolute Maximum Rating: Same as 7400.
30. 7492: Divide-by-12 Counter
Brief Description:
The IC 7492 is a 4-Bit ripple counter (4 cascaded counting elements) that
consists of four dc-coupled master-slave flip flops that are internally interconnected
to provide a divide-by-two and a divide by-six counter. This counter is fully
programmable and can also be used as a 4-bit latch. This high-speed counter will
accept count frequencies of 0 to 40 MHz at the clock A input and 0 to 20 MHz at the
clock B inputs.
Features:
� Contains a divide-by-two Section and a divide-by-six Section
� Sections can be Combined to form BCD, modulo-12 or modulo-16
Counters
� Operating Temperature to 70°C
� Standard TTL Switching Voltages
� High Count Rates: 42MHz.
� Low Power Consumption: 45mW.
� Low power dissipation
[261] Appendix-C

CLKA (�) NC QA QB GND QC QD

14 13 12 11 10 9 8

1 2 3 4 5 6 7

CLKB (�) . NC NC NC Vcc MR1 MR2

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
31. 7493: 4-bit Binary Counter
Brief Description:
The IC 7493 is a 4-bit binary counter that consists of four master-slave JK
flip-flops internally connected to provide a MOD-2 up-counter and a MOD-8 up-
counter. The MOD-2 and MOD-8 up-counters can be used independently or in
combination. In this combination, the output of QA is connected to the input of CLKB,
and pulses to be counted are applied to the input CLKA, then the circuit operates as a
normal binary counter.
Experiments in Digital Electronics [262]

Features:
� 4-Bit Binary Counter
� Output High Voltage: 3.5V.
� Output Low Voltage: 0.25V
� Output current when high: -0.4mA.
� Output current when low: 8mA.
� CP0 and CP1 input clock frequency: 32MHz and 16MHz.
Package: 14 pin D.I.L./

Pin Configurations:

CLKA (�) NC QA QD GND QB QC

14 13 12 11 10 9 8

1 2 3 4 5 6 7

CLKB (�) . MR1 MR2 NC Vcc NC NC


[263] Appendix-C

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
32. 7495: 4-bit Serial/Parallel-in, Parallel- out Shift Register
Brief Description:
The 74LS95 is a 4-bit Shift Register with serial and parallel synchronous
operating modes. The serial shift-right and parallel load are activated by separate
clock inputs selected by a mode control input. A mode control input enables a right-
shift or left-shift operation, depending on whether its input is a zero or one. Data
transfer occurs on the negative transition of the clock pulse.
Features:
� Output High Voltage: 3.5V.
� Output Low Voltage: 0.25V
� Output current when high: -0.4mA.
� Output current when low: 8mA.
Package: 14 pin D.I.L. / (14 pin FLAT)
Experiments in Digital Electronics [264]

Pin Configurations:

Vcc QA QB QC QD CLK1 (�) CLK2 (�)

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Serial Input. A B C D MOD GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
33. 74138: 1 to 8 Demultiplexer
Brief Description:
The IC 74138 is a 3 to 8 line decoder and is mainly used for 1 into 8 line de-
multiplexing applications with the help of an enable input pin as a data input pin. Its
main function is to decode or otherwise demultiplex applications. There are three
enable/strobe input pins: G2A, G2B, and G1. G2A and G2B are active low pins,
which means when low signals are applied to those pins, they will be active. G1 is an
active high pin, which means it is active when there is a high signal. Any one of these
pins can be used as data input.
Features:
� This IC is particularly designed for high-speed Decoding capacity.
� Integrates 3-enable pins for simplifying cascading.
� clamped with Schottky diodes which are the high performance
� Impartial propagation delays.
� Supply voltage ranges from 1.0V-5.5V
� Standard propagation delay is 21nsec.
[265] Appendix-C

Vcc Y0 Y1 Y2 Y3 Y4 Y5 Y6

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

A B C G2A G2B1 G1 Y7 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
34. 74139: Dual 1 to 4 Demultiplexer
Brief Description:
The 74139 comprises two separate two-line-to-four-line decoders in a single
package. The active-low enabled input can be used as a data line in demultiplexing
applications. It is specifically designed for high-speed memory decoders and data
transmission systems.
Experiments in Digital Electronics [266]

Features:
� Contains two fully independent 2-to-4-line decoders/demultiplexers
� Schottky clamped for high performance
� Typical propagation delay (3 levels of logic) is 21 ns
� Typical power dissipation is 34 mW
Package: 14 pin D.I.L.

Vcc G2 A2 B2 2Y0 2Y1 2Y2 2Y3

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

G1 A1 B1 1Y0 1Y1 1Y2 1Y3 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
[267] Appendix-C

35. 74147: Decimal-to-BCD Priority Encoder


Brief Description:
The 74147 is a Decimal to BCD Priority Encoder. It is a TTL encoder that
features priority decoding of the inputs to ensure that only the highest-order data line
is encoded. The implied decimal zero condition requires no input condition, as zero is
encoded when all nine data lines are at a high logic level.
Package: 16 pin D.I.L.

Vcc NC D D3 D2 D1 D9 A

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

D4 D5 D6 D7 D8 C B GND

D1 to D9: Active Low Decimal Data. A, B, C, and D: Active Low Binary Outputs where A is LSB.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
Experiments in Digital Electronics [268]

36. 74148: Octal-to-Binary Priority Encoder


Brief Description:
The IC 74148 is an 8 data line to 3 line encoder (octal to binary). This IC
ensures that only the highest priority or order data is encoded. The device has an
inbuilt cascading circuit when input EI and output EO are enabled, which allows for
octal extension without external cascading circuits.
Features:
� Current supply: 40mA to 60mA.
� High-level input voltage: 2V.
� Low-level input voltage: 0.8V.
� High-level output voltage: 2. V to 3.3V.
� Low level output voltage: 0.2V to 0.4V.

Vcc EO GS D3 D2 D1 D0 A

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

D4 D5 D6 D7 EI C B GND
[269] Appendix-C

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
37. 74150: 16 X 1 Multiplexer
Brief Description:
The 74150 is a sixteen to one line multiplexer. It has an enable/strobe input,
which must be at a low logic level to enable the multiplexer. A high level at the enable
input forces the enable output to be high, and the output Y is the inverted input.
Package: 24 pin D.I.L./ (24 Pin FLAT)

Vcc D8 D9 D10 D11 D12 D13 D14 D15 A B C

24 23 22 21 20 19 18 17 16 15 14 13

1 2 3 4 5 6 7 8 9 10 11 12

D7 D6 D5 D4 D3 D2 D1 D0 EN Y D GND

D1 to D15: Active high Data Inputs; A, B, C, and D: Active high Control (Select) Inputs where A is LSB
Experiments in Digital Electronics [270]

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
38. 74151: 8 X 1 Multiplexer
Brief Description
The TTL74151 is a high-speed 8-input digital multiplexer that provides the
ability to select one bit of data from up to eight inputs in one package. An additional
facility of this IC is active low enable input. This means active-low enable input makes
this multiplexer perform its operation depending on the selection line, otherwise disable.
This can be used as a universal function generator to generate any logic function of
four variables. Both assertion and negation outputs are provided.
Features:
� Typical propagation delay 15 ns
� Typical power dissipation 135 mW
� Strobe override
� Performs parallel-to-serial conversion
Package: 16 pin D.I.L./ (16 Pin FLAT)
[271] Appendix-C

Pin Configurations:

Vcc D4 D5 D6 D7 A B C

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

D3 D2 D1 D0 Y Y EN GND

D0 to D7: Active high Data Inputs, A, B, and C: Active high Control (Select) Inputs where A is
LSB, Y: active high output and Y is active low output, EN :active low enable input

Specifications:

Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C

39. 74153: Dual 4 X 1 Multiplexers

Brief Description

The74153 is a data multiplexer or data selector IC. It has inverters and drivers
that supply fully complementary data selection to the AND-OR-NOT gates. It also
has on-chip and binary decoding. It has a dual 1 of 4 data multiplexer in one IC
package. This device acts as a double-pole four-throw switch. Two SELECT Lines
determine which of the four inputs is chosen. However, the same input for both four-
line sections will be selected.

Features:

� Typical propagation delay 20 ns

� Typical power dissipation 170 mW

� Input clamping diode


Experiments in Digital Electronics [272]

Package: 16 pin D.I.L./ (16 Pin FLAT)

Vcc E2 A 2D3 2D2 2D1 2D0 Y2

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

E1 B 1D3 1D2 1D1 1D0 Y1 GND

Lower 4 X 1 MUX: 1D0 to 1D3 active high data input, E1 : active low enable for
lower MUX, and Y1: active high output..
Upper 4 X 1 MUX: 2D0 to 2D3 active high data input, E2 is active low enable for
lower MUX, and Y2 is active high output.
A, and B: Active high Binary Data Control (Select) Inputs where A is LSB common
for both MUX.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
[273] Appendix-C

40. 74154: 1 X 16 Demultiplexer/Decoder

Brief Description:

In the 74LS154 IC, each of these 4-line-to-16-line decoders utilizes TTL


circuitry to decode four binary-coded inputs into one of sixteen mutually exclusive
outputs when both the enable inputs, EN1 and EN2, are low. The demultiplexing
function is performed by using the 4 input lines to address the output line, passing
data from one of the enable inputs to the other enable input. When either enable input
is high, all outputs are high.

Features:

� Performs the demultiplexing function by distributing data from one input


line to any one of 16 outputs

� Input clamping diodes simplify system design

� High fan-out, low-impedance, totem-pole outputs

� Typical propagation delay 3 levels of logic 23 ns Strobe 19 ns

� Typical power dissipation 45 mW

Package: 24 pin D.I.L./ (24 Pin FLAT)


Experiments in Digital Electronics [274]

Pin Configurations:

Vcc A B C D EN2 EN1 Y15 Y14 Y13 Y12 Y11

24 23 22 21 20 19 18 17 16 15 14 13

1 2 3 4 5 6 7 8 9 10 11 12

Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7 Y8 Y9 Y10 GND

EN1 and EN2 : active low enable input, A, B C D : active high inputs, Y to Y15 :
active low outputs when both enable are low, and when either (or both) enable inputs
are high,
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 7V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
41. 74157: Quad 2X1 Multiplexers
Brief Description:
The 74HC157 is a 2-input (2X1) Multiplexer IC. It has four similar multiplexers
inside it, and hence it is called Quad Package 2-Input Multiplexer. Each has two input
pins (for the first MUX: input 1A and 1B) and one output pin (for the first MUX:
output 1Y), which forms a 2X1 Multiplexer. It selects four bits of data from two
sources under the control of common data select input when the enable input is active
low.
Features:
� 2-input Multiplexer Quad Package.
� Minimum high-level Input Voltage: 3.15V @ (Vcc = 4.5V)
� Maximum low-level Input Voltage: 1.35V @ (Vcc = 4.5V)
� TTL/CMOS Input Logic compatibility.
[275] Appendix-C

� Maximum Propagation Delay: 25ns @ (Vcc = 4.5V)


Package: 24 pin D.I.L./ (24 Pin FLAT)

Pin Configurations:

Vcc EN A4 B4 Y4 A3 B3 Y3

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

S A1 B1 Y1 A2 B2 Y2 GND

A and B: active high data inputs, Y: active high output, EN : common active low enable input
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 7V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
42. 74164: 8-bit Serial-in, Parallel-out Shift Register
Brief Description:
The 74LS164 is a high-speed shift register with serial input of data and parallel
Experiments in Digital Electronics [276]

output of data. Data at serial input is fed through 1 input AND gate, and it is synchronous
with the LOW to HIGH transition of the clock. In other words, the transition of data
occurs on every positive edge of the input clock.
Features:
� 8-bit Gated Serial Inputs with Asynchronous Clear
� Clocking Occurs on the Low-to-High Transition of the Clock Input
� Data at the Serial Inputs can be Changed on High or Low State of the
Clock
� Standard TTL Switching Voltages
Package: 24 pin D.I.L./ (24 Pin FLAT)

Vcc QH QG QF QE CLR CLK(�)

14 13 12 11 10 9 8

1 2 3 4 5 6 7

A B QA QB QC QD GND

A and B ( Serial input A, B): These pins are used to serial input data to the IC, which
needs to be converted into parallel output. These are serial data input pins, CLK (�) :
This input pin is for a clock signal. It is an active high rising edge pin. CLR : This pin
[277] Appendix-C

is used to perform the function of master reset. This is an active low input pin. QA to
QH : These are output pins and are used for providing parallel data of 8 bits as output,
Vcc : terminal for feeding positive power supply, GND: ground terminal of power
supply.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 7V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
43. 74165: 8-bit Serial/Parallel-in, Parallel-out Shift Register
Brief Description:
The 74LS165 is an 8-bit parallel load or serial-in register with complementary
outputs available from the last stage. Parallel inputting occurs asynchronously when
the Parallel Load (S/L) input is LOW. With S/L HIGH, serial shifting occurs on the
rising edge of the clock; new data enters via the Serial Data (DS) input. The 2-input
OR clock can be used to combine two independent clock sources, or one input can act
as an active LOW clock enable.
Features:
� 8-bit Serial Shift Register for Serial Data Output
� Complementary Outputs
� Gated Clock Inputs
� Direct Overriding Load Inputs
Package: 24 pin D.I.L./ (24 Pin FLAT)
Experiments in Digital Electronics [278]

Pin Configurations:

Vcc CLKINH(�) D C B A SI QH

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

S/L CLK(�) E F G H QH GND

For clock operation, S/L must be high. The two clock inputs perform identically; one
can be used as a clock inhibit by applying a high signal. To avoid double clocking,
however, the inhibit signal should only go high while the clock is high. Otherwise, the
rising inhibit signal will cause the same response as a rising clock edge. The flip-flops
are edge-triggered for serial operations. The serial input data can change at any time,
provided only that the recommended setup and hold times are observed with respect
to the rising edge of the clock.
CLK (�) and CLKINH(�) : Clock (LOW-to-HIGH Going Edge) Inputs, SI: Serial
Data Input, S/L: Asynchronous Parallel Load (Active low input load data and active
high shift the data) Input, A to H: Parallel Data Inputs, QH: Serial active high Output,
QH : Serial active low Output.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 7V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
44. 74180: 9-bit Parity Generator/Checker
Brief Description
The 74180 is a universal, monolithic, 9-bit (8 data bits plus 1 parity bit) parity
generator/checker in a 14-lead plastic DIP type package that utilizes familiar Series
74 TTL circuitry and features odd/even outputs and control inputs to facilitate operations
in either odd or even/parity applications. This IC consists of eight parity inputs from A
through H and two cascading inputs. There are two outputs, an even sum and an odd
sum. In implementing generator or checker circuits, unused parity bits must be tied to
logic zero, and the cascading inputs must not be equal.
[279] Appendix-C

Features:
� Typical propagation delay, 30 ns
� Typical power dissipation, 180 mW
� Ease of expansion
Package: 14 pin D.I.L./ (14 Pin FLAT)

Vcc F E D C B A

14 13 12 11 10 9 8

1 2 3 4 5 6 7

Even Odd Σ Even Σ Odd


G H GND
input input output output

A to H: parity inputs, Even input and Odd input: cascading input used when required
to cascade two ICs.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
Experiments in Digital Electronics [280]

45. 74184: BCD-to-Binary Code Converter


Brief Description:
The 74184 is a 6-bit BCD-to-binary code converter IC. Emitter connections
are made to provide a direct read-out of converted codes at outputs Y7 through Y1.
An overriding enable input is provided on each converter which when taken high. It
inhibits the function, causing all outputs to go high.
Package: 16 pin D.I.L

Pin Connections:

Vcc EN E D C B A Y10

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

Y1 Y2 Y3 Y4 Y5 Y6 Y7 GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
[281] Appendix-C

46. 74194: 4-bit Bi-directional ( Universal) Shift Register


Brief Description
The IC 74LS194 is a bidirectional shift register consisting of the facility of
shifting data as parallel inputs, parallel outputs, right-shift and left-shift serial inputs.
The data is loaded into the associated flip-flops and appears at the outputs after the
positive transition of the clock input. During loading, serial data flow is inhibited.
Shift right is accomplished synchronously with the rising edge of the clock pulse
when S0 is HIGH, and S1 is LOW. Serial data for this mode is entered at the shift-
right data input. When S0 is LOW, and S1 is HIGH, data shifts left synchronously,
and new data is entered at the shift-left serial input. The clocking of the flip-flop is
inhibited when both mode control inputs are LOW.
Features:
� Parallel inputs and outputs
� Four operating modes: Synchronous parallel load Right shift Left shift
� Positive edge-triggered clocking
� Direct overriding clear
Package: 14 pin D.I.L.
Experiments in Digital Electronics [282]

Pin Configurations:

QC QD CLK(�) S1
Vcc QA QB S0

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

CLR SRSI A B C D SLSI GND

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
47. 74195: Universal 4-bit Serial/Parrel-in, Parallel-out Shift Register
Brief Description:
The 74195 is a 4-bit parallel access shift register in a 16-lead plastic DIP type
package. It features parallel inputs, parallel outputs, J-K serial inputs, shift/load control
input, and a direct overriding clear. All inputs are buffered to lower the input drive
requirements. This is a high-speed 4-bit shift register. It is useful for a wide variety of
register and counter applications.
Features:
� Asynchronous master reset
� J and K inputs to first stage
� Fully synchronous serial and parallel data transfer
Package: 14 pin D.I.L.
[283] Appendix-C

Pin Configurations:

QC QD QD CLK (�)
Vcc QA QB S/L

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

CLR J K A B C D GND

S/L: active low parallel enable inputs, A to D: parallel data inputs, J: first stage active
high input, K: first stage active low input, CLK (�) : Positive edge triggered clock
pulse input, CLR : Active low asynchronous input, QA to QD: parallel outputs, QD :
Complementary last stage output (active low).
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
48. 74198: 8-bit Bi-directional ( Universal) Shift Register
Brief Description:
The 8-bit bi-directional universal shift register IC is useful for serial-serial,
serial-parallel, parallel-serial, and parallel-parallel data transfer. An asynchronous
master reset input overrides all other inputs and clears the register. This Shift right is
accomplished with the rising edge of the clock pulse when S0 and S1 are low and
serial data for this mode is entered at the shift right data input. When S0 and S1 are
high, data shift left synchronously, and new data is entered at the shift left serial input.
Features:
� 8-bit bi directional universal shift register
� Average Propagation delay is from 26 to 30 ns per gate
� Shift frequency is 25 MHz
Experiments in Digital Electronics [284]

Package: 24 pin D.I.L. / (24 pin FLAT)

Vcc S1 SLSI H QH G QG F QF E QE CLR

24 23 22 21 20 19 18 17 16 15 14 13

1 2 3 4 5 6 7 8 9 10 11 12

S0 SRSI A QA B QB C QC D QD CLK (�) GND

SRSI: Shift right serial input, SLSI: Shift left serial input, A to H: data inputs, QA to
QH: data output.
Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
49. 74199: 8-bit Serial/Parallel-in, Parallel-out Shift Register
Brief Description:
These 8-bit shift registers are compatible with most other TTL logic families.
It is an 8-bit shift register capable of being operated in three modes. Shift right is
[285] Appendix-C

accomplished with the rising edge of the clock pulse when S0 and S1 are low. Serial
data for this mode is entered at the shift right data input. When so and s1 is high, data
shift left synchronously, and new data is entered at the shift left serial input. Clocking
of flip flop is inhibited when both mode control inputs are low. The mode control
should be changed only while the clock input is high.
Features:
� Eight bit Serial/Parallel-in and Parallel out shit register
� Average Propagation delay is from 14 to 21 ns per gate
� Shift frequency is 35 MHz
� Power dissipation is 360mW
Package: 24 pin D.I.L. / (24 pin FLAT)

Pin Configurations:

Vcc S/L H QH G QG F QF E QE CLR CLK(�)

24 23 22 21 20 19 18 17 16 15 14 13

1 2 3 4 5 6 7 8 9 10 11 12

K J A QA B QB C QC D QD CLKINH(�) GND
Experiments in Digital Electronics [286]

Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
50. 74279: Quad Latches
Brief Description:
The 74LS279 consists of four individual and independent Set-Reset Latches
with active-low inputs. Two of the four latches have an additional S input ANDed
with the primary S input. A low on any S input, while the R input is high, will be
stored in the latch and appear on the corresponding Q output as a high. A low on the R
input, while the S input is high, will clear the Q output to a low. The simultaneous
transition of the R and S inputs from low to high will cause the Q output to be
indeterminate. Both inputs are voltage level triggered and are not affected by the
transition time of the input data.
Features:
� Four Basic Set-Reset Flip-Flop Latches
� Operating Temperature 0°C to 70°C
� Standard TTL Voltages
� Average Propagation delay is from 14 to 21 ns per gate
Package: 14 pin D.I.L.
[287] Appendix-C

Pin Configurations:

4S1 4R 4Q 3S2 3S1 3R


Vcc 3Q

16 15 14 13 12 11 10 9

1 2 3 4 5 6 7 8

1R 1S1 1S2 1Q 2R 2S 2Q GND

51. 74280: 9-bit Parity Generator/Checker


Brief Description:
The 74S280 is an MSI circuit that functions as a 9-bit parity generator/checker.
If the number of inputs A through I is high is even, then the even output goes high
and odd output goes low. To use the IC as an even-parity generator, use odd
output to generate the parity bit. These devices are fully compatible with most other
TTL circuits.
Features:
� 9-bit parity generator/checker
� Typical power dissipation : 80 mW
� Average Propagation delay : 14 to 21 ns per gate
Experiments in Digital Electronics [288]

Pin Configurations:

Vcc F E D C B A

14 13 12 11 10 9 8

1 2 3 4 5 6 7

G H NC I Σ Even Σ Odd GND

A to I: Data inputs, Σ Even and Σ Odd: out puts


Specifications:
Parameter Specificatins
Supply Voltage (Vcc) 7V
Input Voltage 5.5V
Operating free-air temperature range 00 C to + 700 C
Storage Temperature Range - 650 C to + 1500 C
[289]

Appendix- D
BIBLIOGRAPHY
A. BOOKS
1. A. Anand Kumar, Fundamentals of Digital Circuits, PHI Publication,
2014.
2. Balch, Complete Digital Design, McGraw-Hill Education (India), Pvt.
Limited, 2005.
3. Fredrick W. Hughes, Digital Electronics (Theory and
Experimentation), Prentice-Hall, 1986.
4. James Bignell and Robert Donovan, Digital Electronics (Fourth
Edition), DELMAR THOMSON LEARNING, 2001.
5. M. Morris Mano, Michael D. Ciletti, Digital Design: With an
Introduction to the Verilog HDL, Pearson Publication, 2012.
6. M. V. Subramanyam, Switching Theory and Logic Design, Laxmi
Publications, 2005.
7. Owen Neville Bishop, Digital Electronics Projects for Beginners, PC
Publishing, 1990.
8. R. J. Tocci, Digital System: Principles and Applications, Prentice-Hall
Publication, 1977.
9. R. P. Jain, M. M. S. Anand, Digital Electronics Practice Using
Integrated Circuits, Tata McGraw-Hill, 2001.
10. Robert Dueck, Ken Reid, Digital Electronics, Cengage Learning, 2011.
11. Virendra Kumar, Digital Electronics Theory and Experiments, New
Age International Publishers, 2002.
B. DATA MANUALS
1. BEL Semiconductors Data Manual, Bharat Electronics Ltd., Bangalore
(India), 1975.
2. Condensed Data Book on Linear and Digital Integrated Circuits,
General Radio Co.,Calcutta.
3. MOTOROLA : The Integrated Circuit Data Book, 1968.
4. NATIONAL : TTL Data Book, 1976.
Experiments in Digital Electronics [290]

5. SIGNETICS Logic : TTL Data Manual, 1978.


6. TEXAS : The TTL Data Book for Design Engineers, 1976.
C. LINKS
1. https://alldatasheet.com
2. https://www.electroniq.net/other-electronic-software/ic-databook.html
3. https://circuitverse.org/users/63092
[291]

Index
Adder/subtraction
Adder/Subtraction 89, 91
1’s Complement 85
2’s Complement 89
Full Subtraction circuits 81
Half-subtraction 78

Adder
BCD adder using IC 7483 75, 77, 78
Four-bit serial adder using a sequential-
logic 195
Full adder IC7483 72
Full-adder 68, 72, 195
Half-adder 65, 66, 67

Boolean’s law
Absorption law 55, 56, 61
Associative law 54, 55, 60
Commutative law 51, 52, 59
Complementation law 58, 61
De-Morgan’s Theorem 49, 50
Distributive law 52, 53, 54, 59, 60
Duality theorem 49, 50
Idempotent law 57, 61
Clock pulse generator using IC-72555 225, 226

Code conversion
BCD-to-Binary conversion 97
BCD-to-EX-3 code converter 104
Binary-to-BCD code converter 94, 99, 100
Experiments in Digital Electronics [292]

Binary-to-Gray code converter 100, 102, 104


Gray- to -Binary code conversion 102

Codes
BCD Code 75, 94, 95, 96, 97, 99, 100, 104, 105,
107, 108, 143, 255
Gray Code 100, 101, 102, 104,
Color Coding 12, 13

Comparator 107, 108, 109, 110, 218, 226, 255


Integrated Circuit Comparator 109

Counters
4-bit asynchronous binary counter 198, 201
4-bit Johnson counters 191, 192, 193, and 194
4-bit Ring counters 191, 192, 193, and 194
4-bit synchronous binary counter 204, 207
Asynchronous decade counter 198, 201
BCD counters 202, 210, 258
De bounce switch 224

Decoder 138, 139, 140, 141, 142, 144, 146,


167, 217, 219, 241, 242, 243, 244,
246, 264, 265, 273
A 3X8 Decoder 139, 140
A 4-line-to-16 line (4X16) Decoder 139
Seven-Segment decoder-driver 142

Demultiplexer
A 1-line-to-16 line (1X16) DMUX 132
A 1X8 DMUX 134
Dual 1X4 DMUX 136
Digital ICs: Brief description of
Digital ICs 227
[293] Index

Display
Common Anode LED displays 141
Common Cathode LED displays 142

Enable/Inhibit
AND gate Enable/Inhibit 30, 33
Ex-OR gate as Enable/Inhibit 32, 34
NOR gate as Enable/Inhibit 32, 33
OR gate Enable/Inhibit 31, 33
NOR Gate as Enable/Inhibit 32

Encoder 100, 147, 267, 268


Decimal to BCD priority encoder 147, 149, 153, 267
Octal to binary encoder 147, 148, 151, 152, 153
Priority Encoder 147, 148, 149, 153, 267, 268

Expanding Gate
Expanding a NAND gate 35, 38
Expanding an AND gate 34, 37
Expanding an NOR gate 36, 39
Expanding an OR gate 36, 38

Flip Flop Conversion


D flip-flop to JK flip-flop 170
D flip-flop to SR flip-flop 169
D flip-flop to T flip-flop 171
JK flip-flop to D flip-flop 172
JK flip-flop to SR flip-flop 171
JK flip-flop to T flip-flop 173
SR flip-flop to D flip-flop 167
SR flip-flop to JK flip-flop 168
SR flip-flop to T flip-flop 168
T flip-flop to D flip-flop 175
T flip-flop to JK flip-flop 175
T flip-flop to SR flip-flop 174
Experiments in Digital Electronics [294]

Flip Flop
Asynchronous/direct inputs of
flip-Flops 161
Characteristics equations for flip-Flops 160
Edge-triggered D, JK and T flip-flop 157
Master-Slave D Flip-flop 159, 219
Master-Slave JK flip-flop 160, 261
Race-Around Condition of JK flip-flop 158

Gates
AND gate 21, 22, 169, 215, 216, 233, 235, 237,
247
Exclusive-NOR gates 28
Exclusive-OR gates 27
Inverters 18, 19, 25, 41, 232, 242, 271
NAND gate Enable/Inhibit 30, 33
OR gate 20, 215, 216, 240
General symbol for gates 215, 216
Guidelines for the Teacher 17
Hazards 17
IC Identification: 10
IC-7490 chip study 208, 258, 259
IC-7492 chip study 207, 210, 211, 212, 260
IC-7493 chip study 207, 213, 214, 222, 261
ICs Packages 8, 9, 132, 142, 149
Laboratory Safety Rules 15

Latch
D-Latch with control input 156
D-Latch 156
SR latch with control input 155
SR latch 155
LED: 4-Buffered LEDs 225
Light Emitting Diode 2
Logic families 5, 6, 14, 62, 227, 284
[295] Index

Logic monitors 224


Logic Probes 14
Logic Pulser 14

Multiplexer
Multiplexer 119. 120, 126, 269, 270, 271, 274
A 16-to-1line (16X1) MUX 121
A 1X8 DMUX 134
A 2X1 MUX 128
A 4X1 MUX 124
A 8X1 MUX 123

Parity bit
Parity bit 111, 112, 113, 114, 115, 278, 287
Parity checker 113, 115
Parity Generator/ checker: 9-bit parity
generator/checker 114, 279, 287
Parity Generator: Even parity generator 112, 114, 287
Parity Generator: Even/odd-parity
generator 112, 115
Pin arrangements 10
Positive and negative clock generator 225, 226
Power Supply 2, 5, 15, 16
Precautions for handling CMOS-ICs 13
Propagation delay 25, 26, 159, 228
Protoboard/Breadboard 2
Rectangular-shape graphic symbol for
gates 215
Regulated power supply (5V) for
TTL devices 223
Resistors 2, 5, 11
Seven-segment display: 4

Shift Register
Parallel in- Serial out 180, 184, 187, 188
Experiments in Digital Electronics [296]

Parallel in-Parallel out: 180, 184, 187, 189


Serial in- Serial out 178, 183, 187, 188
Serial in-Parallel out 179, 183, 187, 188
Standard Graphic Symbols 215
Switches: Four logic switches 223
Timer: 555 Timer circuit 225
Troubleshooting Tips 14

Universal gate
NAND as a NOR 42
NAND as an AND 41
NAND as an EX-NOR 43
NAND as an EX-OR 42
NAND as an OR 41
NAND as NOT 40
NAND gates 1, 7, 18, 22, 23, 24, 30, 34, 35, 40,
215, 216, 228, 229, 231, 234, 236, 239
NOR as a NAND 46
NOR as an AND 45
NOR as an EX-NOR 47
NOR as an EX-OR 46
NOR as an Inverter 45
NOR as an OR 45
NOR gates 23-25, 44-48,155, 215,216, 230, 238
Universal Shift Register 183, 184, 187, 189, 281, 283
Use of Laboratory Manual 16
Wave Form 25, 29

You might also like