55
  Comsats Institute of  Information Technology  Attock Campus Department of  Electrical Engineering COURSE:  DIGITAL LOGIC AND DESIGN  SEMESTER: 2nd INSTRUCTOR :  MR. HASNAIN KASHI F   

Lab Manual Digital Logic Design_attock

Embed Size (px)

Citation preview

Page 1: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 1/54

 

  Comsats Institute of  Information Technology Attock Campus 

Department of  Electrical Engineering 

COURSE:  DIGITAL LOGIC AND DESIGN  

SEMESTER: 2nd

INSTRUCTOR:  MR. HASNAIN KASHIF 

Page 2: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 2/54

 

Labs Experiments

Lab#1 Introduction EPAL trainer

Lab #2  To check the operation of OR gate according to the OR’s truth table, using the IC74LS32.

To check the operation of NOT gate according to the NOT truth table, using theIC 74LS04.

To check the operation of AND gate according to the AND truth table, using theIC 74LS08.

Lab #3 To check the operation of NAND gate according to the NAND truth table, usingthe IC 74LS00.

To check the operation of NOR gate according to the NOR truth table, using theIC 74LS02.

To check the operation of XOR gate according to the XOR truth table using IC

74LS86.

Lab #4 1. To check the operation of XOR gate, using IC74LS002. To check the operation of OR gate according to the NAND truth table,

using the IC 74LS003. To check the operation of AND gate according to the NAND truth table,

using the IC 74LS004. To check the operation of NOT gate according to the NAND’s truth table,

using the IC 74LS00.

Lab #5 To check the half adder operation using XOR and AND gates

Lab #6 To design full adder circuit using XOR, AND & OR gates.

Lab #7 To design half sub tractor circuit using XOR, AND & NOT gates.

Lab #8 To check the full sub tractor circuit using XOR, AND , NOT and OR gates.

Lab#9 Design the BCD-to-seven-segment decoder circuit

Lab #10 To check the operation of decoder by using IC 74LS08 and IC74LS04

Lab #11 To check the operation of multiplexer by using IC 74LS04, IC 74LS08 and IC74LS32

Lab# 12 To check the operation of basic RS- flip flop using IC 74LS00..

Lab #13 To check the operation of clocked RS-flip flop using IC 74LS00

Lab#14 To check the operation of J – K flip-flop using IC 74LS00 and 74LS10

Lab#15 To check the operation of two stage binary ripple up counter.

Lab#16 Viva

Page 3: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 3/54

 

Digital Logic Design Laboratory Work Book

Introduction:

Binary logic consists of binary variables and logical operations. The variables are designatedby letters of the alphabet such as A, B, C, x, y, z, etc., with each variable having two and only

two distinct possible values: 1 and O. There are three basic logical operations: AND, OR, andNOT.

1. AND:. This operation is represented by a dot or by the absence of an operator. For 

example,   x. Y = z or  xy = z is read "x AND y  is equal to z." The logical operation AND Js

interpreted to, mean that z = 1 if and only if  x = 1 and Y = 1; otherwise z = 0. (Remember that x, y, and z are binary variables and can be equal either to I or 0, and nothing else.)

2. OR: This operation is represented by a plus sign. For example,  x + y = z is read "x OR y ” is

equal to z," meaning that z = 1 if  x = 1 or if y = 1 or if both x = 1 and y = 1. If both x  and y = 0,

then z = O.

3. NOT: This operation is represented by a prime (sometimes by a bar). For example,  x' = z

(or x = i) is read "not x is equal to 1.," meaning that z is what  x is not. In other words, if  x = 1,

then z = 0; but if  x = 0, then z = 1.

Binary logic resembles binary arithmetic, and the operations AND and OR have somesimilarities to multiplication and addition, respectively. In fact, the symbols used for AND andOR are the same as those used for multiplication and addition. However, binary logic shouldnot be confused with binary arithmetic. One should realize that an arithmetic variabledesignates a number that may consist of many digits. A logic variable is always either a 1 or a O. For example, in binary arithmetic, we have 1 + 1 = 10 (read: "one plus one is equal to2"), whereas in binary logic, we have 1 + I = I (read: “one OR one is equal to one”).

,For each combination of the values of  x and y, there a value of z specified by the definition of 

the logical operation. These definition may be listed in a compact form using truth tables. Atruth table is a table of all possible combinations of the variables showing relation betweenthe values that the variables may take and the result of the operation.

Page 4: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 4/54

 

 

LAB # 1

Objective:

To understand EPAL trainer

Introduction to EPAL:

EPAL has been designed as educational and basic R&D platform designed to coversubstantial courseware and experiments in the field of electronics, telecom and mechatronics.

The objective was to facilitate the engineers and scientists to learn the fundamentals of 

electronics, embedded systems design, instrumentation and measurement that has now become a

vital ingredient for their success. When powered by LabVIEW and USB Data Acquisition Cardfrom National Instruments, USA along with basic add-ons of PICO Scope (1GS/s Oscilloscope

Probe) and AVR Evaluation kit this system becomes a powerful platform to deliver infinitepossibilities.

It is National Instruments Educational Laboratory for Virtual Instrumentation Suite

(NI-ELVIS) compatible, thus in conjunction with NI ELVIS can deliver the students

a feel of ownership when away from their Lab. It is strongly recommended thatenough numbers of such addon boards should be purchased by university where each

student can own one EPAL while on returning to the lab, he can still plug his module

in NI-ELVIS and follow the instructor during his lab session and with the help of ELVIS Independent features such as its own power supply, function generator, AVR

Add-on and DAQ Board etc, he can still use the ePAL in comfort of his room toComplete the left over work or further experiment with electronics.

Page 5: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 5/54

 

 

The basic ePAL unpacked unit consists of an external power supply, bread board and a trainer.

On unpacking you will also find a test report generated by RIMS quality assurance department.The test report shows function generator waveforms and measurements related to the output of 

function generator. Complementary broachers, evaluation samples and stickers might be found

but they are not the part of the packing list from RIMS. The manufacturing process for ePAL is  

totally machine automated and the high temperature on process line with soldering liquid makesthe internal contacts of the push buttons and slide switches hard. If you are feeling that any of the

Page 6: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 6/54

 

slide switches or push buttons have hardness in functionality, kindly spray the contact cleanerover the related slide switches and push buttons which is normally available in laboratories.

Safety and Handling Issues 

It is utmost recommended that you must clean and dry up your hands before you startworking on ePAL. This can avoid depositing, hand carrier materials between contacts and

therefore avoid short circuiting. Although ePAL has been fused properly for all power supply

levels and easily replaceable but you must avoid falling naked patching wires or conductingmaterials on ePAL. The work bench for practicing on ePAL must have a reasonable dimension

irrespective of its compactness and avoid giving it mechanical shocks and stress. Keep it away

from children if you are using ePAL and its accessories at home.

Environment The working environment for ePAL must be dust, pollution and vibration free. Different

functional blocks of ePAL especially the function generator can be noise induced if the

environment is not EMI ( Electro-Magnetic Interference) free. Different appliances in theenvironment can produce EMI if there is a loose connection between the power plugs and the

power sockets.

Safety and Handling Issues It is utmost recommended that you must clean and dry up your hands before you start

working on ePAL. This can avoid depositing, hand carrier materials between contacts and

therefore avoid short circuiting. Although ePAL has been fused properly for all power supplylevels and easily replaceable but you must avoid falling naked patching wires or conducting

materials on ePAL. The work bench for practicing on ePAL must have a reasonable dimension

irrespective of its compactness and avoid giving it mechanical shocks and stress. Keep it awayfrom children if you are using ePAL and its accessories at home.

Environment The working environment for ePAL must be dust, pollution and vibration free. Different

functional blocks of ePAL especially the function generator can be noise induced if theenvironment is not EMI ( Electro-Magnetic Interference) free. Different appliances in the

environment can produce EMI if there is a loose connection between the power plugs and the

power sockets.

Before you power up the ePALAll the slide switches on ePAL are in OFF state when they are pushed down and ON

otherwise. Turn the power supply slide switches to OFF position and insert the external power

supply male jack in the female power jack on ePAL. If you are sure that the male power supply jack is inserted properly then turns the power supply switches in ON state.

Placing the bread board on ePALFor placing the bread board on ePAL, enable the sticker from back of the bread board

and place it gently on the location indicated on ePAL as shown in Figure 2 below.  

Page 7: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 7/54

 

 

Page 8: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 8/54

 

Key Functional Blocks of EPAL The functional blocks on ePAL directly or indirectly support experiments related to analog and

digital electronics. This includes only the on-board facilities and few important third part add-

ons.

Page 9: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 9/54

 

Power Supply EPAL is shipped with a portable external power supply manufactured by XP

Power (www.xppower.com). The power supply specifications are

INPUT 100-240V

~ 47 – 63 Hz ----1.35AOUTPUT 42W max

PIN3 +5V ---- 5A

PIN5 +15V ---- 2A

PIN4 -15V ---- 0.8A

PIN1, 2 COMMON

SHELL GND

The power supply voltages are available on the left half of ePAL on headers as

shown in figure 8. 

Page 10: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 10/54

 

 Power Jack The power jack is on the right top corner of ePAL. To apply power to ePAL,

align the pins of the male and female connector of power supply and insert

gently. Before starting your work on ePAL, make sure that you have insertedthe jack properly. The figure below shows the location of the power connector

on EPAL.

Fuses ePAL has been designed as a toolset for advanced applications and also for beginners.

Short circuiting is very common under general practice in electronics engineering domain

by beginners. ePAL is protected with fuses for +15V, -15V and +5V which are easilyreplaceable. None of the fuses allow passing more than 250mA of current. Figure 10

below shows the location of fuses on ePAL.

Variable Power Supply Variable power supply is very important for performing experiments on ePAL. ePAL

is provided with a variable power supply ranging from 0 to ±15V. The output for the  variable power supply is provided both on interface header and molex connector.

Page 11: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 11/54

 

Figure 11 shows the location of variable supply knobs and interface headers.

Function Generator The function generator is used in most of the experiments and is the most valuable part

on ePAL. The function generator consists of a function generator IC (XR2206CP), slide

switches, knobs and RVs. All the knobs on the function generator panel increments the

value in clock wise direction and the slide switches activate when they are pushed up.

The fine frequency tuning is the only knob in the function generator which increments in

anti clockwise direction and vice versa. It is recommended not disturb the RVs

adjustment otherwise the function generator will behave abnormally. The figure 12 shows

the location of function generator panel and individual components on ePAL 

Page 12: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 12/54

 

Digital Logic Design Laboratory Work Book

LAB # 2

 

To check the operation of OR gate according to the OR’s

truth table, using the IC 74LS32. 

Theory:

The electronic symbol for a two- input OR gate is shown in fig.1. The two inputs have beenmarked as A and B and the output as C. The OR gate has an output of 1when either A or Bor both are 1.

In other words , It is any or all gate because an output occurs when any or all the inputs arepresent. Obviously, the output would be 0 if and only if both its inputs are 0. The OR gaterepresents the Boolean equation

A+B=C

The above logic operation of the OR gate can be summarized with the help of the truth table

A truth table may be defined as a table which gives the output state for all possible inputcombinations. The truth table is also shown below.

Equipment Component:

1. 74LS32 X 1

Tools:

2. EPAL 27

3. Cutter 4. Single Core Wire5. Tweezers6. Pair of Pliers

Symbolic Diagram:

Fig.1

Truth Table:

Input Out Put

Page 13: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 13/54

 

Digital Logic Design Laboratory Work Book

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.

2. Turn on the trainer and verify the voltage of the power supply using the multimeter. Itshould be +5V exactly.3. Install the IC 74LS32 on the trainers braced board.4. Wire the circuit according to the diagram by consulting OR gate IC’s data sheet.5. Use and of the two logic switches S2 to SI for inputs to OR gate.6. For output indication use any of the LED’s form LO – LI5.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the IC.8. Test all the possible combinations of inputs and verify the output according to the truth

table of OR gate.

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.5. Check the IC using truth table.

Page 14: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 14/54

 

Digital Logic Design Laboratory Work Book

To check the operation of NOT gate according to the NOT’struth table, using the IC 74LS04.

Theory:

It is so called because its output is NOT same as its inputs. It is also called an inverter because it inverts the input signal. It has one input And one output. All it does to invert (or complement) the inputs seen from its truth table.

Equipment Component:

1. 74LS04 x 1

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Truth Table:

In Put Out Put

A B

0

1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter. It

should be +5V exactly.3. Install the IC 74LS04 on the trainers braced board.4. Wire the circuit according to the diagram by consulting NOT gate IC’s data sheet.5. Use and of the two logic switches S2 to SI for inputs to NOT gate.6. For output indication use any of the LED’s form LO – LI5.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the IC.8. Test all the possible combinations of inputs and verify the output according to the truth

table of NOT gate.

Page 15: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 15/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.5. Check the IC using truth table.

Page 16: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 16/54

 

Digital Logic Design Laboratory Work Book

LAB # 3 

To check the operation of NAND gate according to the

NAND’s truth table, using the IC 74LS00.

Theory:

It is in fact a NOT-AND gate .It can be obtained by connecting a NOT gate in the output of anAND gate as shown in fig. Its output is given by the Boolean equation.

C=(A.B)′′′′ 

This gate gives an output if either A or B or both are 0.

Equipment Component:

1. 74LS00 x 1

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Truth table:

Input Out Put

A B (A.B)′ 

0 0

0 1

1 0

1 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter. It

should be +5V exactly.3. Install the IC 74LS00 on the trainers braced board.4. Wire the circuit according to the diagram by consulting NAND gate IC’s data sheet.5. Use and of the two logic switches S2 to SI for inputs to NAND gate.

Page 17: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 17/54

 

Digital Logic Design Laboratory Work Book

2. Turn on the trainer and verify the voltage of the power supply using the multimeter. Itshould be +5V exactly.

3. Install the IC 74LS08 on the trainers braced board.4. Wire the circuit according to the diagram by consulting AND gate IC’s data sheet.5. Use and of the two logic switches S2 to SI for inputs to AND gate.6. For output indication use any of the LED’s form LO – LI5.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the IC.8. Test all the possible combinations of inputs and verify the output according to the truth

table of AND gate.

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.5. Check the IC using truth table.

Page 18: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 18/54

 

Digital Logic Design Laboratory Work Book

To check the operation of NOR gate according to the NOR'struth table, using the IC 74LS02.

Theory:It is a NOT-OR gate. It can be obtained by connecting a NOT gate in the output of an ORgate as shown in fig. Its output is given by the Boolean equation.

C= (A+B)′′′′ 

It gives an output when its both inputs are 0.

Equipment:

Component

1. 74LS02 x 1

Tools 1. EPAL 27.2. Cutter.3. Single Core Wirez4. Tweezer.5. Pair of Pliers.

Symbolic Diagram:

Truth Table:

Input Out Put

A B (A+B)′′′′ 

0 0

0 11 0

1 1

Procedure:

1. Connect the AM-2000 trainer to the 220 V AC power supply.

2. Turn on the trainer and verify the voltage of the power supply using the multimeter. It

Page 19: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 19/54

 

Digital Logic Design Laboratory Work Book

should be +5V exactly.3. Install the IC 74LS02 on the trainer's breadboard.4. Wire the circuit according to the diagram in fig. 6.1 by consulting NOR gate Ie's data

sheet in fig.5. Use any of the two logic switches from S2 to S9 for inputs to NOR gate.6. For output indication use any of the LED's from (LO - LI5).7. Supply the VCC= +5V and GND to the pins 14 and 7 of the Ie.8. Test all the possible combinations of inputs and verify the output according to the truth

table of NOR gate.

In Case of Trouble1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the Ie.

3. Check all the wire connections4. Check the circuit wiring and remove the breaks.5. Check the IC using. truth table.

Page 20: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 20/54

 

Digital Logic Design Laboratory Work Book

To check the operation of XOR gate according to the XOR’struth table using IC 74LS86.

THEORY:

It is the gate which gives an output 1when its inputs are not same (or exclusive) and anoutput 0 when its inputs are same. It’s symbol is shown in fig.

Equipment Component:

1. 74LS86 X 1

Tools:

1. EPAL 27 2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Truth table:

In Put Out Put

A B A +B

0 0 0

0 1 1

1 0 1

1 1 0

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage.3. Install the IC’s 74LS86 on the trainers braced board.4. Wire the circuit.5. Use logic switches S2, SI for inputs.6. For output indication use any of the LED from LO – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the IC.8. Test all the possible combinations of inputs.

Page 21: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 21/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring.5. Check the IC using the truth table.

Page 22: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 22/54

 

Digital Logic Design Laboratory Work Book

Lab # 4

 

To check the operation of XOR gate, using IC74LS00.

Theory:

MULTILEVEL NAND CIRCUITS:

Combinational circuits are more frequently constructed with NAND or NOR gates rather than AND and OR gates. NAND and NOR gates are more common from the hardware pointof view because they are readily available in integrated-circuit form. Because of theprominence of NAND and NOR gates in the design of combinational circuits, it is important tobe able to recognize the relationships that exist between circuits constructed with AND-ORgates and their equivalent NAND or NOR diagrams.

The NAND gate is said to be a universal gate because any digital system can be implementwith it. Combinational circuits and sequential circuits as well can be constructed with this gate

because the flip-flop circuit (the memory element most frequently used in sequential circuits)can be constructed from two NAND gates. With the help of 4 NAND gate we can constructXOR gate as show in fig(A).

Equipment Component:

1. 74LS00 X 1

Tools:

1.EPAL 27

 2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

fig(A).

Truth table:

Page 23: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 23/54

 

Digital Logic Design Laboratory Work Book

Input Out Put

A B A B

0 0 0

0 1 1

1 0 1

1 1 0

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter. It

should be +5V exactly.3. Install the IC 74LS00 on the trainers braced board.4. Wire the circuit.5. Use and of the two logic switches S2 to SI for inputs.

6. For output indication use any of the LED’s from L0 – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC.8. Test all the possible combinations of inputs.

In Case of Trouble:

1. Check the power supply.

2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.5. Check the IC using the truth table.

Page 24: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 24/54

 

Digital Logic Design Laboratory Work Book

L

 

To check the operation of OR gate according to the NAND’struth table, using the IC 74LS00.

Theory:

The OR operation is achieved through NAND gate with additional inverters in each input.

With the help of 3 NAND gates we can construct OR gate.

Equipment Component:1. 74LS00 X 1

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Truth Table:

Inputs Out Put

A B (A+B)

0 0 0

0 1 1

1 0 1

1 1 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter.3. Install the IC 74LS00 on the trainers braced board.4. Wire the circuit.5. Use and of the two logic switches S2 to SI for inputs.6. For output indication use any of the LED’s from L0 – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC.8. Test all the possible combinations of inputs.

Page 25: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 25/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

2. Check the power supply.3. Check the VCC and GND at pins 14 and 7 of the IC.4. Check all the wire connections.5. Check the circuit wiring and remove the breaks.6. Check the IC using the truth table.

Page 26: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 26/54

 

Digital Logic Design Laboratory Work Book

L

 

To check the operation of AND gate according to the NAND’struth table, using the IC 74LS00.

Equipment Component:1. 74LS00 X 1

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Theory:

The AND operation requires two NAND gates. The first produces the inverted AND and thesecond acts as an inverter to produce the normal output.Symbolic Diagram:

Truth Table:

Input Out PutA B ((A.B)′′′′)′′′′ 

0 0

0 1

1 0

1 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply.3. Install the IC 74LS00 on the trainers braced board.

4. Wire the circuit.5. Use and of the two logic switches S2 to SI for inputs.6. For output indication use any of the LED’s from L0 – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC.8. Test all the possible combinations of inputs.

Page 27: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 27/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

9. Check the power supply.10. Check the VCC and GND at pins 14 and 7 of the IC.11. Check all the wire connections.12. Check the circuit wiring and remove the breaks.13. Check the IC using the truth table.

Page 28: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 28/54

 

Digital Logic Design Laboratory Work Book

.

To check the operation of NOT gate according to the NAND’struth table, using the IC 74LS00.

Equipment Component:1. 74LS00 X 1

Theory:The NOT operation is obtained from a one-input NAND gate, actually another symbol or aninverter circuit. A single NAND also works as a NOT gate.

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire

4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Truth Table:

In Put Out Put

A (A)′  

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply.3. Install the IC 74LS00 on the trainers braced board.4. Wire the circuit.5. Use and of the two logic switches S2 to SI for inputs.6. For output indication use any of the LED’s from L0 – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC.8. Test all the possible combinations of inputs.

A

 

(A)’

Page 29: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 29/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.5. Check the IC using the truth table.

Page 30: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 30/54

 

Digital Logic Design Laboratory Work Book

Combinational Logic circuits:

Introduction:

Logic circuits for digital systems may be combinational or sequential. A combinational circuitconsists of logic gates. whose outputs at an time are determined directly from there thepresent combination of inputs Without regard to previous Inputs. A combinational circuitperforms a specific information-processing operation fully specified logically by a set of Boolean functions. Sequential circuits employ memory elements (binary cells) in addition tologic gates. Their outputs are a function of the Inputs and the state of the memory elements.The state of memory elements, In turn, is a function of previous inputs. As a consequence,the outputs of a sequential circuit depend not only on present inputs, but also on past inputs,and circuit behavior must be specified by a time sequence of inputs and internal state.A combinational circuit consists of in variables. logic gates. and output variables. The logicgates accept signals from the inputs and generate signals to the outputs. This processtransforms binary information from the given input data to the required output data.Obviously, both input and output data are represented by binary signals, i.e., they exist in twopossible values, one representing logic-I. and the other logic-0.

Page 31: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 31/54

 

Digital Logic Design Laboratory Work Book

LAB # 5

To check the half adder operation using XOR and AND gates.

Theory:

Adders

Digital computers perform a variety of information-processing tasks. Among the basicfunctions encountered are the various arithmetic operation. The most basic arithmeticoperation, no doubt, is the addition of two binary digits. This simple addition consists of four possible elementary operations, namely, 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1,and 1 + 1 = 10. Thefirst three operations produce a .sum whose length is one digit, I b but when both augendsand addend bits are equal to 1, the binary sum consists of two digits. The higher significantbit of this result is called a carry. When the augends and addend numbers contain moresignificant digits, the carry obtained for the addition of two bits is added to the-next higher-order pair of significant bit.

Half Adder 

A combinational circuit that performs the addition of two bits is called a half-adder. One thatperforms the addition three bits (two significant bits and a previous carry) is a f ull-adder.The  two adder circuits are the first combinational circuits we shall design.From the verbal explanation of a half-adder, we find that this circuit needs two binary inputsand two binary outputs. The input variables, designate the augends and addend bits; theoutput variables produce the sum and carry. It is necessary to specify two output variablesbecause the result may consist of two binary digits. We arbitrarily assign symbols  x and y tothe two inputs and S (for sum) and C (for carry) to the outputs.

Equipment Component:

1. 74LS86 X 12. 74LS08 X 1

Tools:

1. EPAL 27 

2. Cutter 3. Single Core Wire4. Tweezers5. Pair of Pliers

Symbolic Diagram:

Page 32: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 32/54

 

Digital Logic Design Laboratory Work Book

Truth Table:

In Put Out Put

A B Sum  A . B

0 0 0 0

0 1 1 0

1 0 1 01 1 0 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter. It

should be +5V exactly.3. Install the IC 74LS86 and IC 74LS08 on the trainers braced board.4. Wire the circuit according to the diagram by consulting both IC’s.5. Use any of the two logic switches S2 to SI for inputs.6. For output sum use LED LO and for output carry, use LED L1.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC’s.

8. Test all the possible combinations of inputs and verify the output according to the truthtable of half adder.

Page 33: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 33/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring and remove the breaks.

5. Check the IC’s using their respective data sheets.

Page 34: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 34/54

 

Digital Logic Design Laboratory Work Book

LAB # 6

 

To design full adder circuit using XOR, AND & OR gates.

Theory:

Full Adder 

A full-adder is a combinational circuit that forms the arithmetic sum of three input bits. Itconsists of three inputs and two outputs. Two of the input variables, denoted by  x  and y,represent the two significant bits to be added. The third input, z, represents the carry from theprevious lower significant position. Two outputs are necessary because the arithmetic sum of three binary digits ranges in value from 0 to 3, and binary 2 or 3 needs two digits. The twooutputs are designated by the symbols S for sum and C for carry. The binary variable S givesthe value of the least significant bit of the sum.

Equipment Component:

1. 74LS08 X 12. 74LS86 X 13. 74LS32 X 1

Tools:

1. EPAL 27 

2. Multimedia3. Cutter 4. Single Core Wire5. Tweezers6. Pair of Pliers

Truth Table:

In Puts Out Puts

A B C S Cout

0 0 0 0 0

0 0 1 1 0

0 1 0 1 0

0 1 1 0 1

Page 35: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 35/54

 

Digital Logic Design Laboratory Work Book

1 0 0 1 0

1 0 1 0 1

1 1 0 0 1

1 1 1 1 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply using the multimeter.3. Install the IC’s 74LS08, 74LS86 and 74LS32 on the trainers braced board.4. Wire the circuit according to the diagram by consulting IC.5. Use logic switches S2, S3 and S4 for inputs A, B and C.6. For output sum use LED L0 and for output carry use LED L1.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC.8. Test all the possible combinations of inputs verify the output according to the truth table.

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC.3. Check all the wire connections.4. Check the circuit wiring.5. Check the IC using the data sheets.

Page 36: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 36/54

 

Digital Logic Design Laboratory Work Book

LAB # 7 

To design half sub tractor circuit using XOR, AND & NOT gates.

Theory:

Sub tractors

The subtraction of two binary numbers may be accomplished by taking the complement of the subtrahend adding. By this method, the subtraction operation becomes an additionoperation requiring full-adders for its machine implementation. It is possible to implementsubtraction with logic circuits in a direct manner. By this method, each subtrahend bit number is subtracted from its corresponding significant minuend bit to form a difference bit. If   theminuend-bit is smaller than the subtrahend bit, a 1 is borrowed from the next significantposition. The fact that a 1 has been borrowed must be conveyed to the next higher pair of bitsby means of a binary signal coming out (output) of a given stage and going into (input) thenext higher stage. Just as there are - half- and full-adders, there are half- and full-subtractions.

Half-Sub tractor 

A half sub tractor is a combinational circuit that subtracts two bits and produces their difference. It also has an output to specify if a 1 has been borrowed. Designate the minuendbit by x and the subtrahend bit by y. To perform  x  - y, we have to check the relativemagnitudes of  x and y. If  x ~ y, we have three possibilities: 0 - 0 = 0, 1 - 0 = 1, and 1 - 1 = O.The result is called the difference bit. If  x < y, we have 0 - 1, and 'it is necessary to borrow a 1from the next higher stage. The 1 borrowed from the next higher stage adds 2 to the minuendbit, just as in the decimal system a borrow adds, 10 to a minuend digit. With the minuendequal to 2, the difference becomes 2 - 1 = 1. The half-sub tractor needs two outputs. Oneoutput generates the difference and will be designated by the symbol D. The second output,designated B for borrow, generates the binary signal that informs the next stage that a 1 has

been borrowed.

Equipment Component:

1. 74LS86 X 12. 74LS08 X 13. 74LS04 X 1

Tools:

1. EPAL 27 

2. Multimedia

3. Cutter 4. Single Core Wire5. Tweezers6. Pair of Pliers

Page 37: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 37/54

 

Digital Logic Design Laboratory Work Book

Symbolic Diagram:

Truth Table:

In Put Out Put

A B B0 Di 

0 0 0 0

0 1 1 1

1 0 0 1

1 1 0 0

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.

2. Turn on the trainer and verify the voltage of the power supply.3. Install the IC’s 74LS08, 74LS86 and 74LS04 on the trainers braced board.4. Wire the circuit.5. Use logic switches S2 to SI for two inputs.6. For output indication use any LED from LO – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC’s.8. Test all the possible combinations of inputs verify the output.

Page 38: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 38/54

 

Digital Logic Design Laboratory Work Book

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC’s.3. Check all the wire connections.4. Check the circuit wiring.5. Check the IC’s using the data sheets.

Page 39: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 39/54

 

Digital Logic Design Laboratory Work Book

LAB # 8

 

To check the full sub tractor circuit using XOR, AND , NOT and OR gates.

Theory:

Full Sub tractor 

A full-sub tractor is a combinational circuit that performs a subtraction between two bits,taking into account that a 1 may have been borrowed by a lower significant stage. The circuithas three inputs and two outputs. The three inputs,   x, y, and z, denote the minuend,subtrahend, and previous borrow, respectively. The two outputs, D and B, represent thedifference and output borrows respectively.

Tools:

1. EPAL 27 2. Multimedia3. Cutter 4. Single Core Wire5. Tweezers

Equipment Component:

1. 74LS86 x 12. 74LS08 x 13. 74LS04 x 14. 74LS32 x 1

Page 40: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 40/54

 

Digital Logic Design Laboratory Work Book

Truth Table:

In Put Out Put

A B Bin  Bout Di 

0 0 0 0 0

0 0 1 1 1

0 1 0 1 10 1 1 1 0

1 0 0 0 1

1 0 1 0 0

1 1 0 0 0

1 1 1 1 1

Procedure:

1. Connect the EES – 2001 trainer to the 220V AC power supply.2. Turn on the trainer and verify the voltage of the power supply.3. Install the 4 IC’s on the trainer’s braced board.4. Wire the circuit.

5. Use logic switches S2 to S3 and S4 for inputs.6. For output indication use any LED from LO – L15.7. Supply the VCC = +5V and GND to the pins 14 and 7 of the both IC’s.8. Test all the possible combinations of inputs.

In Case of Trouble:

1. Check the power supply.2. Check the VCC and GND at pins 14 and 7 of the IC’s.3. Check all the wire connections.4. Check the circuit wiring.5. Check the IC’s using the data sheets.

Page 41: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 41/54

 

LAB # 9

Design the BCD-to-seven-segment decoder circuit.

1.1 

Apparatus:•  EPAL 

•  Connecting wires 

•  14 pin ICs 

•  Seven‐Segment Display 

•  IC7447 

•  Power supply 

1.2  Theory:

For this laboratory, the combinational logic circuit is used to convert a four-bit binary codeddecimal (BCD) value to the signals required for a seven-segment display. BCD-to-seven-

segment decoder is a combinational circuit that accepts a decimal digit in BCD (binary-coded

decimal) and generates the appropriate output for selection of segments in a display indicatorused for displaying the digit. The seven outputs of the decoder (a, b, c, d, e, f, g, h) select the

corresponding segment in the display as shown in figure:

Figure 7.1: Seven –  Segment  display  

You are likely familiar with the idea of  a seven‐segment indicator for representing decimal numbers. 

Each segment of  a seven‐segment display is a small light‐emitting diode (LED) or liquid‐crystal display 

(LCD), and a decimal number is indicated by lighting a particular combination of  the LED's or LCD's 

elements is shown below: 

a

g

d c

b

e

a

g

d c

b

e

Page 42: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 42/54

 

 

Figure 7.2: Indication of  decimal  number  on Seven –  Segment  display  

Bindary‐coded‐decimal (BCD) is a common way of  encoding decimal numbers with 4 binary bits as 

shown below: 

BCD Code Decimal Digit0000 0

0001 1

0010 2

0011 3

0100 4

0101 5

0110 6

0111 7

1000 8

1001 9

Table 7.1: BCD encoding 

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

d c

b

e

a

 

g

d c

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

a

g

dc

b

e

a

 

g

dc

b

e

Page 43: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 43/54

 

1.3  Calculations:

Fill in the truth table for seven segment device whose display elements are active low. That is, each 

element will be active when its corresponding input is '0'. 

Truth Table:

Inputs Outputs

A B C D a B c d e f g h

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 00 1 1 1

1 0 0 0

1 0 0 1Table 7.2: Truth table  for  seven‐segment  display  

Rest of bit combinations are used with don’t care condition.

Write down the simplified Boolean function for each decoder output:

a = ----------------------------------

b = ----------------------------------

c = ----------------------------------

d = ----------------------------------

e = ----------------------------------

f = ----------------------------------

g = ----------------------------------

h = ----------------------------------

Draw the logic diagram for the above outputs. 

Page 44: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 44/54

 

1.4  ProcedureGet the required ICs and other apparatus from the lab attendant. Install the seven‐segment display, ICs 

and resistors on the breadboard of  the Logic Trainer. Connect 5Vdc power supply and ground on pins 14 

and 7 respectively. For other pin configurations consult the data sheet (we have already used these 

gates in the first lab so it should not be a problem). The display has 7 inputs each connected to an LED 

segment. All

 the

 anodes

 of 

 LEDS

 are

 tied

 together

 and

  joined

 to

 5V.

 (This

 type

 is

 called

 common

 Anode

 

type). A limiting resistance(1 kohm) network must be used at the inputs to protect the 7‐segment unit 

from overloading. Wire your circuit according to the logic diagram you have drawn. Connect each output 

of  your circuit to appropriate input of  7 segment display unit. Once you have wired the circuit, check it 

with your instructor and, if  approved, power up your circuit. The outputs should be connected to the 

LEDs on the Logic Trainer for monitoring purpose. By applying BCD codes verify the displayed decimal 

digits. If  there are problems, consult the appendix on troubleshooting given at the end of  lab manual. If  

the problem persists, request lab supervisor for help. 

Repeat the same lab by using decoder IC. In this experiment only one IC is used. The IC used is 16 pin IC, 

model 7447. The IC is designed in such a way that pin number 8 is considered as ground and power is 

given to pin number 16 (for rest of  pins description consult data sheet). The 7447 BCD to Decimal 

Decoder is a common anode, that is, produces outputs that are active low. 

1.5  ConclusionThe experiment is performed according to given task i.e. using minimum number of  gates. 

Page 45: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 45/54

 

Digital Logic Design Laboratory Work Book

LAB # 10 

To check the operation of decoder by using IC 74LS08 and IC

74LS04. 

Equipment:

1. 74LS04 x 12. 74LS08 x 1

3. EPAL 27.

4. Cutter.5. Tweezers6. Single Core Wires.

Theory:

A decoder is a combinational circuit that converts binary information from n inputs to 2n 

outputs.The outputs of a decoder gives one 1 at only one time while they give zero 0 for rest. Inthe truth table, the 1’s of outputs are present in diagonal position.

Symbolic Diagram:

Truth Table:

In Put Out Put

A B D0 D1 D2 D3 

0 0 1 0 0 00 1 0 1 0 01 0 0 0 1 0

1 1 0 0 0 1

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

Page 46: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 46/54

 

Digital Logic Design Laboratory Work Book

LAB # 11

 

To check the operation of multiplexer by using IC 74LS04, IC

74LS08 and IC 74LS32. 

Equipment:

1. 74LS08 x 12. 74LS04 x 13. 74LS32 x 1

4. EPAL 27 

5. Cutter.6. Tweezers7. Single Core Wires.

Theory:

Multiplexing means transmitting a large number of information units over a smaller number of 

channels or lines.a digital multiplexer is a combinational circuit that selects binary informationfrom one of many input lines and direct it to a single output line,there are 2n inputs lines andn selections lines whose bit combinations determine which input is selected.A4-to –1linemultiplexer is shown in the following fig. There are two selection lines and four input linesselection lines selects particular line.

Symbolic Diagram:

Truth Table:

Sw1 Sw2 Sw3 Sw4 Sw5 Sw6 L1

0 0 0 0 0 0 00 0 1 0 0 0 1

0 1 0 0 0 0 0

0 1 0 1 0 0 1

1 0 0 0 0 0 0

1 0 0 0 1 0 1

1 1 0 0 0 0 0

1 1 0 0 0 1 1

Page 47: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 47/54

 

Digital Logic Design Laboratory Work Book

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

Page 48: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 48/54

 

Digital Logic Design Laboratory Work Book

Introduction

Combinational logic circuit

(1) In combinational logic circuit the output of the logic circuit depends only on thepresent input combinations

(2) No matter the inputs are change in any order, the outputs will remain the samefor a particular input combination.

(3) AND , OR , NOT , NAND , & NOR gates are considered to be the combinationallogic circuits

Sequential Logic circuit

(4) In sequential logic the output depend not only on the present input combinationsbut also on the past state of the output.

(5) The output depends on the sequence in which the inputs are changed.(6) Sequential circuits involve some form of timing in their operation. The timing

function permits one or several devices to be actuated at an appropriate time or 

an operational sequence. Sequential logic circuit consists of,(1) Combinational circuit(2) Memory Element.

Inputs Output(Any numbers Combinationalof inputs may Circuitbe applied) Memory

Element

Fig 1

The memory elements used in sequential logic are called Flip – flop or Latch or BinarySequential logic is used in Register & counters.

Symbol For A Flip – flop

A general type of symbol used for a flip-flopis shown in fig.2 it has two outputs & inputslabeled Q & Q which are the inverse of eachother. The Q output is called the normaloutput and Q is the inverted output. If wesay that the Flip – flop is in the High – state,

we mean that Q = 1 & if we that a flip – flopis in low – state we mean that Q = 0 of course, the Q state will always be theinverse of Q.

The high state i.e. Q = 1 & Q = 0 of a Flip – flop is also known as SET state. The lowstate i.e. Q = 0 & Q = 1 is then called RESET state. The reset state is also called theclear state.The basic Latch or Flip – flop is RS Flip – Flop.

 Normal output

FF 

Q

Q Inverted

output

Page 49: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 49/54

 

Digital Logic Design Laboratory Work Book

Simple Definition of FF

1. A FF is a logic circuit that consists of two inverters. Output of one-inverter acts as input of the other and vice verses.

2. They can store one (1) bit of information.

3. Normally FFs has two outputs, which are complements of each other.4. Different FFs differ from each other in the no. of inputs & the inverse inwhich the inputs are applied to them.

Page 50: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 50/54

 

Digital Logic Design Laboratory Work Book

LAB # 12

 

To check the operation of basic RS- flip flop using IC 74LS00.

Equipment:

1. 74LS00 x 12. EES – 2001 trainer.3. Cutter.4. Tweezers5. Single Core Wires.

Theory:

The basic latch or flip flop is called basic RS flip-flop.

1. A flip-flop is a logic circuit that consists of two invertors. Output of one-inverter acts

as an input of the other.2. They can store 1 bit input of information.3. FFs have two outputs, which are complement of each other.

Symbolic Diagram:

Truth Table:

S′ R′ Qt+1 Qt+1

′ 

0 1 0 1

0 0 0 1

1 0 1 0

0 0 1 0

1 1 1 0

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

 Normal

Output

ComplementedOutput

Page 51: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 51/54

 

Digital Logic Design Laboratory Work Book

LAB # 13 

To check the operation of clocked RS flip- flop using IC74LS00.

Equipment:

1. 74LS00 x12. EES – 2001 trainer.3. Cutter.4. Tweezers5. Single Core Wires.

Theory 

The operation of basic flip-flop can be modified by providing an additional control input thatdetermines when the state of the circuit is to be changed .An RS-flip flop with a clock pulseinput is shown. It consts of basic flip-flop circuit and two additional gates.

Symbolic Diagram:

Truth Table: 

S R Qt+1 Qt+1′ 

0 1 0 1

0 0 0 1

1 0 1 0

0 0 1 0

1 1 1 1

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

Page 52: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 52/54

 

Digital Logic Design Laboratory Work Book

LAB # 14 

To check the operation of J – K flip-flop using IC 74LS00 and74LS10

Equipment:

1. 74LS00 x 12. 74LS10 x 13. EES – 2001 trainer.4. Cutter.5. Tweezers6. Single Core Wires.

Theory:A J – K flip-flop is a refinement of the RS flip-flop. The indeterminate state of RS flip-flop

is defined in J – K flip-flop. The working of J – K flip-flop is identical to that of the RS flip-flop

except for one major difference. I.e., J = K = 1 condition does not result in output state, so theflip-flop is not valid. In case of J = K = 1, the J – K flip-flop always goes to its opposite stateupon to positive clock transition. This is called “TOGGLE” mode of operation. In this case Jand K are both kept high i.e., J = 1 and K = 1 the flip-flop will change states (toggle) for eachclock pulse.

Symbolic Diagram:

Truth Table:

C.P J K Q t+1 Q t+1 ′ 

1 0 1 0 1

1 0 0 0 11 1 0 1 0

1 0 0 1 0

1 1 1 TOGGLE

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

Page 53: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 53/54

 

Digital Logic Design Laboratory Work Book

Page 54: Lab Manual Digital Logic Design_attock

5/12/2018 Lab Manual Digital Logic Design_attock - slidepdf.com

http://slidepdf.com/reader/full/lab-manual-digital-logic-designattock 54/54

 

Digital Logic Design Laboratory Work Book

LAB #15 To check the operation of two stage binary ripple up counter.

Equipment:

1. 74LS76 x 12. EES – 2001 trainer.3. Cutter.4. Tweezers5. Single Core Wires.

Theory:A sequential circuit that goes through a prescribed sequence of states upon the

application of input pulses is called a ‘Counter’. A counter that follows the binary sequence iscalled a ‘binary ripple counter’. In two stages binary ripple up counter two J K flip-flops areused. First of all convert JK-ff to T-ff ,that is J=1,K=1.The symbolic diagram is shown below.

Symbolic Diagram:

Truth Table:

QB QA No. of Counts

0 0 0

0 1 1

1 0 2

1 1 3

0 0 4

Precautions:

1. The connections should be clean and tight.2. The power supply should be checked.

QB 

QB

Q

Q

J

Q

Q K 

J

JA= 1

K A= 1

C.P

QA 

QA