Digital Electronics LAB Manual New
Digital Electronics LAB Manual New
LABORATORY MANUAL
DEPARTMENT
OF
ELECTRONICS AND COMMUNICATION ENGINEERING
PREFACE
Almost all Electronic circuits must include means for converting and processing of
electrical signals. This lab course is to gain the practical hands on experience by exposing the
students to applications and design, Adder / Subtractor of priority encoder, comparator, counter,
multiplexe sequence generator and the transform Characteristics of 74H, LS, HS series
Students are made familiar with Digital applications of Integrated circuits. Students are
made to design the application circuitry by utilizing the basic Integrated circuits. This would
Course Objectives:
The main objective of this curriculum/course is to make the students well versed with
basic electronic components and circuits. The students can.
• To learn basic techniques for the design of digital circuits and fundamental concepts used in the
design of digital systems.
• To understand common forms of number representation in digital electronics circuits and to be
able to convert between different representations.
• To implement simple logical operations using combinational logic circuits.
• To design combinational logic circuits, sequential logic circuits.
•To impart to students the concept of sequential circuits, enabling them to analyze sequential
systems in terms of state machines.
•To implement synchronous state machines using Flip-flops.
Course Outcomes:
At the end of this course student will demonstrate the ability to
• Understand working of logic families and logic gates.
• Design and implement combinational and sequential logic circuits.
• Understand the process of analog and digital conversion and digital to analog conversion.
• Be able to use PLD’s to implement the given logical problem.
LAB CODE
• Students should report to the concerned labs as per the time table schedule.
• Students who turn up late to the labs will in no case be permitted to perform the
experiment scheduled for the day.
• After completion of the experiment, certification of the concerned staff in-charge
in the observation book is necessary.
• Staff member in-charge shall award marks based on continuous evaluation for each
experiment out of maximum 10 marks and should be entered in the notebook
• Students should bring a note book of about 100 pages and should enter the
readings/observations into the note book while performing the experiment.
• The record of observations along with the detailed experimental procedure of the
experiment performed in the immediate last session should be submitted and certified by
the staff member in-charge.
• Not more than three students in a group are permitted to perform the experiment on a
setup.
• The group-wise division made in the beginning should be adhered to, and no mix
up of student among different groups will be permitted later.
• The components required pertaining to the experiment should be collected from stores
in-charge after duly filling in the requisition form.
• When the experiment is completed, students should disconnect the setup made by
them, and should return all the components/instruments taken for the purpose.
• Any damage of the equipment or burn-out of components will be viewed seriously either
by putting penalty or by dismissing the total group of students from the lab for the
semester/year.
• Students should be present in the labs for the total scheduled duration.
• Students are required to prepare thoroughly to perform the experiment before coming
to Laboratory
INDEX
As per JNTUH For Laboratory Examination – Minimum of 12 experiments
Design and realization of an 8-bit parallel load and serial out shift
7 52
register using flipflops
74
10. Design and realization 2-bit comparator
Description: Unlike a multiplexer that selects one individual data input line and then sends that
data to a single output line or switch, Digital Encoder more commonly called a Binary Encoder
takes ALL its data inputs one at a time and then converts them into a single encoded output. So
we can say that a binary encoder, is a multi-input combinational logic circuit that converts the
logic level “1” data at its inputs into an equivalent binary code at its output.
Features:
Description: IC 7400, NAND gate. 7400 IC is the most widely used TTL (Transistor-Transistor
Logic) device in the world. It contains four independent two-input NAND gates. Its popularity is
based on the fact that any logic gate function can be created using only NAND gates.
Feature
• Each gate uses two input pins and one output pin, with the remaining two pins being
power (+5 V) and ground.
Applications:
• IC 7400, NAND gate. 7400 IC is the most widely used TTL (Transistor-Transistor
Logic) device in the world.
• Its popularity is based on the fact that any logic gate function can be created using only
NAND gates3. IC 7432 PIN Diagram:
Description: OR gates are basic logic gates, and are available in TTL and CMOS ICs logic
families. The standard 4000 series CMOS IC is the 4071, which includes four independent two-
input OR gates. The TTL device is the 7432.
Features:
• Four 2-Input Logic OR Gates in a 14-Pin DIP Package.
• Outputs Directly Interface to CMOS, NMOS and TTL.
• Large Operating Voltage Range.
• Wide Operating Conditions.
• Not Recommended for New Designs Use 74LS32 or 74HC32.
Applications:
• All four OR gates may be used independently. On any gate if either of the input is 'High'
then the Output is 'High'.
4. IC 7486 PIN Diagram:
Description: IC 7486: It is a quad two input Ex-OR gate. All four Exclusive-OR gates may be
used independently. On any gate when one input(Not Both) is 'High' then the Output is High.
Features:
• Large Operating Voltage Range. Wide Operating Conditions. Not Recommended for
New Designs Use 74LS86 or 74HC86.
Applications:
Description: IC 7483 is a 4 bit parallel adder which consists of four interconnected full adders
along with the look ahead carry circuit. The pin diagram of IC 7483 is shown above. It is a 16pin
IC.
Features:
• IC 7483 is a 4 bit parallel adder which consists of four interconnected full adders along
with the look ahead carry circuit.
• It is a 16pin IC. The inputs to the IC are A, B and C i n 0 while outputs are S and C o u t
3.
Features:
• 7485 4-bit Magnitude Comparator Datasheet. Compares 4-bit Binary or BCD Codes and
Outputs Greater, Less Than or Equal.
• Large Operating Voltage Range. Wide Operating Conditions. Not Recommended for New
Designs Use 74LS85 or 74HC85.
Applications:
• a 4-bit magnitude comparator using 7485 IC. ... Like the digital
comparators are used in applications like process controllers and servo motor ...
Description: The 74LS90 is a simple counter, i.e. it can count from 0 to 9 cyclically in its
natural mode. It counts the input pulses and the output is received as a 4-bit binary number
through pins QA, QB, QC and QD. The binary output is reset to 0000 at every tenth pulse and count
starts from 0 again. A pulse is also generated (probably at pin 9) as it resets its output to 0000.
The chip can count up to other maximum numbers and return to zero by changing the modes of
7490.
Description: IC 7474 is a dual D Flip Flop IC. It is a TTL logic device, hence operating
voltage is 5V. It has two D flip flops, with separate clocks for each Flip Flop, and preset, clear
and complementary outputs.
Description: A typical IC 74151 is an 8-to-1 multiplexer with eight inputs and two
outputs. The two outputs are active low and active high outputs. It has three select lines A, B and
C and one active low enable input. The pinout of this IC is given below.
Description: It uses a 4026 combined counter and display driver IC which is designed to
drive 7 segment display. When you press the switch S1 counter starts from zero and it advances
one each time whenever pin 1 receives a positive pulse.
Description: The SN54L/ 74LS166 is an 8-Bit Shift Register. Designed with all inputs
buffered, the drive requirements are lowered to one 54 / 74LS standard load.
By utilizing input clamping diodes, switching transients are minimized and
system design simplified.
Description: In electronics, a flip-flop or latch is a circuit that has two stable states and
can be used to store state information. The circuit can be made to change state by signals applied
to one or more control inputs and will have one or two outputs. It is the basic storage element in
sequential logic. Flip-flops and latches are a fundamental building block of digital electronics
systems used in computers, communications, and many other types of systems.
EXPERIMENT NO: 1
REALIZATION OF BOOLEAN EXPRESSIONS USING GATES
APPARATUS REQUIRED:
2 IC 7408 1No
3 IC 7432 1No
4. IC 7404 1 No
THEORY:
• Logic gates are electronic circuits which perform logical functions on one or more inputs
to produce one output. There are seven logic gates. When all the input combinations of a
logic gate are written in a series and their corresponding outputs written along them, then
this input/ output combination is called Truth Table. OR, AND and NOT are basic gates.
NAND, NOR are known as universal gates. Various gates and their working is explained
here.
• AND GATE: The AND gate performs a logical multiplication commonly known as AND
function. The output is high when both the inputs are high. The output is low level when
any one of the inputs is low.
• OR GATE: The OR gate performs a logical addition commonly known as OR function.
The output is high when any one of the inputs is high. The output is low level when both
the inputs are low.
• NOT GATE: The NOT gate is called an inverter. The output is high when the input is
low. The output is low when the input is high
• NAND GATE: The NAND gate is a contraction of AND-NOT. The output is high when
both inputs are low and any one of the input is low .The output is low level when both
inputs are high.
• NOR GATE: The NOR gate is a contraction of OR-NOT. The output is high when both
inputs are low. The output is low when one or both inputs are high.
• X-OR GATE: The output is high when any one of the inputs is high. The output is low
when both the inputs are low and both the inputs are high.
PROCEDURE:
OBSERVATION TABLE:
A B
0 0 1 0 1 0 1 0
0 1 1 1 0 0 1 1
1 0 0 1 0 0 1 1
1 1 0 1 0 1 0 0
INFERENCE:
The mental activity that makes a connection between disparate thoughts, linking them in
a set of premises and conclusions. It is by inference that the norms and categories of such
connections, which are inherently present in the social or individual consciousness, are expressed
on the level of “inner speech.”
PRECAUTIONS:
• The Vcc and ground should be applied carefully at the specified pin only.
RESULT:
Thus Realized of Boolean Expressions using Gates .
EXTENSION:
APPLICATIONS:
A logic gate implements a Boolean function and thus performs a logical operation on one
or several logic inputs in order to produce a single logic output. A logic gate often uses diodes or
transistors that act like electronic switches. ... The output of one gate can be wired to the inputs
of one or more other gates.
VIVA Questions with answer.
Q.1 Define gates?
Ans. Gates are the digital circuits, which perform a specific type of logical operation.
Ans. (AB)’=A’+B’
(A+B)’=A’.B’
Q.4 (A+A) A =?
Ans. A.
Ans. Universal gates are those gates by using which we can design any type of logical
expression.
Ans. Y=A.B
Ans. One.
Q8.Under what conditions the output of a two input AND gate is one?
AIM: To implement basic logic gates using NAND and NOR gates. and verify its truth tables.
APPARATUS REQUIRED:
2 IC 7400 1No
3 IC 7402 1No
THEORY:
Logic gates are electronic circuits which perform logical functions on one or more inputs
to produce one output. There are seven logic gates. When all the input combinations of a logic
gate are written in a series and their corrresponding outputs written along them, then this input/
output combination is called Truth Table. Various gates and their working is explained here.
AND Gate:
AND gate produces an output as 1, when all its inputs are 1; otherwise the output is 0.
This gate can have minimum 2 inputs but output is always one. Its output is 0 when any input is
0.
IC 7408
OR Gate:
OR gate produces an output as 1, when any or all its inputs are 1; otherwise the output is
0. This gate can have minimum 2 inputs but output is always one. Its output is 0 when all input
are 0.
IC 7432
NOT Gate:
NOT gate produces the complement of its input. This gate is also called an INVERTER.
It always has one input and one output. Its output is 0 when input is 1 and output is 1 when input
is 0.
IC 7404
NAND Gate:
NAND gate is actually a series of AND gate with NOT gate. If we connect the output of
an AND gate to the input of a NOT gate, this combination will work as NOT-AND or NAND
gate. Its output is 1 when any or all inputs are 0, otherwise output is 1.
IC 7400
NOR Gate:
NOR gate is actually a series of OR gate with NOT gate. If we connect the output of an
OR gate to the input of a NOT gate, this combination will work as NOT-OR or NOR gate. Its
output is 0 when any or all inputs are 1, otherwise output is 1.
IC 7402
X-OR gate produces an output as 1, when number of 1’s at its inputs is odd, otherwise
output is 0. It has two inputs and one output.
IC 7486
X-NOR gate produces an output as 1, when number of 1’s at its inputs is not odd,
otherwise output is 0. It has two inputs and one output.
A NOT produces complement of the input. It can have only one input, tie the inputs of a
NAND gate together. Now it will work as a NOT gate. Its output is
Y = (A.A)’ => Y = (A)’
A NAND produces complement of AND gate. So, if the output of a NAND gate is
inverted, overall output will be that of an AND gate.
The output of a to input X-OR gate is shown by: Y = A’B + AB’. This can be achieved
with the logic diagram shown in the left side.
X-NOR gate is actually X-OR gate followed by NOT gate. So give the output of X-OR
gate to a NOT gate, overall ouput is that of an X-NOR gate.
Y = AB+ A’B’
A NOT produces complement of the input. It can have only one input, tie the inputs of a
NOR gate together. Now it will work as a NOT gate. Its output is
Y = (A+A)’
Y = (A)’
Now the ouput from gate no. 4is the overall output of the configuration.
Y = ((A + (A+B)’)’ (B +( A+B)’)’)’
= (A+(A+B)’)’’.(B+(A+B)’)’’
= (A+(A+B)’).(B+(A+B)’)
= (A+A’B’).(B+A’B’)
= (A + A’).(A + B’).(B+A’)(B+B’)
= 1.(A+B’).(B+A’).1
= (A+B’).(B+A’)
= A.(B + A’) +B’.(B+A’)
= AB + AA’ +B’B+B’A’
= AB + 0 + 0 + B’A’
= AB + B’A’
Y = AB + A’B’
A NAND gate is an AND gate followed by NOT gate. So connect the output of AND gate
to a NOT gate, overall output is that of a NAND gate.
Y = (AB)’
PROCEDURE:
OBSERVATION TABLE:
A B
0 0 1 0 1 0 1 0
0 1 1 1 0 0 1 1
1 0 0 1 0 0 1 1
1 1 0 1 0 1 0 0
INFERENCE:
The mental activity that makes a connection between disparate thoughts, linking them in
a set of premises and conclusions. It is by inference that the norms and categories of such
connections, which are inherently present in the social or individual consciousness, are expressed
on the level of “inner speech.”
PRECAUTIONS:
• The Vcc and ground should be applied carefully at the specified pin only.
RESULT:
Thus implemented the basic logic gates using NAND and NOR gates. and verifyed its
truth tables.
EXTENSION:
APPLICATIONS:
A logic gate implements a Boolean function and thus performs a logical operation on one
or several logic inputs in order to produce a single logic output. A logic gate often uses diodes or
transistors that act like electronic switches. ... The output of one gate can be wired to the inputs
of one or more other gates.
Ans. Gates are the digital circuits, which perform a specific type of logical operation.
Ans. (AB)’=A’+B’
(A+B)’=A’.B’
Q.4 (A+A) A =?
Ans. A.
Ans. Universal gates are those gates by using which we can design any type of logical
expression.
Ans. Y=A.B
Ans. One.
Q8.Under what conditions the output of a two input AND gate is one?
Q9.1+0 =?
Ans.
EXPERIMENT NO: 3
GENERATION OF CLOCK USING NAND / NOR GATES
This is a very simple square wave generator circuit built with IC 74LS00 that can
generate square signals with frequencies between 20 Hz and 1 MHz. Its stability is good enough
for most applications. The output freq. is dimensioned through the RC components and time
delay of the 3 inverter gates. The time delay of a logic gate is the elapsed time between a change
of input state and the resulting change of the outputstate.
To prevent the temperature and voltage supply from affecting the frequency of the square
wave generator, the oscillator freq. fo must be smaller than 1/2tpn where:
tp =average delay time of each gate
n = the number of gates
The above described oscillator has a tp of 10ns and n-3. The freq. is therefore:
fo << 1/2tpn = 1/2*10ns*3 = 16.6MHzThe voltage at the gate inputs varies from about -6V to -
4V. The oscillation freq. can be made variable by using a 2.2KΩ potentiometer for R.
CIRCUIT DIAGRAM:-
Layout diagram:-
PROCEDURE:-
1. Connections are made as per the circuit diagram.
2. Switch ON the trainer kit.
3. Apply the power supply of 5V DC
4. Vary the 47k potentiometer to get the exact square wave.
5. Calculate the time period of the wave form.
6. Calculate the frequency by using the formula f= 1/t
EXPECTED WAVE FORM:
CALCULATIONS:-
F=1/T
T=time period
F=frequency
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of
the IC from the data sheet.
2. Do not exceed the maximum values specified in data sheet.
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC.
5. Adjust the oscilloscope for proper viewing.
TROUBLE SHOOTING:
1. Check the IC
2. Check Battery Connections
3. Check whether input signal can be viewed on the CRO.
4. Check the CRO probe
5. Check the Patch cards
APPLICATIONS:
1. Clock generators are used in computers to manage memory cards, peripheral devices,
CPUs, ports, etc.
2. In fact, computer experts often reset clock generators in order to control these devices’
speed and performance.
3. Clock generators are also used in telecommunication systems, digital switching systems,
and many mechanical devices.
RESULT:-
Verified the output of a 450 khz clock generator using NAND/NOR gates.
QUESTIONS:
THEORY:-
4- BIT ADDER
• IC 7483 is a 4 bit parallel adder which consists of four interconnected full adders along
with the look ahead carry circuit. The pin diagram of IC 7483 is shown above. It is a
16pin IC. The inputs to the IC are A, B and Cin0 while outputs are S and Cout3.
• A15A2A1A0 is a 4 bit input word 'A' and B15B2B1B0 is the second 4 bit input word 'B'.
Cin0 is the input carry. The IC adds the 4 four bit words along with input carry to produce
a 4 bit sum and a one bit carry-out. Cout3 represents the output carry. S3,S2,S1,S0
represents sum output with S3 as the MSB.
• In odrder to design an 8 bit adder, we require two IC 7483s cascaded as shown in the
figure above.
• Adder-1 is the LSB adder and it adds the four LSB bits of the two 8-bit input words ie
A15−A0 and 153−B0. The carry input of first adder is supposed to be 0. Hence the carry
in pin of LSB IC is connected to the ground. So the first IC adds the LSB bits of A and B,
and produces S3–S0 that is, LSB of sum, along with a carry out Cout3.
• This Cout3 of adder-1 is connected to Cin0 input of Adder-2. The second adder adds this
carry and the four MSB bits of numbers A15−A0 and B15−B0 to produce MSB sum S7–
S4 along with final carry out bit Cout7.
• Thus adder-1 and adder-2 when cascaded as shown in the figure can add two 8-bit words.
Cout7 of adder-2 acts as the final output carry and the sum output is from S7 through S0.
4- BIT SUBSTRACTOR
As with the binary adder, we can also have n number of 1-bit full binary subtractor
connected or “cascaded” together to subtract two parallel n-bit numbers from each other. For
example two 4-bit binary numbers. We said before that the only difference between a full adder
and a full subtractor was the inversion of one of the inputs.
So by using an n-bit adder and n number of inverters (NOT Gates), the process of
subtraction becomes an addition as we can use two’s complement notation on all the bits in the
subtrahend and setting the carry input of the least significant bit to a logic “1” (HIGH).
Then we can use a 4-bit full-adder ICs such as the 74LS283 and CD4008 to perform
subtraction simply by using two’s complement on the subtrahend, B inputs as X – Y is the same
as saying, X + (-Y) which equals X plus the two’s complement of Y.
If we wanted to use the 4-bit adder for addition once again, all we would need to do is set
the carry-in (CIN) input LOW at logic “0”. Because we can use the 4-bit adder IC such as the
74LS83 or 74LS283 as a full-adder or a full-subtractor they are available as a single
adder/subtractor circuit with a single control input for selecting between the two operations
CIRCUIT DIAGRAM
4 BIT ADDER
4 BIT SUBSTRACTOR
Layout diagram:-
PROCEDURE:
1. Connect the circuit. as shown in the fig.
2. Apply different combination of the binary inputs at the I/P terminals.
3. Note down the O/P for Half adder.
4. Repeat the same procedure for Full adder also.
5. The result should be in accordance with truth table.
6. Verify the outputs for different input values.
OBSERUATION:-
4 bit adder:
INPUT X x3 x2 x1 x0
Binary values 0 1 1 1
INPUT Y y3 y2 y1 y0
Binary values 0 0 0 1
OUTPUT s3 s2 s1 s0
SUM
Binary output 1 0 0 0
4 bit subtractor:
INPUT X x3 x2 x1 x0
Binary values 0 1 1 1
INPUT Y y3 y2 y1 y0
Binary values 0 0 0 1
OUTPUT s3 s2 s1 s0
Difference
Binary output 0 1 1 0
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of
the IC from the data sheet
2. Do not exceed the maximum values specified in data sheet
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC
TROUBLE SHOOTING:
• Check the IC before connecting in the circuit.
• Check Battery Connections
• Check the input and output LEDs.
• Check the Patch cards.
APPLICATIONS:
1. An adder is a digital circuit that performs addition
2. Adders & Subtractors are wildly used in in computer's ALU to compute addition as well as
CPU and GPU for graphics applications to reduce the circuit complexity.
RESULT: - Verified the output of a 16 bit adder/substractor using 4 bit adder /subs
tractor
QUESTIONS:
EXPERIMENT NO: 5
DESIGN AND REALIZATION A 4 – BIT GRAY TO BINARY AND BINARY TO GRAY
CONVERTER
AIM:- To Design a 4 Bit Gray to Binary and Binary to Gray code conversion.
EQUIPMENT REQUIRED:-
• 4 Bit Gray to Binary and Binary to Gray code conversion Trainer kit
• DC Power supply
• 2mm Patch Cards
• 5V/2A Adapter
THEORY:-
binary to gray code converter:-
The logical circuit which converts binary code to equivalent gray code is known as
binary to gray code converter. The gray code is a non weighted code. The successive gray code
differs in one bit position only that means it is a unit distance code. It is also referred as cyclic
code. It is not suitable for arithmetic operations. It is the most popular of the unit distance codes.
It is also a reflective code. An n-bit Gray code can be obtained by reflecting an n-1 bit code about
an axis after 2n-1 rows, and putting the MSB of 0 above the axis and the MSB of 1 below the axis.
Reflection of Gray codes is shown below.
Gray to Binary Code Converter:-
This conversion method also follows the EX-OR gate operation between grey & binary
bits. The below steps & solved example may useful to know how to perform grey code to binary
conversion.
In gray to binary code converter, input is multiplies gray code and output is its
equivalent.binary code.
Let us consider a 4 bit gray to binary code converter. To design a 4 bit gray to binary code
converter, we first have to draw a conversion table.
CIRCUIT DIAGRAM :
Layout diagram:-
PROCEDURE:-
Binary to Gray Converter:-
1. To convert binary to grey code, bring down the most significant digit of the given binary
number, because, the first digit or most significant digit of the grey code number is same as the
binary number.
2. To obtain the successive grey coded bits to produce the equivalent grey coded number for the
given binary, add the first bit or the most significant digit of binary to the second one and write
down the result next to the first bit of grey code, add the second binary bit to third one and write
down the result next to the second bit of grey code, follow this operation until the last binary bit
and write down the results based on EX-OR logic to produce the equivalent grey coded binary.
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of
the IC from the data sheet.
2. Do not exceed the maximum values specified in data sheet.
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC.
TROUBLE SHOOTING:
1. Check the IC before connecting in the circuit.
2. Check Battery Connections
3. Check the input and output LEDs.
4. Check the Patch cards
APPLICATIONS:
1. Today, Gray codes are widely used to facilitate error correction in digital communications
such
as digital terrestrial television and some cable TV systems.
2. Gray codes are used in position encoders
3. Due to the Hamming distance properties of Gray codes, they are sometimes used in genetic
algorithms
4. In modern digital communications, Gray codes play an important role in error correction
RESULT:-
Verified the Truth tables of Binary to Gray and Gray to Binary converters.
QUESTIONS:
EXPERIMENT NO: 6
DESIGN AND REALIZATION OF A 4-BIT PSEUDO RANDOM SEQUENCE
GENERATOR USING LOGIC GATES.
AIM:- To Design a 4 bit pseudo random sequence generator using 4 – bit ring counter.
EQUIPMENT REQUIRED:
• Pseudo-random Sequence Trainer kit
• DC Power supply
• 2mm Patch Cards.
• 5V/2A Adapter
THEORY:-
Pseudo-random Sequence Generator
A pseudo-random binary sequence generator as shown in the Fig. This binary sequence
generator will display a random output (repeats every 2 n–1 bits, where n is the number of flip-
flops used in the shift register). The IC 7486 provides the exclusive-OR needed in the circuit. To
start the sequence generator, set the initial state of the shift register to 0001 by setting the switch
SW1 to logic 1. Then change SW1 to logic 0 as this will release the control input. Now apply the
clock and record the output in a table. Does the output show randomness? Does the output repeat
after 15 pulses?
CIRCUIT DIAGRAM :
Layout diagram:-
PROCEDURE:-
1. Connections are made as per the circuit diagram.
2. Switch ON the trainer kit.
3. Apply the power supply of 5V DC
4. First reset all flip-flops of Q3 Q2 Q1 Q0 = 0 0 0 0.
5. Shift right operation mode .
6. Connect EX-OR means o/p of EX-OR is connected to
DSR.
OBSERVATION TABLE:-
Clock
Pulse Ex-OR PRBS
Number Shift Register gate Sequence
Q0 Q1 Q2 Q3 Q2 Q3 Q0
0 0 0 0 1 0 1=1 0
1 1 0 0 0 0 0=0 0
2 0 1 0 0 0 0=0 1
3 0 0 1 0 1 0=1 1
4 1 0 0 1 0 1=1 0
5 1 1 0 0 0 0=0 1
6 0 1 1 0 1 0=1 0
7 1 0 1 1 1 1=0 1
8 0 1 0 1 0 1=1 1
9 1 0 1 0 1 0=1 1
10 1 1 0 1 0 1=1 1
11 1 1 1 0 1 0=1 0
12 1 1 1 1 1 1=0 0
13 0 1 1 1 1 1=0 0
14 0 0 1 1 1 1=0 1
15 0 0 0 1 0 1=1 0
16 1 0 0 0 0 0=0 0
17 1 1 0 1 1 1=0 1
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of
the IC from the data sheet
2. Do not exceed the maximum values specified in data sheet
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC.
TROUBLE SHOOTING:
1. Check the IC before connecting in the circuit.
2. Check Battery Connections
3. Check the input and output LEDs.
4. Check the Patch cards.
APPLICATIONS
5. Pseudorandom generators may also be used to construct same key. symmetric key
cryptosystems, where a large number of messages can be safely encrypted under the
RESULT:-
Verified the output of a 4 bit pseudo random sequence generator using 4 – bit ring
counter.
QUESTIONS:
• What is a Pseudo-random Sequence generator?
• How does pseudo random number generator work?
• How does pseudo random work?
• What is a pseudo random code what is it used for?
EXPERIMENT NO: 7
DESIGN AND REALIZATION OF AN 8-BIT PARALLEL LOAD AND SERIAL OUT
SHIFT REGISTER USING FLIPFLOPS.
AIM:- Design an 8 bit parallel load and serial out shift register using two 4 bit shift register.
EQUIPMENT REQUIRED:
• 8 bit parallel load and serial out shift register using flip flop Trainer kit
• DC Power supply
• 2mm Patch Cards.
• 5V/2A Adapter
THEORY:-
Parallel-in to Serial-out (PISO) Shift Register
The Parallel-in to Serial-out shift register acts in the opposite way to the serial-in to
parallel-out one above. The data is loaded into the register in a parallel format in which all the
data bits enter their inputs simultaneously, to the parallel input pins P0 to P7 of the register. The
data is then read out sequentially in the normal shift-right mode from the register
at Q representing the data present at P0 to P7.
This data is outputted one bit at a time on each clock cycle in a serial format. It is
important to note that with this type of data register a clock pulse is not required to parallel load
the register as it is already present, but four clock pulses are required to unload the data.
As this type of shift register converts parallel data, such as an 8-bit data word into serial
format, it can be used to multiplex many different input lines into a single serial DATA stream
which can be sent directly to a computer or transmitted over a
communications line. Commonly available IC’s include the 74HC166 8-bit Parallel-in/Serial-out
Shift Registers.
CIRCUIT DIAGRAM:-
.
Layout diagram:-
PROCEDURE:-
1. When the SHIFT/LOAD =0,Then Load Mode.
2. When the SHIFT/LOAD =1,Then shift Mod.
3. D0, TO D7 are the parallel inputs, where D0 is the most significant bit and D7 is
the least significant bit.
4. To write data in, the mode control line is taken to LOW and the data is clocked in. The data
can be shifted when the mode control line is HIGH as SHIFT is active high.
5. The register performs right shift operation on the application of a clock pulse.
OBSERVATION TABLE:-
I0 I1 I2 I3 I4 I5 I6 I7
1 0 0 1 1 1 1 0 0 0 0 0
1 0 1 1 1 1 1 0 0 0 0
1 0 1 1 1 1 1 0 0 0
1 0 1 1 1 1 1 0 0
1 0 1 1 1 1 1 1
1 0 1 1 1 1 1
1 0 1 1 1 1
1 0 1 1 1
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of the IC from the
data sheet
2. Do not exceed the maximum values specified in data sheet
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC
TROUBLE SHOOTING:
1. Check the IC before connecting in the circuit.
2. Check Battery Connections
3. Check the input and output LEDs.
4. Check the Patch cards.
APPLICATIONS:
RESULT:-
Verified the output of a 8- bit parallel load and serial out shift register
using two 4 bit shift register.
QUESTIONS:
EXPERIMENT NO: 8
DESIGN AND REALIZATION A SYNCHRONOUS AND ASYNCHRONOUS COUNTER
USING FLIP-FLOPS
AIM:- To Realiaze a synchronous counter using flipflops..
EQUIPMENT REQUIRED:
• 4 digit hex counter using synchronous counter Trainer kit
• DC Power supply
• 2mm Patch Cards.
• 5V/2A Adapter
THEORY:-
It can be seen above, that the external clock pulses (pulses to be counted) are fed directly
to each of the J-K flip-flops in the counter chain and that both the J and K inputs are all tied
together in toggle mode, but only in the first flip-flop, flip-flop FFA (LSB) are they connected
HIGH, logic “1” allowing the flip-flop to toggle on every clock pulse. Then the synchronous
counter follows a predetermined sequence of states in response to the common clock signal,
advancing one state for each pulse.
The J and K inputs of flip-flop FFB are connected directly to the output Q A of flip-flop
FFA, but the J and K inputs of flip-flops FFC and FFD are driven from separate AND gates
which are also supplied with signals from the input and output of the previous stage. These
additional AND gates generate the required logic for the JK inputs of the next stage.
If we enable each JK flip-flop to toggle based on whether or not all preceding flip-flop
outputs (Q) are “HIGH” we can obtain the same counting sequence as with the asynchronous
circuit but without the ripple effect, since each flip-flop in this circuit will be clocked at exactly
the same time.
Then as there is no inherent propagation delay in synchronous counters, because all the
counter stages are triggered in parallel at the same time, the maximum operating frequency of
this type of frequency counter is much higher than that for a similar asynchronous counter
circuit.
CIRCUIT DIAGRAM:-
PROCEDURE:-
a) Make the connections as per the logic diagram.
b) Connect +5v and ground accord ing to pin configuration.
c) Apply diff combinations of inputs to the i/p terminals.
d) Note o/p for summation.
e) Verify the truth table.
QBSERVATION TABLE:-
PRECAUTIONS:
1. Note down the number of the IC. Note the important specifications of the IC from the data
sheet
2. Do not exceed the maximum values specified in data sheet
3. Do not install or remove IC from a circuit with power ON.
4. Identify the Pin numbers of the IC
TROUBLE SHOOTING:
APPLICATIONS:
1. The applications of the counters mainly involve in digital clocks and in multiplexing.
2. For Generating staircase voltage
3. These counters find their applications in embedded systems,stop watch,real-time clock and
4. After receiving the clock signal they count the desired sequence in order.
RESULT:-
The 16-bit synchronous counter has studied and verified.
QUESTIONS:
1. What is the application of counter?
2. What is 4 bit counter?
3. What are decade counters?
4. How does a counter work?
5. What is the main HYPERLINK "https://www.google.com/url?
sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwiox5TvqdvfAhWDbn0KHeQ
dBhAQrAIoADAAegQICxAH&url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.quora.com%2FWhat-is-the-
main-application-of-counters&usg=AOvVaw0EU7rrMXip1sWFFiVGEjHm"application of
counters HYPERLINK "https://www.google.com/url?
sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=2ahUKEwiox5TvqdvfAhWDbn0KHeQdBh
AQrAIoADAAegQICxAH&url=https%3A%2F%2Ffanyv88.com%3A443%2Fhttps%2Fwww.quora.com%2FWhat-is-the-main-
application-of-counters&usg=AOvVaw0EU7rrMXip1sWFFiVGEjHm"?
6. What are the main HYPERLINK "https://www.quora.com/What-are-the-main-
applications-of-digital-counters"applications HYPERLINK "https://www.quora.com/What-
are-the-main-applications-of-digital-counters" of digital HYPERLINK
"https://www.quora.com/What-are-the-main-applications-of-digital-counters"counters
HYPERLINK "https://www.quora.com/What-are-the-main-applications-of-digital-counters"?
7. What are the application of synchronous counters?
EXPERIMENT NO: 9
DESIGN AND REALIZATION 8X1 USING 2X1 MUX
Aim:
To Design and realization 8x1 using 2x1 mux
Apparatus:
Trainer kit, Patch cords
Theory:
This is an 8X1 MUX with inputs d0,d1,d2,d3,d4,d5,d6,d7 , Y as output and
S2, S1, S0 as selection lines. The output will depend upon the combination of S2,S1 &
S0 as shown in the truth table.
Circuit Diagram:
Truth table:
Procedure:
• Connect the circuit as per circuit diagram.
• Connect D0 to D7 to the input switches.
• Connect selection line inputs to the input switches.
• Connect the output terminal Y to the output indicator (LED).
• Verify the truth table given above.
Result:
Experiment No: 10
Design and realization 4-bit comparator
Apparatus: MTS-COMPARATOR
PATCH CORDS
Theory:
Truth Table. :
Procedure:
• Connect the trainer kit to ac power supply.
• Connect Inputs ( A0,A1,A2,A3,B0,B1,B2,B3) to Input Switches
• Connect Cascade Inputs (A<B,A>B,A=B) to Input Switches
• Connect Outputs (A<B,A>B,A=B) to Output Switches.
• Connect the inputs of first stage to logic sources and output of the last gate
to logic indicator.
• Apply various input combinations and observe output for each one.
• Verify the truth table for each input/ output combination.
• Repeat the process for all logic functions.
• Switch off the ac power supply.
Result:
Experiment No: 11
Verification of truth tables and excitation tables
Experiment No: 12
Realization of logic gates using DTL, TTL,
ECL, etc.,
Aim:
Theory:
Diode- Transistor Logic, or DTL, refers to the technology for designing and fabricating
digital circuits wherein logic gates employ diodes in the input stage and bipolar junction
transistors at the output stage. The output BJT switches between its cut-off and saturation
regions to create logic 1 and 0, respectively.
Circuit Diagram:
Procedure:
• Connect the trainer kit to ac power supply.
• Connect the NOR gates for any of the logic functions to be realised.
• Connect the inputs of first stage to logic sources and output of the last gate
to logic indicator.
• Apply varous input combinations and observe output for each one.
• Verify the tructh table for each input/ output combination.
• Repeat the process for all logic functions.
• Switch off the ac power supply.
Result: