Digital Electronics LAB Manual PDF
Digital Electronics LAB Manual PDF
2 SAFETY PROCEDURES
4 FAMILIARISATION OF KIT
7 DE MORGAN’S LAW
10 CODE CONVERTER
11 MULTIPLEXER
12 MULTIPLEXER IC
13 DEMULTIPLEXER
14 SR AND D FLIPFLOP
17 RING COUNTER
18 JOHNSON COUNTER
Mission
• To provide industry-oriented technical education to rural students through
excellent teaching and learning.
• To provide high-quality education, a respectful and inclusive environment
that builds lifelong learning.
• To inspire students to make a positive social impact through education,
creativity and entrepreneurship.
• To provide an innovative environment to learn, innovate and create new
ideas for the betterment of oneself and society.
Vision
To be a Centre for quality technical education in the field of electronics engineering for the
empowerment of society.
Mission
➢ Provide quality education through an outcome-based curriculum and effective teaching-
learning process to face the challenges of the Electronics Engineering field
➢ Impart value-based education by promoting activities that benefit the rural upliftment of
society.
➢ Inculcate social responsibility and ethics through curricular, co-curricular, and extra-
curricular activities.
➢ To provide a platform for inculcating entrepreneurship by exposing them to the latest
advancements in the industry.
Exp No. 1 Date: D D - M M - Y Y
PEO, PO and PSOs of the Program
Program Outcomes (POs)
PO1
Basic and Discipline specific knowledge: Apply knowledge of basic mathematics,
science and engineering fundamentals and engineering specialization to solve the
engineering Problems
PO2
Problem analysis: Identify and analyse well-defined engineering problems using codified
standard methods.
PO3
Design/ development of solutions: Design solutions for well-defined technical problems
and assist with the design of systems components or processes to meet specified needs.
PO4
Engineering Tools, Experimentation and Testing: Apply modern engineering tools and
appropriate technique to conduct standard tests and measurements.
PO5
Engineering practices for society, sustainability and environment: Apply appropriate
technology in context of society, sustainability, environment and ethical practices.
PO6
Project Management: Use engineering management principles individually, as a team
member or a leader to manage projects and effectively communicate about well-
defined engineering activities.
PO7
Life-long learning: Ability to analyse individual needs and engage in updating in the
context of technological changes.
Program Educational Outcome (PEOs)
SAFETY PROCEDURES
Problem Statement:
The safety instructions are presented to the attention of the students as a mean of preventing
accidents while performing experiments and activities in the communication lab of the
department. The purpose is to draw attention to the risks involved in lab activities to prevent
human suffering and damage to equipment.
• Working in the lab is not allowed without following electricity precautions displayed.
• No individual work is allowed in the lab.
• Laboratory in charge is responsible for the arrangements of your lab activities; Listen
carefully to his/her instructions and follow them.
• Inform the lab in charge about dangerous conditions and faults in the lab or nearby
environment.
•
Do not do any action that may harm people or equipments in the lab.
•
Do not misuse any of the tools or instruments belong to the lab.
Electrical Safety:
• Consult Electrical Engineering section available in the campus for electrical safety
queries.
• The lab equipment is powered from electrical sockets installed on the tables. Do not use
equipment that is powered from a damaged socket.
• Do not use equipment that is powered from flexible cable with damaged insulation or if
it’s plug is not assembled properly.
• Do not repair or disassemble electrical equipment including replacement of fuses
installed in the equipment.
• Do not open the main fuse box, unless it is an emergency and you need to switch off
main circuit breaker.
Emergency Switches:
The laboratory has circuit breakers, which is located in the main panel. Identify the place.
In an emergency condition, switch off circuit breakers immediately.
Result
Theory
Readiness to do experiment
Completion of Experiment
Exp No. 4 Date: D D - M M - Y Y
Theory
Electronics is most effectively and to grab from concept to concrete the knowledge of
electronics. Digital IC Trainer provides you hands on practical experience on Digital and
TTL Electronics at one place and saver the time and money without compromising the
quality standards. This trainer kit is specially designed for the use in engineering for
students to study and set up a different experiment.
Technical specification:
Input 230V ±10% 50 Hz;
Power supply :5V, 2A, ±12V,500mA;
Pulse Generator 1Hz to 100 KHz;
Pulse switches for providing Logic H/L Pulse;
7 Segment Display BCD 2 Digit Decoder;
12 Logic input switches for Provided H/L Signal;
12 Logic status indicating LED Indicator;
Connecting provision BS2 socket with 25 Patch cords;
2 Nos. of Bread Boards;
16 pin Zip socket 2 Nos.;
Overload LED indicator with buzzer indicator and short circuit protection;
Closed type Wooden Case
Result
Verify the truth tables of logic gates – NOT, OR, AND, NAND, NOR, XOR
OBJECTIVES
• To familiarize with the basic logic gate ICs commonly used in digital electronics.
• To study the working of logic gates using digital ICs.
• To understand the concept of Truth table verification using digital ICs.
• They will understand the universal property of NAND and NOR gates.
COMPONENTS REQUIRED
THEORY
Circuit that takes the logical decision and the process are called logic gates. Each gate has one
or more input and only one output. OR, AND and NOT are basic gates. NAND, NOR are known
as universal gates.
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. Output Y= NOT(A) where A is the input.
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. Output Y= A.B where A and B are the inputs.
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.
Output Y= A+B where A and B are the inputs.
NAND GATE: The NAND gate is a combination of AND-NOT. The output is high when any one of
the input is low or both inputs are low. The output is low level only when both inputs are high.
NOR GATE: The NOR gate is a combination 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
RESULT
Familiarized with basic logic gate ICs and verified their truth tables.
OUTPUT
Exp No. 6 Date: D D - M M - Y Y
OBJECTIVES
• To study the design and implementation of logic gates (NOT, AND, OR, NOR, XOR) using
universal property of NAND and NOR gates.
• To verify their truth tables.
COMPONENTS REQUIRED
THEORY
A universal gate is a logic gate which can implement any Boolean function without the need to
use any other type of logic gate. The NOR gate and NAND gate are universal gates. This means
that you can create any logical Boolean expression using only NOR gates or only NAND gates.
These gates can be used to generate NOT, AND, OR and XOR operation.
A NAND gate (short for NOT-AND) is the same as AND followed by NOT. You can see how the
symbols together,
NAND GATE
̅̅̅̅̅
The equation for a NAND gate is 𝑌 = 𝐴. 𝐵 where A and B are input to the NAND gate and Y is
the output. The truth table for NAND is the opposite of AND.
A NOR gate (short for NOT-OR) is the same as OR followed by NOT. You can see how the
symbols together,
PROCEDURE
RESULT
NOT, OR, AND and XOR gates are implemented using NAND and NOR gates.
OUTPUT
UNIVERSAL PROPRERTY OF NAND GATE
DE MORGAN’S THEOREM
AIM:
OBJECTIVES
• Students will study how to interconnect different gates in a circuit.
• To study about De Morgan’s theorem.
COMPONENTS REQUIRED
THEORY
The de Morgan’s theorem for two variables A and B ca be stated as follows,
̅̅̅̅̅
𝐀. 𝐁 = 𝐀̅+𝐁 ̅
̅̅̅̅̅̅̅
𝐀+𝐁=𝐀 ̅. 𝐁
̅
DE Morgan’s First theorem proves that when two input variables are AND’ed and negated, they
are equivalent to the OR of the complements of the individual variables. DE Morgan’s second
theorem proves that when two input variables are OR’ed and negated, they are equivalent to
the AND of the complements of the individual variables.
PROCEDURE
RESULT
De Morgan’s theorem is verified using truth table.
OUTPUT
̅̅̅̅̅ ̅+𝑩
𝑨. 𝑩 = 𝑨 ̅
TRUTH TABLE
̅̅̅̅̅̅̅
𝑨+𝑩=𝑨 ̅. 𝑩
̅
TRUTH TABLE
Exp No. 8 Date: D D - M M - Y Y
To construct half adder and full adder circuits and verify the truth table using logic gates.
OBJECTIVES
• Students will study how to interconnect different gates in a circuit.
• They can differentiate Half adder from Full adder.
COMPONENTS REQUIRED
THEORY
HALF ADDER: A half adder has two inputs for the two bits to be added, no carry from previous
stage is considered. Hence half adder may be considered for adding LSB. It has two outputs one
from the sum S and other from the carry C. The Sum is obtained from the X-OR Gate and the
Carry out from the AND gate. Sum, 𝑆 = 𝐴. 𝐵̅ + 𝐴.
̅ 𝐵 and Carry 𝐶 = 𝐴. 𝐵
FULL ADDER: A combinational logic circuit that can add two binary digits (bits) and a carry bit,
and produces a sum bit and a carry bit as output is known as a full-adder. It is a combinational
circuit which is designed to add three binary digits and produces two outputs (sum and carry) is
known as a full adder.
DESIGN
HALF ADDER
From above truth table, the expressions for carry and sum can be derived using the sum
product terms.
FULL ADDER
PROCEDURE
RESULT
Designed and constructed half adder and full adder circuits and verified the truth table using
logic gates.
OUTPUT
HALF ADDER
FULL ADDER
Exp No. 9 Date: D D - M M - Y Y
To construct half subtractor and full subtractor circuits and verify the truth table using logic
gates.
OBJECTIVES
THEORY
HALF SUBTRACTOR: A half subtractor has two inputs for the two bits to be subtracted, no
borrow from previous stage is considered. Hence half a may be considered for subtracting LSBs.
It has two outputs one from the Difference D and other is Borrow B. The difference is obtained
from the X-OR Gate and the Borrow out from the AND gate. Difference, D= 𝐴. 𝐵̅ + 𝐴. ̅ 𝐵 and
Borrow 𝐵 = 𝐴.̅𝐵
FULL SUBTRACTOR: A combinational logic circuit that can subtract two binary digits (bits) and a
borrow bit, and produces a difference bit and a borrow bit as output is known as a full-
subtractor. It is a combinational circuit which is designed to subtract three binary digits and
produces two outputs (Difference and borrow) is known as a full subtractor.
DESIGN
HALF ADDER
From above truth table, the expressions for difference and carry can be derived using the sum
of product terms.
FULL SUBTRACTOR
From the truth table, taking the sum of product terms, we get
PROCEDURE
RESULT
Designed and constructed half Subtractor and full subtractor circuits and verified the truth
table using logic gates.
OUTPUT
HALF SUBTRACTOR
FULL SUBTRACTOR
Exp No. 10 Date: D D - M M - Y Y
CODE CONVERTER
AIM:
OBJECTIVES
• Students will study how to construct a Binary to Gray and Gray to binary code
converters.
COMPONENTS REQUIRED
THEORY
The gray code is a very light weighted code because it doesn't depend on the value of the digit
specified by the position. This code is also called a cyclic variable code as the transition of one
value to its successive value carries a change of one bit only. The MSB in gray code is same as
the MSB in binary code.
The input variables for a Binary to Gray converter are designated as B3, B2, B1, and B0 and the
output variables are designated as G3, G2, G1,and G0. Meanwhile the inputs for a Gray to
Binary converter is G3, G2, G1,and G0 and its output generates B3, B2, B1, and B0.
PROCEDURE
RESULT
Designed and implemented a 4 bit Binary to gray code converter and 4bit Gray to binary code
converter
OUTPUT
Exp No. 11 Date: D D - M M - Y Y
MULTIPLEXER
AIM:
THEORY
Multiplexer means many to one. A multiplexer is a circuit with many inputs but only one
output. By using control signals (select lines) we can select any input to the output. Multiplexer
is also called as data selector because the output bit depends on the input data bit that is
selected. The general multiplexer circuit has 2n input signals, n control/select signals and 1
output signal.
PROCEDURE:
1. Test all the ICs manually/ using IC tester.
2. Connections are made as in the logic circuit diagram and give Vcc and the ground.
3. Connect the appropriate pins to the input switches and output LEDs.
4. Give various combinations of the inputs and observe the output and verify the truth table.
5. Similarly verify the mux circuit with truth table.
RESULT
MULTIPLEXER IC
AIM:
OBJECTIVES
COMPONENTS REQUIRED
THEORY
In most of the electronic systems, the digital data is available on more than one line. It is
necessary to route this data over a single line. Under such circumstances we require a circuit
which selects one of the many inputs at a time.
An 8:1 Multiplexer has eight data inputs D0 to D7, three select inputs S0 to S2, an enable input
and one output. Depending upon the digital code applied at the select inputs one out of n data
input is selected & transmitted to a single o/p channel. Normally strobe (G) input is
incorporated which is generally active low which enables the multiplexer when it is LOW.
Strobe i/p helps in cascading. IC 74151A is an 8: 1 multiplexer which provides two
complementary outputs Y & ̅ Y The o/p Y is same as the selected i/p & Y̅ is its complement.
PROCEDURE:
Studied about 8x1 MUX 74151 and verified its truth table.
OUTPUT
Note: Pin No.7 Enable pin is ACTIVE LOW input. So should be 0 to enable the IC
Exp No. 13 Date: D D - M M - Y Y
DEMULTIPLEXER
AIM:
COMPONENTS REQUIRED
De-multiplexer means one to many. A de-multiplexer is a circuit with only one input but many
outputs. By using control signals (select lines) we can select input to any outputs. The general
de-multiplexer circuit has 1 input signals, n control/select signals and 2n output signals.
DESIGN
PROCEDURE:
1. Test all the ICs manually/ using IC tester.
2. Connections are made as in the logic circuit diagram and give Vcc and the ground.
3. Connect the appropriate pins to the input switches and output LEDs.
4. Give various combinations of the inputs and observe the output and verify the truth table.
5. Similarly verify the demux circuit with truth table.
RESULT
Construct SR flip flop using NAND gates and convert it into D flip flop.
OBJECTIVES
• Students will study how to construct flip flops using NAND gates.
• To convert SR to D flipflop
COMPONENTS REQUIRED
Sl No COMPONENTS SPECIFICATION QTY
1 NAND GATE IC 7400 1
2 NOT GATE IC 7404 1
3 IC TRAINER KIT - 1
4 CONNECTING WIRES - AS REQUIRED
THEORY
SR Flip-Flop
An SR Flip-Flop can be considered as a basic one-bit memory device that has two inputs, one
which will "SET" the device and another which will "RESET" the device and an output Q that will
be either at a logic level "1" or logic "0" depending upon this Set/Reset condition. A basic NAND
Gate SR flip flop circuit provides feedback from its outputs to its inputs and is commonly used in
memory circuits to store data bits. The term "Flip-flop" relates to the actual operation of the
device, as it can be "Flipped" into one logic state or "Flopped" back into another. Flipflop is
basically a Bistable Multivibrator.
D Flip-Flop
The D-type Flip-flop overcomes one of the main disadvantages of the basic SR NAND Gate
Bistable circuit in that the indeterminate input condition of SET = “0” and RESET = “0” is
forbidden. This state will force both outputs to be at logic “1”, over-riding the feedback latching
action and whichever input goes to logic level “1” first will lose control, while the other input
still at logic “0” controls the resulting state of the latch.But in order to prevent this from
happening an inverter can be connected between the “SET” and the “RESET” inputs to produce
another type of flip flop circuit known as a Data Latch, Delay flip flop, D-type Bistable, D-type
Flip Flop or just simply a D Flip Flop as it is more generally called.
PROCEDURE
1. Connections are made as per circuit diagram.
2. Verify the truth table for various combinations of inputs.
RESULT
Constructed SR flipflop using NAND gate and verified the truth table. Converted it to D flipflop.
OUTPUT
BLOCK DIAGRAM OF SR FLIPFLOP
COMPONENTS REQUIRED
THEORY
7474 l D Flip-Flop
IC 7474 or mostly known as IC 74LS74 is a dual D Flip Flop positive edge-triggered IC. It has two
independent D Flip Flops with complementary outputs. It has D input and Q output. The data in
the D input may be changed during the high or low clock but it does not affect the output and
the delay times also do not affect. The IC 7474 can be operated up to 7V voltage and 0 to +70
degrees centigrade temperature. The main features of the IC 74LS74 are, it provides very fast
switching, low propagation delay, large operating mode, etc. It is used to Create delay-lines
74LS73 Features
• Two Individual Flip-Flops with J,K Clock, Set and Clear Inputs
• Input Data is Transferred to the Outputs on HIGH-LOW Clock Transition
• Fast Switching Speed
• Operating Temperature up to 70°C
• Standard TTL Switching Voltages
Applications
• Event Detectors
• Data Synchronizers
• Frequency Divider
PROCEDURE
1. Connections are made as per circuit diagram.
To construct asynchronous (ripple) mod-10 counter using flip-flops with 7 segment display.
OBJECTIVES
Students will study how to construct a MOD 10 ripple counter and show it to 7 segment display.
COMPONENTS REQUIRED
THEORY
In a digital circuit, counters are used to do 3 main functions: timing, sequencing and counting.
Counters are generally made up of flip-flops and logic gates. Digital counters are classified as
sequential circuits. The main types of flip-flops used are J-K flip-flops or T flip-flops, which are J-
K flip-flops with both J and K inputs tied together.
Counter represents the number of clock pulses arrived. A specified sequence of states appears
as counter output. This is the main difference between a register and a counter. There are two
types of counter, synchronous and asynchronous. In synchronous common clock is given to all
flip flop and in asynchronous first flip flop is clocked by external pulse and then each successive
flip flop is clocked by Q or 𝑄̅ output of previous stage ie the clock of second stage is triggered by
output of first stage. Because of inherent propagation delay time all flip flops are not activated
at same time which results in asynchronous operation.
The modulus is the number of unique states through which the counter will sequence. The
maximum possible number of states of a counter is 2n where ‘n’ is the number of flip-flops.
Counters can be designed to have a number of states in their sequence that is less than the
maximum of 2n . This type of sequence is called a truncated sequence. One common modulus
for counters with truncated sequences is 10 (Modules10). A decade counter with a count
sequence of zero (0000) through 9 (1001) is a BCD decade counter because its 10-state
sequence produces the BCD code. To obtain a truncated sequence, it is necessary to force the
counter to recycle before going through all of its possible states. A decade counter requires 4
flip-flops. If we take the modulo-16 ripple counter and modified it with additional logic gates it
can be made to give a decade (divide-by-10) counter output for use in standard decimal
counting and arithmetic circuits. Such counters are generally referred to as Decade Counters. A
decade counter requires resetting to zero when the output count reaches the decimal value of
10, ie. when DCBA = 1010 . One way to make the counter recycle after the count of 9 (1001) is
to decode the count ‘10’ (1010) with a NAND gate and connect the output of the NAND gate to
the clear (CLR) inputs of the flip-flops.
This type of asynchronous counter counts upwards on each leading edge of the input clock
signal starting from "0000" until it reaches an output "1010" (decimal 10). Both outputs Q1 and
Q3 are now equal to logic "1" and the output from the NAND gate changes state from logic "1"
to a logic "0" level and whose output is also connected to the CLEAR (CLR) inputs of all the J-K
Flip-flops. This causes all of the Q outputs to be reset back to binary "0000" on the count of 10.
Once QB and QD are both equal to logic "0" the output of the NAND gate returns back to a logic
level "1" and the counter restarts again from "0000". We now have a decade or Modulo-10
counter.
PROCEDURE
RESULT
OBJECTIVES
• To construct a Ring counter
COMPONENTS REQUIRED
THEORY
A ring counter is formed by feeding the output of a shift register to its own input. Here
the last output ie. QD in a shift register is connected back to the serial input. The data pattern
enclosed within the shift register will re-circulate with respect to the clock pulse. Ring counter is
one of the shift register applications. A ring counter has N states where ‘N’ is the number of
flip-flops.
The synchronous Ring Counter is preset so that exactly one data bit in the register is set to logic
“1” with all the other bits reset to “0”. To achieve this, a “CLEAR” signal is firstly applied to all
the flip-flops together in order to “RESET” their outputs to a logic “0” level and then a “PRESET”
pulse is applied to the input of the first flip-flop ( FFA ) before the clock pulses are applied. This
then places a single logic “1” value into the circuit of the ring counter.
So on each successive clock pulse, the counter circulates the same data bit between the
four flip-flops over and over again around the “ring” every fourth clock cycle. But in order to
cycle the data correctly around the counter we must first “load” the counter with a suitable
data pattern as all logic “0’s” or all logic “1’s” outputted at each clock cycle would make the ring
counter invalid.
PROCEDURE
RESULT
IC 7474(positive edge triggered dual D flipflop with active LOW, PRESET and CLEAR inputs)
Exp No. 18 Date: D D - M M - Y Y
JOHNSON COUNTER
AIM:
COMPONENTS REQUIRED
THEORY
A shift register counter is basically a shift register with the serial output connected back to the
serial input to produce special sequences. These devices are often classified as counters
because they exhibit a specified sequence of states. Two of the most common types of shift
register counters, the Johnson counter and the ring counter.
Johnson Counter
The Johnson digital counter or Twisted Ring Counter is a synchronous shift register with
feedback from the inverted output (𝑄̅ ) of the last flip-flop. 𝑄̅ of the last flip flop is connected
back to the input D of the first flip-flop. This inversion of Q before it is fed back to input D
causes the counter to “count” in a special way. The main benefit of this type of counter is that it
only needs half the number of flip flops compared to that of standard ring counter to represent
many states. So an n-stage Johnson counter gives a sequence of 2n different states and can
therefore be treated as a “Mod 2n counter” whereas an n-stage ring counter has only n states
that is “Mod n counter”.
It can be implemented using D-type flip-flops (or JK-type flip-flops). The output of each flip flop
is connected to the input of the next. The complementary output 𝑄̅ of the last flipflop is
connected to the first input.
In order to make Q1 high to begin, we should keep ̅̅̅̅̅̅̅̅𝑃𝑅𝐸1 = 0 for a time period which is less
̅̅̅̅̅̅̅̅ = 1 for proper working.
than the clock duration. After that keep 𝑃𝑅𝐸1
PROCEDURE
RESULT
SYNCHRONOUS COUNTERS
AIM:
OBJECTIVES
COMPONENTS REQUIRED
THEORY
PROCEDURE
RESULT