Experiments in Digital Electronics Final
Experiments in Digital Electronics Final
DIGITAL ELECTRONICS
{For B.E./B.Tech. Degree/Diploma courses in Electrical/Electronics/computer
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
© 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
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 ) Salik Ram Bahuguna (Dada Ji) and Late (Sri)
Raghwanand Gairola (Nana Ji)
-Arun Shekhar Bahuguna
Acknowledgements
Dr. V.S.Bist
Er. A.S.Bahuguna
Dr. Sunil Semwal
[vii] Experiments in Digital Electronics
Contents
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.
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
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.
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
Kilohms � k� � 1000’s
+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]
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]
Input Output
A
1 2 3 4 0 1
A 7404 Y A A 7404 Y A 1 0
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.
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
Some of the available AND gate ICs are listed in Table 1.1.3
Table 1.1.3: AND ICs
(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.
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:
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
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
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.
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
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]
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]
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).
9
C 8
10 00 00
D
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).
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
14 1 1 1 0
15 1 1 1 1
3. Expanding an OR gate:
[39] Digital Logic Gates
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
1
Input
3
7400 Output
2
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.
1
3
2 00
4 00
6
5 00
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
(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
2
Input
1
02 Output
3
2 5
02 1 02 4 Y
3 6
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
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
(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.
(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]
(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]
1 4
32 = 32
2 3 5 6
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
(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
1 9
A 4 B 8
08 Y=(A.B).C 08
2 3 6 10
B 5 08 C B.C
1
3
2 32
B (A+B)
Fig.3.2.7: Absorption law for OR-AND logic.
Experiments in Digital Electronics [56]
1
1 3
B 3 2 32 Y=A+B.C
2 08
C
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
Inputs Output
A A A A.A.A
0 0 0 0
1 1 1 1
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
(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.
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.
b. Distributive law:
Truth table for distributive law (i).
c. Associative law:
Truth table for associative law (i)
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
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
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)
� 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 � 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.
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
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
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
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
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
EXPERIMENT-4.4
Object: Design and verify the operation of BCD adder using IC 7483 and basic gates.
Equipment/Components required:
2. Components:
ICs: Two 7483 (4 bit parallel adder) ,One 7408 (Quadruple 2-input AND
gates), One 7432 (Quadruple 2-input OR gates).
Brief theory:
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
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;
c. NAND-NAND gates;
� 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
(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
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}
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
bin B A
04 04
08
08
32
08
08
Difference
32
08
08
32
08
08
32
32
Fig. 4.6.4: Logic diagram of a full subtractor using two half subtract and OR gate
Experiments in Digital Electronics [84]
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
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
(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]
Brief theory:
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
add 0 0 0 0 0
0 1 0 0 0 Ov erflo w(n eed o ne m ore b it)
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
Observation Table:
Precautions:
EXPERIMENT-4.8
Object: Design, construct and verify the operations of 2’s complement adder/
subtraction circuits.
Equipment/Components required:
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.
Brief theory:
The subtraction of the two binary numbers can be done by the following steps:
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.
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.
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
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
(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
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]
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
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.
(6) Check the output of each circuit by giving the proper sequence of binary.
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
G3
86 G2
2 3
86 G1
5 6
86 G0
10 8
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
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.
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
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
(a)
(b)
Fig. 5.4.2: IC 7485: (a) pin diagram (b) 8-bit comparator
Experiments in Digital Electronics [110]
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
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
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
� 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
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
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
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
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
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.
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:
(a)
Experiments in Digital Electronics [122]
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)
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
(a)
(b)
Experiments in Digital Electronics [128]
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
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
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]
(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
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)
(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]
(a)
(b)
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
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
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:
A � D1 � D3 � D5 � D7
B � D2 � D3 � D6 � D7
C � D4 � D5 � D6 � D7
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
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.
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)
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]
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
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
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
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
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
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:
1 0 0 1 Set
1 1 1 0 Reset
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)
Fig.7.1.11: Master-Slave D Flip-Flop (a) graphic Symbol (b) logic diagram
Experiments in Digital Electronics [160]
(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
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 1 Q = 1 Set 4 3
6
1 0 Q = 0 Clear 00
6 4
10 Q
R 5
1 1 Clocked Operation 5
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
indicate pin numbers. The IC 74LS279 is a quad set-reset latch. The pinout and function
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
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
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
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
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
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 � 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 �
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
Q(t � 1) T � Q � T � Q � Q � D � 0 � D � D
� Q(t � 1) D
1
3
Q
86 T
D 2
CLK
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 )
1
3
2
00
J
9 Q
8 T
10 00
CLK
4
K 6
00 Q
5
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
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
� 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
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
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
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
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
Inputs Output
Shift
Data Load
clock Q1 Q2 Q3 Q4
Inputs Output
Shift
Data Load
clock Q1 Q2 Q3 Q3
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.
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
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]
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
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
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.
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.
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.
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
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
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’
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
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
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
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]
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
Observation Table:
Count CLK QD QC QB QA
0 �
1 �
2 �
3 �
4 �
5 �
6 �
7 �
8 �
9 �
10 �
11 �
12 �
13 �
14 �
15 �
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]
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
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
1110 0010
1101 0011
1100 0100
1011 0101
1010 0110
1001 0111
1000
3. Table 9.3.1 shows the excitation table. It lists the present state and next
state and required excitation.
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:
(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
(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]
Table 9.4.2
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
(a)
Experiments in Digital Electronics [212]
(c)
1 12 11 9 8
(+5V) Q A QB QC Q D
V CLKB
5 CC
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
(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
& 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
A
A Y � AB
A
1 & 1
B B
A Y � A � B=A
Y � A �B B
=1 =1
B
2-input Ex-OR gate 2-input Ex-NOR gate
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
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
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
�1 OR function
=1 Exclusive-OR function
MUX Multiplixer
DMUX Demultiplexer
� Adder
� Multiplier
CTR Counter
Table A.2 gives the list of qualifying symbols associated with input and output.
Symbol Description
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
D
D Q Q
Control CLK
Q Q
D latch Positive-edge-triggered
D Flip-flop
D D
Q Q
CLK CLK
Q Q
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
PRE 4
3 5 Q
CLK
D 2
7474 6 Q
CLR 1
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.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
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
(DPST Swich)
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
Positive voltage
1K 1K 1K 1K
Output
2 4 7 9
(4050)
3 5 6 10
Input 10K 10K 10K 10K
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
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
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
16 15 14 13 12 11 10 9
1 2 3 4 5 6 7 8
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:
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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
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
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
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
Pin Configurations:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
NC CLR J1 J2 J3 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
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
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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
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:
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
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.
Vcc A3 B2 A2 A1 B1 A0 B0
16 15 14 13 12 11 10 9
1 2 3 4 5 6 7 8
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)
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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]
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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:
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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
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.
16 15 14 13 12 11 10 9
1 2 3 4 5 6 7 8
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
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]
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)
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
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:
16 15 14 13 12 11 10 9
1 2 3 4 5 6 7 8
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
Brief Description:
Features:
Pin Configurations:
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
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)
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
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
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]
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
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
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]
24 23 22 21 20 19 18 17 16 15 14 13
1 2 3 4 5 6 7 8 9 10 11 12
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:
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:
16 15 14 13 12 11 10 9
1 2 3 4 5 6 7 8
Pin Configurations:
Vcc F E D C B A
14 13 12 11 10 9 8
1 2 3 4 5 6 7
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]
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]
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
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
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
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
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
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]
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