Digital Electronics Lab-3
Digital Electronics Lab-3
Digital Electronics
Lab Manual
for
[D.E.C.E 2nd Year - III Semester ]
N.DHANANJAYA
Author
*
H.O.D of Electronics
*
Director
*
Senior Lecturer
*
Publisher
Cell No:
9000 3050 79
Department of ………………………………………………
Certificate
Certified that this is the bonafide record of practical work done in the
Laboratory by MS/Mr…………………………………………………………….
a student of………………………………………………………………………..
Marks Awarded
1. EXAMINER 2. EXAMINER
Pointer
Sl.No. Date Name of the Experiment Page No.
Sl.No. Date Name of the Experiment Page No.
Sl.No. Date Name of the Experiment Page No.
Sl.No. Date Name of the Experiment Page No.
1
Introduction
The breadboard consists of “two terminal strips” and “two bus strips” (often
broken in the centre). Each bus strip has two rows of contacts. Each of the two rows
of contacts are a node. That is, each contact along a row on a bus strip is connected
together (inside the breadboard). Bus strips are used primarily for power supply
connections, but are also used for any node requiring a large number of connections.
Each terminal strip has 60 rows and 5 columns of contacts on each side of the centre
gap. Each row of 5 contacts is a node.
Fig. 0.1
You will build your circuits on the terminal strips by inserting the leads of
circuit components into the contact receptacles and making connections with 22-26
gauge wire. There are wire cutter/strippers and a spool of wire in the lab. It is a
good practice to wire +5V and 0V power supply connections to separate bus strips.
The 5V supply MUST NOT BE EXCEEDED since this will damage the ICs
(Integrated circuits) used during the experiments. Incorrect connection of power to
the ICs could result in them exploding or becoming very hot - with the possible
serious injury occurring to the people working on the experiment! Ensure that the
power supply polarity and all components and connections are correct before
switching on power .
Steps for wiring a circuit
Throughout these experiments we will use TTL chips to build circuits. The
steps for wiring a circuit should be completed in the order described below:
1. Turn the power OFF (Trainer Kit) before you build anything.
3. Connect the +5V and ground (GND) leads of the power supply to the
power and ground bus strips on your breadboard.
4. Plug the chips you will be using into the breadboard. Point all the chips in
the same direction with pin 1 at the upper-left corner. (Pin 1 is often
identified by a dot or a notch next to it on the chip package).
5. Connect +5V and GND pins of each chip to the power and ground bus
strips on the breadboard.
7. Get one of your group members to check the connections, before you turn
the power on.
8. If an error is made turn the power off immediately before you begin to
rewire the circuit.
10. Tidy (arranged neatly and in order) the area that you were working in and
leave it in the same condition as it was before you started.
Common Causes of Problems
1. Not connecting the ground and/or power pins for all chips.
2. Not turning on the power supply before checking the operation of the
circuit.
5. Driving a single gate input with the outputs of two or more gates
Date: ................................
Aim
Viva-Voice Questions
1. Identify & write the IC Number of the following packages.
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
To Verify the truth tables of AND, OR, NOT, NAND, NOR and Ex-OR Gates
1. Breadboard
2. +5V power supply
3. IC 7400 – 1No
4. IC 7402 – 1No
5. IC 7404 – 1No
6. IC 7408 – 1No
7. IC 7432 – 1No
8. IC 7486 – 1No
9. LED – 1No
10. Connecting wires
Theory
A digital circuit that can have one or more inputs and only one output is
known as logic gate.
Basic Logic Gates: The logic gates AND, OR and NOT are called basic logic
gates.
Universal Logic Gates: NAND and NOR gates are known as universal gates
because any logic function is implemented using only NAND or NOR gates.
Fig. 2.1
• The output of AND gate is low if any one input is low or all the inputs are
low. The output of AND gate is high if all the inputs are high.
(2) OR Gate
• An OR gate performs logical addition, more commonly known as the OR
function.
• It has two or more inputs and one output.
• The standard logic symbol for an OR gate with two inputs A and B and the
output Y is shown in fig. 2.2.
• The Boolean expression for OR function is Y = A + B.
• The output of an OR gate is high if any one input is high or all inputs are high.
The output of an OR gate is low if all the inputs are low.
A
Y=A+B
B
Fig. 2.2
(3) NOT Gate
1. A NOT gate performs a basic logic function called inversion or
complementation.
2. It has only one input and output.
3. The standard logic symbol for a NOT gate is shown in fig. 2.3.
4. The Boolean expression for NOT function is Y = A .
5. If a high level is applied to the input of the NOT gate, a low level appears on the
output and vice versa.
A Y=A
Fig. 2.3
(4) NAND Gate
1. A NAND stands for NOT-AND.
2. The NAND gate has two or more inputs but only one output.
3. A NAND gate is nothing but AND gate followed by NOT gate.
4. The fig. 2.4(b) shows standard logic symbol of two input NAND gate.
5. The output of NAND gate is high if any one input is low or all inputs are low.
The output of NAND gate is low if all inputs are high.
A B Y A B Y
0 0 0 0 0
0 1 0 0 1
1 0 0 1 0
1 1 1 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 1 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A Y A Y
0 1 0
1 0 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 1 0 0
0 1 1 0 1
1 0 1 1 0
1 1 0 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 1 0 0
0 1 0 0 1
1 0 0 1 0
1 1 0 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 0 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
Viva-Voice Questions
1. Under what conditions the output of a two input AND gate is one?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
To realize AND, OR, NOT, XOR functions using NAND gates only, NOR
gates only.
1. Breadboard
2. +5V power supply
3. IC 7400 – 1No
4. IC 7402 – 2No
5. LED – 1No
6. Connecting wires
Theory
• The NAND and NOR gates are known as universal gates, since any logic function can be
implemented using NAND and NOR gates.
• The NAND gate can be used to generate the NOT function, the AND function, the OR function
and the EX-OR function.
• An inverter can be made from a NAND gate by connecting all of the inputs together and
creating in effect, a single common input.
• An AND function can be generated using only NAND gates. It is generated by simply inverting
output of NAND gates; i.e., AB = AB .
• OR function is generated using only NAND gates. We know that Boolean expression for OR
gate is Y = A + B = A + B = A.B
• The above equation is implemented using 3 NAND gates.
• The NOR gate is also a universal gate, since it can be used to generate the NOT, AND, OR, and
EX-OR functions.
• An inverter can be made from a NOR gate by connecting all of the inputs together and creating,
in effect, a single common input
A Y A Y
0 1 0
1 0 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 1 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 0 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A Y A Y
0 1 0
1 0 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 0 0 1
1 0 0 1 0
1 1 1 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 1 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B Y A B Y
0 0 0 0 0
0 1 1 0 1
1 0 1 1 0
1 1 0 1 1
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
Viva-Voice Questions
1. Why NAND & NOR gates are called universal gates?
2. Draw the alternate logic symbols for NAND & NOR gates.
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
To verify Demorgan’s Laws using given digital trainer kit and given
TTL gates.
Theory
Augustus De-Morgan used the Boolean algebra and discovered two important
theorems known widely as De-Morgan’s theorems as follows.
1. First Theorem
The complement of sum is equal to the product of the individual
complements.
i.e., A + B = A. B
It really says that the complement of two or more variables ORed is the same
as the AND of the complements of each individual variable.
∴ A + B + C + D + ........ = A ⋅ B ⋅ C ⋅ D ⋅ ........
2. Second Theorem
The complement of product is equal to the sum of the individual
complements.
i.e., A.B = A + B
It really says that the complement of two or more variables ANDed is the
same as the OR of the complements of each individual variable.
∴ A ⋅ B ⋅ C ⋅ D ⋅ ........ = A + B + C + D + ........
A B A• B Y = A•B A B A• B Y = A•B
0 0 0 1 0 0 0
0 1 0 1 0 1 0
1 0 0 1 1 0 0
1 1 1 0 1 1 1
…………………………………………………………………………….………………………………………………
A B A B A+B A B A B A+B
0 0 1 1 1 0 0 1 1
0 1 1 0 1 0 1 1 0
1 0 0 1 1 1 0 0 1
1 1 0 0 0 1 1 0 0
(d) Conclusions
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
0 0 0 1 0 0 0
0 1 1 0 0 1 1
1 0 1 0 1 0 1
1 1 1 0 1 1 1
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
A B A B A•B A B A B A•B
0 0 1 1 1 0 0 1 1
0 1 1 0 0 0 1 1 0
1 0 0 1 0 1 0 0 1
1 1 0 0 0 1 1 0 0
Conclusions:
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
Viva-Voice Questions
1. State demorgans theorems.
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
M.G.B Publications Digital Electronics Lab Practice
47
Date: ................................
Aim
To Construct Half adder and full adder circuits and verify their functionality
Theory
0 0 0 0 0 0
0 1 0 1 0 1
1 0 0 1 1 0
1 1 1 0 1 1
Conclusions:
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 1
0 1 0 0 1 0 1 0
0 1 1 1 0 0 1 1
1 0 0 0 1 1 0 0
1 0 1 1 0 1 0 1
1 1 0 1 0 1 1 0
1 1 1 1 1 1 1 1
Conclusions:
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
…………………………………………………………………………….………………………………………………
Viva-Voice Questions
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. IC trainer kit
2. Connecting wires.
Theory
• In the sequential logic circuits the output not only depends on the present
inputs, but also on the previous outputs.
• Gates and flip-flops are required for constructing sequential logic circuits.
• Examples: Shift registers, counters, serial adder, RAM etc.
• The clock signal is generally a rectangular pulse train or square wave
• In synchronous system, the exact time at which any output can change states are
determined by clock.
• When the clock changes from 0 to 1, this is called the positive going transition
(PGT).
• Similarly when the clock goes from 1 to 0, this is the negative going transition
(NGT).
• The flip-flops using the clock signal are called the clocked flip-flops.
• Clocked flip-flops have a clock input that is typically labeled CLK or CP.
• Clocked flip-flops may be level clocked or edge triggered.
• The term edge triggered means that the flip-flop changes state either at the
positive edge (rising edge) or at the negative edge (falling edge) of the clock
pulse.
• Fig. 6.1 shows logic symbols of positive edge triggered flip-flops.
M.G.B Publications Digital Electronics Lab Practice
54
Fig. 6.1(a)
Fig. 6.2b)
Procedure
1. Place the ICs on breadboard. Give the connections as per the circuit diagram.
1. Connect VCC and ground to respective pins of IC trainer kit.
2. Connect the inputs to the input switches provided in the trainer kit.
3. Connect the outputs to the switches of LEDs.
4. Apply various combinations of inputs according to the truth table and
observe condition of LEDs.
Precautions
Inputs Output
CLK J Q State
K
0 x x Q0 No change
0 0 Q0 No change
0 1 0 Reset
1 0 1 Set
1 1 Q0 Toggle
Viva-Voice Questions
1. In which flip-flop forbidden condition occurs?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. IC trainer kit
2. IC 4013 – 1No
3. IC 7476 – 1No
4. IC 7404 – 1No
5. Connecting wires
6. Breadboard
7. +5V power supply
8. LED – 2No
9. Connecting wires
Theory
and “Q” outputs. These devices can be used for shift register applications, and by
connecting “Q” output to the data input, for counter and toggle applications. The
logic level present at the “D” input is transferred to the Q output during the
positive-going transition of the clock pulse. Setting or resetting is independent of the
clock and is accomplished by a high level on the set or reset line respectively
(b) Features
• The CD 4013 is a CMOS chip.
• Wide supply voltage range: 3.0V to 15V
• Minimum supply voltage 6V
• Maximum supply voltage 15V
• High noise immunity: 0.45 VDD (typ.)
• Max current per output 15mA
• Maximum speed of operation 5MHz
(c) Applications
• Automotive • Data terminals • Instrumentation • Medical electronics • Alarm
system • Industrial electronics • Remote metering • Computers
IC 7476 Dual JK flip-flop
The 7476 contains two independent j-k flip-flops with individual J-K, clock,
present, and clear inputs. The 7476 is a positive-edge-triggered flip-flop. J-K input is
loaded into the master while the clock is high and transferred to the slave on the
high-to-low transition. For these devices the J and K inputs must be stable the clock
is high.
Procedure
1. Place the ICs on breadboard. Give the connections as per the circuit diagram.
2. Connect VCC and ground to respective pins of IC trainer kit.
3. Connect the inputs to the input switches provided in the trainer kit.
4. Connect the outputs to the switches of LEDs.
5. Apply various combinations of inputs according to the truth table and
observe condition of LEDs.
0 0 0 0 1 0 0 0
1 0 0 1 0 1 0 0
× 0 0 Q Q × 0 0
× × 1 0 0 1 × × 1 0
× × 0 1 1 0 × × 0 1
× × 1 1 1 1 × × 1 1
H H H L H L H H H L
H H L H L H H H L H
H H H H forbidden H H H H
Activity 4: Construct D flip flop using 7476 and verify the truth
tables
(a) Connection diagram
1 1 0 0 1 1 0
1 1 1 1 1 1 1
Activity 5: Construct T flip flop using 7476 and verify the truth
tables
(a) Connection diagram
1 1 0 Qn 1 1 0
1 1 1 Qn 1 1 1
Date: ................................
Aim
1. IC 7476 – 2No
2. Connecting wires
3. Breadboard
4. +5V power supply
5. LED – 3No
6. Connecting wires
Theory
Pin Diagrams
CLK QC QB QA CLK QC QB QA
0 0 0 0 0 0 0
1 0 0 1 1 0 0
2 0 1 0 2 0 1
3 0 1 1 3 0 1
4 1 0 0 4 1 0
5 1 0 1 5 1 0
6 1 1 0 6 1 1
7 1 1 1 7 1 1
8 0 0 0 8 0 0
CLK QC QB QA CLK QC QB QA
0 1 1 1 0 1 1
1 1 1 0 1 1 1
2 1 0 1 2 1 0
3 1 0 0 3 1 0
4 0 1 1 4 0 1
5 0 1 0 5 0 1
6 0 0 1 6 0 0
7 0 0 0 7 0 0
8 1 1 1 8 1 1
Viva-Voice Questions
1. What is combinational logic circuit?
3. Define counter?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. To construct and verify the function of decade counter using 7490 IC.
2. To change the modulus of the counter.
Apparatus
1. IC trainer kit
2. IC 7490 – 1No
3. IC 7411 – 1No
4. Connecting wires
5. Breadboard
6. +5V power supply
7. LED – 4No
8. Connecting wires
Theory
The most popular counter ICs from the 74xx series are the following
7490 1:10 counter which can be split into 1:2 and 1:5
7492 1:12 counter which can be split into 1:2 and 1:6
7493 1:16 counter which can be split into 1:2 and 1:8
All three ICs are based on JK flip flops and feature asynchronous reset
inputs. The IC 7490 is a Asynchronous Decade binary Counter.
Fig. 8.1 shows the basic internal structure of the IC 7490. In this circuit there
are four FLIP-FLOPS. In the figure FFA is a modulo-2 counter and FFB, FFC, and
FFD constitute a modulo-5 counter. The mod-2 and mod-5 counters can be used
independently or in combination.
Since the output from the divide-by-two section is not internally connected to
the succeeding stages, the devices may be operated in various counting modes.
(a) BCD Decade (8421) counter:
If the Q A output is connected to the input B and the pulses to be counted are
applied at the input A, then the circuit operates as a normal BCD counter.
(b) Divide by two and Divide by Five counters:
No external interconnections are required. The first flip-flop is used as a
binary element for the divide by two functions (A as the input and Q A as the
output). The B input is used to obtain binary divide-by-five operation at the Q D
output.
There are two reset inputs, R 1 and R 2 both of which are to be connected to
logic ‘1’ level for clearing all the FLIP-FLOPS. The two set inputs S1 and S2 are used
for setting the counter to 1001 when both connected to logic ‘1’ level.
Procedure
c) Truth Table
INPUTS OUTPUTS
R1 R2 S1 S2 QD Qc QB QA
H H L × L L L L
H H × L L L L L
× × H H H L L H
× L × L Count
Count
L × L ×
Count
L × × L
Count
× L L ×
d) Observations
Outputs
Clock pulse QD Qc QB QA
10
Observations:
Outputs
Clock Pulse QA
Note: To produce a standard divide-by-5 counter, we can disable the first flip-flop
above, and apply the clock input signal directly to pin 1 (CLKB with the output
signal being taken from pin 11 (QD) as shown.
Observations:
Outputs
Clock pulse QD Qc QB
Observations:
Outputs
Clock Pulse QD Qc QB QA
Viva-Voice Questions
1) How many Flip-Flops are required to build decade counter?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. IC trainer kit
2. Connecting wires.
Theory
The modulus of a counter is the number of output states it has. For example
mod-8 counter is having 8 different states (000 to 111). The number of flip-flops (n)
required to construct mod-N counter can be obtained from the following formula:
2 n −1 < N ≤ 2 n
Three flip-flops are required to construct mod-8 counter. A decade counter is
also called Mod-10 or ÷ 10 counter require 4 flip-flops. Any binary counter can be a
modulus counter where as the modulus counter need not be a binary counter.
The output signal frequency of mod-N counter is 1/ N th of the input clock
frequency. Hence that counter is also called ÷ N counter.
A counter having n flip-flops can have 2n output states i.e. it can count 2n
clock pulses (0 to 2n -1). The largest binary number that can be represented by an n-
bit counter has a decimal equivalent of ( 2n -1).
2. All the flip-flops are not clocked All the flip-flops are clocked
simultaneously. simultaneously.
3. Logic circuit is very simple even Logic circuit is complex as number of
for more number of states. states increases.
4. Cost is low. Cost is high.
5. Its speed is lower than that of Its speed is higher than that of
synchronous counters. asynchronous counters.
6. These are also known as ripple or These are also known as parallel
serial counters. counters.
7. The speed of counters depends not The speed of this counter depends on
only on the width of clock pulse the width of clock pulses applied.
but also on the propagation delay
time of each flip-flop.
Procedure
b) Observations
Outputs
Clock pulse Qc QB QA
0
1
2
3
4
5
6
7
8
9
Viva-Voice Questions
1. What are the differences betweenn synchronous and asynchronous
counters?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. IC trainer kit
2. Connecting wires.
Theory
Fig. 10(a)
(b) Working
Case - I
When U/ D control signal is high, the lower AND gates (1 & 2) are disabled and
the upper AND gates (3 & 4) are enabled. In this mode the normal output of flip-
flops i.e. Q 0 and Q1 are connected to clock input of following flip-flops and the
counter acts as the up counter.
Case - II
When U/ D control signal is low, the upper AND gates (3 & 4) are disabled
and the lower AND gates (1 & 2) are enabled. In this mode the complementary
output of flip-flops i.e. Q0 and Q1 are connected to clock input of the following flip-
flop and the counter acts as down counter.
Clock Pulse Up-counter Down-counter
(CLK) Q2 Q1 Q0 Q2 Q1 Q0
0 0 0 0 0 0 0
1 0 0 1 1 1 1
2 0 1 0 1 1 0
3 0 1 1 1 0 1
4 1 0 0 1 0 0
5 1 0 1 0 1 1
6 1 1 0 0 1 0
7 1 1 1 0 0 1
8 0 0 0 0 0 0
(c) UP DOWN IC Counter
The 74193 is a 4-bit (mod -16) synchronous, presettable, up down binary
counter. It is a 16-pin DIP operating on +5V supply. It has a master reset (CLR), and
it can be reset to any desired count with the parallel load inputs. Basically, it
functions like any binary counter, except that is has two clock inputs, one for UP
counting, and the other for DOWN counting. LOAD is a control input to load data
into pins P0 – P3.
Viva-Voice Questions
1. What is the name of IC 74193?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. Breadboard
2. +5V power supply
3. IC 7495 – 1No
4. LED – 4No
5. Connecting wires
Theory
A register which is able to shift the binary information either from left to right
or right to left is called a shift register. This bit shifting is essential for certain
arithmetic and logical operations in micro computers. The shift register is used for
temporary storage of data. The shift registers can be built using R-S, J-K, or D flip-
flops.
A shift register capable of shifting binary data in one direction only is called
uni-directional shift register. A shift register that shifts the binary data by one bit to
the left is known as shift left register. A shift register that shifts the binary data by
one bit to the right is known as shift right register. A shift register capable of shifting
the binary data in both directions is called bi-directional shift register. If a shift
register has both shift and parallel load capabilities, it is referred to as universal shift
register. In shift registers data may be moved in and out serially or parallelly.
Depending upon this, shift registers may be classified as:
1. Serial In and Serial Out (SISO) shift register
2. Serial In and Parallel Out (SIPO) shift register
3. Parallel In and Serial Out (PISO) shift register
1 0 0 × × ×
2 1 1 0 × ×
3 1 1 1 0 ×
4 1 1 1 1 0
1 d0=0 0 × × ×
2 d1=1 1 0 × ×
3 d2=1 1 1 0 ×
4 d3=1 1 1 1 0=d0
5 × × 1 1 1=d1
6 × × × 1 1=d2
7 × × × × 1=d3
3. Step 3 is repeated until all the 4 bits are entered one by one.
4. At the end 4th clock pulse the 4 bits are available at QA,QB,QC and QD.
Viva-Voice Questions
1. What register?
7. How many clock pulses are required for the operation of the following
shift registers?
a. SISO :……………………
b. SIPO :……………………
c. PISO :……………………
d. PIPO :……………………
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
1. Breadboard
2. +5V power supply
3. IC 7408 – 1No
4. IC 7404 – No
5. IC 7432 – No
6. LED – 1No
7. Connecting wires
Theory
(a) Encoders
An encoder is a combinational logic circuit that receives digits (decimal, octal
etc), alphabets or special symbols and converts them to their respective binary
/BCD codes. In other words encoder may be said to be a combinational logic circuit
that performs the reverse operation of the decoder.
An encoder has m (≤ 2n ) input lines, only one of which is activated at a given
time, and produces an n-bit output code depending on which input is activated. Fig.
12.1 shows the block diagram of an encoder with m( ≤ 2 n ) inputs and n outputs.
Fig. 12.1
Examples:
1. 4 x 2 encoder
2. 8 x 3 encoder
3. 10 x 4 encoder
4. 16 x 4 encoder etc.
(b) Decoders
A decoder is a combinational circuit that converts binary information from n
input lines to a maximum of m ( ≤2n) output lines. In other words a decoder
converts binary data into other form viz. decimal, octal, hexadecimal etc.
Fig. 12.2 shows the block diagram of a decoder with n inputs and m ( ≤2n)
outputs. Examples: a) 2 x 4 decoder b) 3 x 8 decoder c) 4 x 10 decoder d) 4 x 16
decoder, etc.
Fig. 12.2
Procedure
1. Place the ICs on breadboard. Give the connections as per the circuit diagram.
2. Connect VCC and ground to respective pins of IC trainer kit.
3. Connect the inputs to the input switches provided in the trainer kit.
4. Connect the outputs to the switches of LEDs.
5. Apply various combinations of inputs according to the truth table and
observe condition of LEDs.
Circuit diagram
Circuit diagram
Viva-Voice Questions
1. What is Decoder?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
Theory
Procedure
(IC 74153)
1. The Pin [16] is connected to + Vcc.
2. Pin [8] is connected to ground.
3. The inputs are applied either to ‘A’ input or ‘B’ input.
4. If MUX ‘A’ has to be initialized, Ea is made low and if MUX ‘B’ has to
be initialized, Eb is made low.
5. Based on the selection lines one of the inputs will be selected at the
output and thus verify the truth table.
IC 74139
1. The inputs are applied to either ‘a’ input or ‘b’ input
2. The demux is activated by making Ea low and Eb low.
3. Verify the truth table.
Channel - A Channel - A
1 × × × × × × 0 1 × × × × × ×
0 0 × × × 0 0 0 0 0 × × × 0 0
0 1 × × × 0 0 1 0 1 × × × 0 0
0 × 0 × 0 0 1 0 0 × 0 × 0 0 1
0 × 1 × 1 0 1 1 0 × 1 × 1 0 1
0 × × 0 × 1 0 0 0 × × 0 × 1 0
0 × × 1 × 1 0 1 0 × × 1 × 1 0
0 × × × 0 1 1 0 0 × × × 0 1 1
0 × × × 1 1 1 1 0 × × × 1 1 1
CHANNEL-A CHANNEL-A
Ea Sla S0a Y1a Y2a Y3a Y4a Ea Sla S0a Y1a Y2a Y3a Y4a
1 × × 1 1 1 1 1 × × 1 1 1 1
0 0 0 0 1 1 1 0 0 0 0 1 1 1
0 0 0 1 0 1 1 0 0 0 1 0 1 1
0 1 1 1 1 0 1 0 1 1 1 1 0 1
0 1 1 1 1 1 0 0 1 1 1 1 1 0
Viva-Voice Questions
6. What is multiplexer?
8. What is demultiplexer?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
To display the data, we have to convert it from BCD to 7-segment code. The
IC 7447 makes this process. It has four inputs called BCD inputs and seven outputs
to drive the display.
For common anode LED display, the decoders used are IC 7446, IC 74246, IC
7447, IC 74247 etc. They have active low, open collector outputs.
And for common cathode LED display, the ICs are IC 7448, IC 74248, IC 7449
etc. They have active high, open collector outputs.
(c) Working of the circuit
1) When BCD inputs from 0000 to 1001 are applied at the input terminals, the
IC produces equivalent outputs at its output terminals from a–g. The 7–seg display
is common anode type.
2) Suppose BCD input is DCBA = 0101. It is equivalent to decimal 5. This
input is converted into equivalent 7–seg code by the IC and its outputs abcdefg =
0100100. For the input DCBA = 1000, all segments of the display will glow to show
decimal 8 and outputs abcdefg = 0000000 and so on.
The below table shows the hexadecimal encoding for displaying the digits 0 –
9 and A – F.
8 0×7F 0×7F on on on on on on on
PIN diagrams
(a) IC 7447
Circuit diagram
Function Table
Conclusions
1. When corresponding BCD inputs are applied from 0000 to 1001, we get
decimal output on the display from decimal 0 to decimal 9.
2. The tails of ‘6’ and ‘9’ are not displayed on the display.
3. To display the tails of ‘6’ and ‘9’ IC 74247 is required.
4. In common anode FND 507 type display, the anodes of all LEDs are
connected to a common line and connected to +5V regulated power supply.
The cathode of each LED segment is used as input from ‘a’ to ‘g’.
Viva-Voice Questions
1. What is BCD?
3. What is an LED.
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
To verify truth table and to study the operation of tri-state output buffer
Apparatus & Components
1. Breadboard – 1No
2. IC 74125 – 1No
3. +5V power supply
4. LED – 1No
5. Connecting wires
Theory
(a) Tri-state buffer
A buffer circuit is one in which, the output follows the input. It has high input
impedance and low output impendence. A tri-state buffer can provide 3 output
states:
1. A low level state
2. A high level state
3. A high impedance state or open circuit state
We know that the transistor Q3 in totem pole is ON when output is high and Q4
is ON when output is low. In the high impedance state both transistors, Q3 and Q4
are turned OFF. As a result the output is open or floating it is neither low nor high.
(b) Circuit Symbols
Fig. 15.1(a) shows the graphic symbol of a tri-state buffer with active high
enable. It is also known as non-inverting tri-state buffer.
Fig. 15.1(b) shows the graphic symbol of a tri-state buffer with active low
enable. It is also known as inverting tri-state buffer.
PIN diagram
Function Table
INPUTS OUTPUT
A C Y
L L L
H L H
X H Hi-Z
H=High logic level
L=Low logic level
X=either low or high logic level
Hi-Z=Tri-state (outputs are disabled)
Viva-Voice Questions
7. What is tristate buffer?
10. Draw the logic symbols of active low and acyive high tristate buffers?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..
Date: ................................
Aim
Fig. 16.1(b)
(b) 4 Bit Comparator
Let us use the technique discussed above to develop a comparator to compare
two 4-bit binary numbers. Let us consider two 4 bit number A = A3 A2 A1 A0 and B =
B3 B2 B1 B0.
Case-I
A is greater B if,
1. A3 = 1 and B3 = 0 irrespective of the other bits.
or
Case-II
A is equal to B if the following condition is satisfied
A3 = B3 and A2 = B2 and A1 = B1 and A0 = B0,
The logic expression for A = B can be written as,
Y = (A = B) = A 3 ⊕ B 3 ⋅ A 2 ⊕ B 2 ⋅ A1 ⊕ B1 ⋅ A 0 ⊕ B 0 …(2)
Case-III
A is less than B if,
1. A3 = 0 and B3 = 1 irrespective of the other bits.
Or
2. A3 = B3 and A2 = 0, B2 = 1 irrespective of the values of A1, A0, B1 and B0.
Or
3. A3 = B3 and A2 = B2 and A1 = 0 and B1 = 1, irrespective of A0 and B0.
Or
4. A3 = B3 and A2 = B2 and A1 = B1 and A0 = 0 and B0 = 1
From these statement we can write logic expression for A>B as
Z = (A < B) = A 3 B 3 + A 3 ⊕ B 3 A 2 B 2 + A 3 ⊕ B 3 A 2 ⊕ B 2 A 1 B1
+ A 3 ⊕ B 3 A 2 ⊕ B 2 A 1 ⊕ B1 A 0 B 0
Case-IV
Using logic expressions (1), (2) and (3), the logic diagram for 4 bit comparator
can be implemented as shown in fig. 16.2(a).
Case-V
To represent the above conditions in the form of truth table we required 256
combinations and hence a function table is shown in fig. 16.2(b).
*Note: The circuit for comparing two n-bit numbers has 22n entries in the truth table
and becomes too number some even with n=3.
Fig. 16.2(a)
The upper part of the table describes the normal operation under all
conditions that will occur in a single device or in a series expansion scheme. In the
upper part of the table the three outputs are mutually exclusive. In the lower part of
the table, the outputs reflect the feed-forward conditions that exist in the parallel
expansion scheme.
The expansion inputs I A > B and I A > B and I A < B inputs of the next higher stage.
Stages can be added in this manner to any length, but a propagation delay penalty
of about 15ns is added with each additional stage. For proper operation, the
expansion inputs of the least significant word should word should be tied as
follows: I A > B = Low, I A > B = high, and I A < B = Low.
Viva-Voice Questions
1. What is digital comparator?
Result
……………….………………..……………….……………..……………….………………..
……………….………………..……………….……………..……………….………………..