CSE 207L DE LAB MANUAL Modified
CSE 207L DE LAB MANUAL Modified
Department of
Electronics and Communication Engineering
DIGITAL ELECTRONICS
LABORATORY MANUAL
Course Name Digital Electronics lab
Course Code CSE 207L
LIST OF EXPERIMENTS
DO’S:-
1. Students should carry observation notes and records completed in all aspects.
2. Correct specifications of the equipment have to be mentioned in the circuit diagram
3. Students should be aware of the operation of equipment’s.
4. Students should take care of the laboratory equipment’s/ Instruments.
5. After completing the connections, students should get the circuits verified by the Lab
Instructor
DON’Ts:-
APPARATUS 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 and X-OR are
known as universal gates. Basic gates form these gates.
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.
NANDGATE: 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-ORGATE: 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:
NOT GATE:
APPARATUS:
1. IC - 7486
2. Electronic circuit designer
3. Connecting patch chords
CIRCUIT DIAGRAM:
BINARY TO GRAY:
GRAY TO BINARY:
PROCEDURE: -
CONCLUSION:
APPARATUS:
THEORY:
HALF ADDER:
A half adder has two inputs for the two bits to be added and two outputs one from the sum
‘ S’ and other from the carry ‘ c’ into the higher adder position. Above circuit is called as a carry
signal from the addition of the less significant bits sum from the X-OR Gate the carry out from the
AND gate.
FULL ADDER:
A full adder is a combinational circuit that forms the arithmetic sum of input; it consists of
three inputs and two outputs. A full adder is useful to add three bits at a time but a half adder
cannot do so. In full adder sum output will be taken from X-OR Gate, carry output will be taken
from OR Gate.
HALF SUBTRACTOR:
The half subtractor is constructed using X-OR and AND Gate. The half subtractor has two
input and two outputs. The outputs are difference and borrow. The difference can be applied using
X-OR Gate, borrow output can be implemented using an AND Gate and an inverter.
FULL SUBTRACTOR:
The full subtractor is a combination of X-OR, AND, OR, NOT Gates. In a full subtractor
the logic circuit should have three inputs and two outputs. The two half subtractor put together
gives a full subtractor. The first half subtractor will be C and A B. The output will be difference
output of full subtractor. The expression AB assembles the borrow outputof the half subtractor and
the second term is the inverted difference output of first X-OR.
Half Subtractor:
Full Adder:
FULL SUBTRACTOR:
CONCLUSION:
CIRCUIT DIAGRAM:
PROCEDURE:
1. Check all the components for their working.
2. Insert the appropriate IC into the IC base
3. Make connections as shown in the circuit diagram.
4. Verify the Truth Table and observe the outputs.
CONCLUSION:
APPARATUS:
ENCODER:
A decoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded
outputs, where the input and output codes are different. Binary Decoder has n inputs and 2n outputs
also called asn-to-2n decoder.
DECODER:
Decoder is the combinational circuit which contains ‘n’ input lines to 2n output lines. The decoder is
used for converting the binary code into the octal code. The IC74138 is the 3 x 8 decoder which
contains three inputs and 8 outputs and also three enables out of them two are active low and one is
active high.
Decoders are used in the circuit where required to get more outputs than that of the inputs.
Circuit Diagram:
CONCLUSION:
AIM: To verify the truth table of one bit and four bit comparators using logic Gates and IC 7485
APPARATUS:
PROCEDURE:
1. Connect the circuit as shown in fig. Feed the 4-bit binary words A0, A1, A2, A3 and B0, B1, B2,
B3 from the logic input switches.
2. Pin 3 of IC 7485 should be at logic 1 to enable compare operation.
3. Observe the output A>B, A=B, and A<B on logic indicators. The outputs must be 1 or 0
respectively.
4. Repeat the steps 1 ,2 and 3 for various inputs A0, A1, A2, A3 and B0, B1, B2, B3 andobserve the
outputs at A>B , A=B and A<B .
CONCLUSION:
THEORY:
• RS FLIP-FLOP:
There are two inputs to the flip-flop defined as R and S. When I/Ps R=0 and S=0 then
O/P remains unchanged. When I/Ps R=0andS=1 the flip-flop is switches to the stable
state where O/P is 1i.e. SET. The I/P condition is R=1 and S=0 the flip-flop is switched
to the stable statewhere O/P is 0i.e. RESET. The I/P condition is R=1 and S=1 the flip-
flop is switched to the stable state where O/P is forbidden.
• JK FLIP-FLOP:
For purpose of counting, the JK flip-flop is the ideal element to use. The variable J and K
are called control I/Ps because they determine what the flip-flop does when a positive edge
arrives. When J and K are both0s, both AND gates are disabled and Q retain sits last value.
• D FLIP–FLOP:
This kind of flip-flop prevents the value of D from reaching the Q output until clock pulses
occur. When the clock is low, both AND gates are disabled D can change value without
affecting the value of Q. On the other hand, when the clock is high, both AND gates are
enabled. In this case, Q is forced to equal the value of D. When the clock a gain goes low, Q
retains or stores the last value of D.A D flip-flop is a b is table circuit whose D input is
transferred to the output after a clock pulse is received.
• T FLIP-FLOP:
The T or" toggle" flip flop changes its output on each clock edge, giving an output which
is half the frequency of the signal to the T input. It is useful for constructing binary counters,
frequencydividers, and general binary addition devices. It can be made from a J-K flip-flop
by tying both of its inputs high.
CIRCUIT DIAGRAM:
TRUTH TABLE:
CLK D Q ̅
𝑸
1 0 0 1
1 1 1 0
RESULT:
APPARATUS:
1. IC’s - 7404, 7402, 7400
2. Electronic circuit designer
3. Connecting patch chords
THEORY:
A ring counter is a circular shift register which is initiated such that only one of its flip-flops is
the state one while others are in their zero states.
A ring counter is a shift register (a cascade connection of flip-flops) with the output of the last
one connected to the input of the first, that is, in a ring. Typically, a pattern consisting of a single
bit is circulated so the state repeats every n clock cycles if n flip-flops are used.
A Johnson counter (or switch-tail ring counter, twisted ring counter, walking ring counter,or
Mobius counter) is a modified ring counter, where the output from the last stage is inverted and
fed back as input to the first stage. The register cycles through a sequence of bit-patterns, whose
length is equal to twice the length of the shift register, continuing indefinitely. These counters
find specialist applications, including those similar to the decade counter, digital-to- analog
conversion, etc. They can be implemented easily using D- or JK-type flip-flops.
CIRCUIT DIAGRAM:
RING COUNTER:
TRUTH TABLE:
CLK Q2 Q1 Q0
0 1 0 0
1 0 1 0
2 0 0 1
TRUTH TABLE:
CLK Q2 Q1 Q0
0 0 0 0
1 1 0 0
2 1 1 0
3 1 1 1
4 0 1 1
5 0 0 1
PROCEDURE:
1. Connections are made as per the circuit diagram
3. Apply clock pulses and note the outputs after each clock pulse
CONCLUSION:
APPARATUS:
1. IC -7408,7476
2. Electronic circuit designer
3. Connecting patch chords
4. Function generator probe.
THEORY:
A counter in which each flip-flop is triggered by the output goes to previous flip flop. As all the flip-
flops does not change state simultaneously in a synchronous counter, spike occur at the output. To
avoid this, strobe pulse is required. Because of the propagation delay the operating speed of
asynchronous counter is low. This problem can be solved by triggering all the flip-flops in synchronous
with the clock signal and such counters are called synchronous counters.
CIRCUIT DIAGRAM:
Vcc
2 7 2
Q
PRE
PRE
PRE
15 9 11 7408 4 15
4 Q Q
7476 1 7476
1Hz
1 7476 6
Q
Q Q 16
16 14 14
CLR
CLR
12 10
CLR
Vcc 5 13 Vcc 5 13
3 GND 8 3
Vcc
PROCEDURE:
4. Similarly Connect pin no.13 to ground and pin no.5 to Vcc of IC 7476 as per the circuit diagram.
6. Apply clock pulses and note the outputs after each clock pulse and note done the outputs.
CONCLUSION:
AIM: To construct and verify the working of a single digit decade counter using IC 7490.
THEORY:
A decade counter is one that counts in decimal digits, rather than binary. A decade counter may have each
(that is, it may count in binary-coded decimal, as the 7490 integrated circuit did) or other binary
encodings. "A decade counter is a binary counter that is designed to count to 1010 (decimal 10). An
ordinary four-stage counter can be easily modified to a decade counter by adding a NAND gate as in the
schematic to the right. Notice that FF2 and FF4 provide the inputs to the NAND gate. The NAND gate
outputs are connected to the CLR input of each of the FFs." A decade counter is one that counts in
decimal digits, rather than binary. It counts from 0 to 9 and then resets to zero. The counter output can be
set to zero by pulsing the reset line low. The count then increments on each clock pulse until it reaches
1001 (decimal 9). When it increments to 1010 (decimal 10) both inputs of the NAND gate go high. The
result is that the NAND output goes low, and resets the counter to zero. D going low can be a CARRY
OUT signal, indicating that there has been a count of ten.
PROCEDURE:
1. Wire the circuit diagram shown in figure 1.
2. Connect the 1Hz clock to pin CPO.(14)
3. Connect the reset terminals (MR1 & MR2) to high and set terminals (MS1 &
MS2) to zero and observe the output.
4. Now connect set and reset inputs to zero and observe the outputs.
5. Record the counter states for each clock pulse.
6. Design mod 6 counter using IC 7490 as shown in fig 2.
7. Record the counter states for each clock pulse.
8. Now Construct decade counter using J – K F/F’s and record the counter states.
CONCLUSION:
APPARATUS:
1. IC’s - 7495
2. Electronic Circuit Designer
3. Connecting patch chords.
THEORY:
In digital circuits, a shift register is a cascade of flip flops, sharing the same clock, in which the output of
each flip-flop is connected to the "data" input of the next flip-flop in the chain, resulting in a circuit that
shifts by one position the "bit array" stored in it, "shifting in" the data present at its input and 'shifting out'
the last bit in the array, at each transition of the clock input.
More generally, a shift register may be multidimensional, such that its "data in" and stage outputs are
themselves bit arrays; this is implemented simply by running several shift registers of the same bit- length
in parallel.
Shift registers can have both parallel and serial inputs and outputs. These are often configured as "serial-
in, parallel-out" (SIPO) or as "parallel-in, serial-out" (PISO). There are also types that have both serial
and parallel input and types with serial and parallel output. There are also "bidirectional" shift registers
which allow shifting in both directions: L→R or R→L. The serial input and last output of a shift register
can also be connected to create a "circular shift register". One register is PIPO (parallel in parallel out),
which is very fast, within single clock pulse, it is giving output
CIRCUIT DIAGRAM:
CONCLUSION: