Digital Lab Report - 119EI0897
Digital Lab Report - 119EI0897
EXPERIMENTS (1-10)
VARANASI THANUSRI
119EI0897
Exp.no Experiment Name Date of Date of
Experiment Submission
Procedure:
Observation:
Results:
Realization of logic gates using NAND universal gates have the following
results:
5) Ex-NOR: Output is HIGH only when either both the inputs are LOW or
both the inputs are HIGH.
Full Adder:
Half Subtractor:
Half Subtractor:
Full Subtractor:
PROCEDURE:
(i) Connect the elements of circuit as given according to circuit diagram.
(ii) Give logical inputs as per circuit diagram.
(iii) Observe the output and verify with the truth table.
OBSERVATION:
Result and Analysis: Verified the truth table as follows.
Half Adder: Verified the truth table of Half Adder as S = 1 i.e. LED which is
connected to S terminal glows when inputs are A B = (0,1) or (1,0).
Verified the truth table of Half Adder as C = 1 i.e. LED which is connected to
C terminal glows when inputs are A B = (1,1)
Full Adder: Verified the truth table of Full Adder as S = 1 i.e. LED which is
connected to S terminal glows when inputs are A B Ci = (1,0,0); (0,0,1);
(0,1,0); (1,1,1).
Verified the truth table of Full Adder as Co = 1 i.e. LED which is connected
to Co terminal glows when inputs are A B Co = (1,1,0); (1,0,1); (0,1,1); (1,1,1).
Half Subtractor: Verified the truth table of Half Subtractor as D = 1 i.e. LED
which is connected to D terminal glows when inputs are x y. = (0,1)
Verified the truth table of Half Subtractor as B = 1 i.e. LED which is
connected to B terminal glows when inputs are x y = (0,1); (1,0)
Full Subtractor: Verified the truth table of Full Subtractor as D = 1 i.e. LED
which is connected to D terminal glows when inputs are X Y Bin= (1,0,0);
(0,1,0); (0,0,1); (1,1,1)
Verified the truth table of Full Subtractor as BORROW out = 1 i.e. LED
which is connected to BORROW out terminal glows when inputs are X Y
BORROW in= (0,0,1); (0,1,0), (0,1,1); (1,1,1)
Discussion:
1. To add two bits we require one EXOR gate (IC 7486) to generate Sum and
one AND (IC 7408) to generate carry.
2. To add three bits we require two half adders
3. To add two bits we require one EXOR gate (IC 7486) to generate
Difference and one AND (IC 7408) and NOT Gate(IC7432) to generate
Borrow.
4. To add three bits we require two half subtractor.
Conclusion:
Therefore, the design of half/ full adders/subtarctors are successfully
implemented and verified.
EXPERIMENT 3
Aim of the experiment: Design and Implementation of code converters using
logic gates.
Objectives:
▪ Binary to Gray code converter.
▪ Gray to Binary code converter.
▪ BCD to Excess-3 code converter.
▪ Excess-3 to BCD code converter.
Apparatus/Components used:
➔ Components Development System
➔ Connecting Wires and Patch Cords
➔ Digital ICs:
1. 7404: Hex Inverter - 1No
2. 7408: Quad 2 input AND - 1No
3. 7432: Quad 2 input OR - 1No
4. 7486: Quad 2 input Ex-OR - 1No
Theory in Brief:
Code Converters: The availability of a large variety of codes for the same
discrete elements of information results in the use of different codes by
different digital systems. It is some time necessary to use the output of
one system as the input to the other. The conversion circuit must be
inserted between the two systems if each uses different codes for the
same information. Thus a code converter is a circuit that makes the two
systems compatible even though each uses the different code
Binary Codes: A symbolic representation of data/ information is called
code. The base or radix of the binary number is 2. Hence, it has two
independent symbols. The symbols used are 0 and 1. A binary digit is
called as a bit. A binary number consists of sequence of bits, each of
which is either a 0 or 1. Each bit carries a weight based on its position
relative to the binary point. The weight of each bit position is one power of
2 greater than the weight of the position to its immediate right. e. g. of
binary number is 100011 which is equivalent to decimal number 35.
BCD Codes: Numeric codes represent numeric information i.e. only
numbers as a series of 0’s and 1’s. Numeric codes used to represent
decimal digits are called Binary Coded Decimal (BCD) codes. A BCD code
is one, in which the digits of a decimal number are encoded-one at a time
into group of four binary digits. There are a large number of BCD codes in
order to represent decimal digits0, 1, 2……9, it is necessary to use a
sequence of at least four binary digits. Such a sequence of binary digits
which represents a decimal digit is called code word.
Gray Codes: It is a non-weighted code; therefore, it is not a suitable for
arithmetic operations. It is a cyclic code because successive code words
in this code differ in one-bit position only i.e. it is a unit distance code.
Applications of Gray Code:
1. In instrumentation and data acquisition system where linear or angular
displacement is measured.
2. In shaft encoders, input-output devices, A/D converters and the other
peripheral equipment.
Excess-3 code: It is a non-weighted code. It is also a self-complementing
BCD code used in decimal arithmetic units. The Excess-3 code for the
decimal number is performed in the same manner as BCD except that
decimal number 3 is added to each decimal unit before encoding it to
binary.
TRUTH TABLES AND LOGIC GATES OF CONVERTORS:
1) Binary to Gray code convertor:
Binary I/P Gray code O/P
Observation:
Input Variable- B3 B2 B1 B0
Output Variable- G3 G2 G1 G0
LED ON = LOGIC 1; LED OFF = LOGIC 0.
Binary to Gray Code Converter:
Procedure:
1)Make the connections according to the circuit diagrams.
2)Give various logical inputs as per truth tables.
3)Observe obtained logical outputs and verify them with the truth tables
Discussions:
Binary to Gray Code:
The binary to gray code converter is used since two systems use two different
codes but they need to use the same information. Binary to gray code
converter converts binary 0000 to 1111 into gray codes. The circuit diagram is
very simple and only uses a 74886 IC, i.e, EX-OR Gate. Unless the K-Map is
used many gates may be used, but the result of K-Map minimization, it can
work only using EX-OR Gate. Gray code is a weighted, cyclic and reflective
code, used in instrumentation and acquisition systems where linear or
angular displacement is measured, shaft encoders, I/O Devices, A/D
converters and outer peripheral devices.
Conclusion: Binary to gray code converter has been designed using EX-OR
Gate and its truth table was verified.
Gray to Binary Code:
The gray to binary code converter is used since two systems use two different
codes but they need to use the same information. Binary to gray code
converters convert correctly gray 0000 into binary 1111 codes. The circuit
diagram is very simple and only uses a 74886 IC, i.e, EX-OR Gate. Unless the
K-Map is used many gates may be used, but the result of K-Map minimization,
it can work only using EX-OR Gate. Gray code is a weighted, cyclic and
reflective code, used in instrumentation and acquisition systems where linear
or angular displacement is measured, shaft encoders, I/O Devices, A/D
converters and outer peripheral devices.
Conclusion:
Gray to binary code converter has been designed using EX-OR Gate and its
truth table was verified.
3 OR Gate IC7432 1
5 4 Bit IC7485 1
Comparator
6 CDs (Bread - 1
Board)
7 Wires And Patch - As per
cord requirement
Observation:
Result Table for 2 Bit Magnitude Comparator:
A1 A0 B1 B0 A>B A=B A<B
0 0 0 0 0 1 0
0 0 0 1 0 0 1
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
0 0 0 1 0 0 0 0 0 0 1
0 0 0 1 0 0 0 1 0 1 0
0 0 0 0 0 0 0 1 1 0 0
1 0 1 0 1 0 1 1 1 0 0
0 1 0 1 0 1 0 1 0 1 0
1 1 0 0 0 0 1 1 0 0 1
1 1 1 1 0 1 1 1 0 0 1
0 1 1 1 1 0 0 1 0 0
Discussion and Conclusion: The 2-bit and 4-bit magnitude comparator
data have been compared. Hence, this experiment has been
implemented successfully.
Precautions:
1)Check all the connections carefully.
2)Check if the IC is properly biased or not.
3)Connections on the bread board must be tight.
4)Identify the pins of IC properly.
5)Take care while inserting or removing the IC pins of the bread board.
EXPERIMENT 5
Objectives:
1) To design and set up a 4:1 Multiplexer (MUX) using only NAND gates.
2) To design and set up a 1:4 Demultiplexer (DE-MUX) using only NAND
gates.
3) To verify the truth table of IC 74153(MUX) and IC 74139(DEMUX).
Apparatus/Components used:
Theory in Brief:
Procedure:
S1 S0 E I0 I1 I2 I3 Y
X X 1 X X X X 0
0 0 0 0 X X X 0
0 0 0 1 X X X 1
0 1 0 X 0 X X 0
0 1 0 X 1 X X 1
1 0 0 X X 0 X 0
1 0 0 X X 1 X 1
1 1 0 X X X 0 0
1 1 0 X X X 1 1
E S1 S0 D Y3 Y2 Y1 Y0
1 X X 0 X X X X
0 0 0 1 0 0 0 1
0 0 1 1 0 0 1 0
0 1 0 1 0 1 0 0
0 1 1 1 1 0 0 0
Precautions:
1)Check all the connections carefully.
2)Check if the IC is properly biased or not.
3)Connections on the bread board must be tight.
4)Identify the pins of IC properly.
5)Take care while inserting or removing the IC pins of the breadboard.
EXPERIMENT 6
Aim of the experiment: To study and verify state tables of different flip-flops.
Objectives: To verify different State tables and State diagram.
1.
S-R flip-flop
2.
D flip-flop
3.
J-K flip-flop
4.
T flip-flop
Apparatus/Components used:
IC 7400, IC 7404, IC 7410 -- 1 Each
Patch Cords and Single Stand Wire
Components Development System.
Theory in Brief:
S R Flip-Flop: The clocked RS flip-flop consists of NAND gates and
the output changes its state with respect to the input application of
clock pulse. When the clock pulse is high the S and R inputs reach
the second level
NAND gates in their complementary form. The flip-flop is reset
when the R input is high and S input is low. The flip-flop is set
when the S input is high and R input is low. When both the
inputs are high the output is in an indeterminate state.
T Flip-Flop: This is a much simpler version of the J-K flip flop. Both
the J and K inputs are connected together and thus are also called a
single input J-K flip flop. When the clock pulse is given to the flip
flop, the output begins to toggle. Here also the restriction on the
pulse width can be eliminated with a master-slave or edge-
triggered construction.
Procedure:
1. Connect IC pins to the bread board as per the given circuit
diagrams.
2. All PIN 7’s are to be grounded and all PIN 14’s are to be
connected to the +5V supply.
3. Make the connections according to the circuit diagrams.
4. Give various logical inputs as per the truth tables.
5. Give the respective inputs and verify the status of all the flip-
flops.
Results and Analysis:
State Table of clocked S-R flip-flop:
1 0 0 0 X Invalid
2 0 0 1 X Invalid
3 0 1 0 1 Set
4 0 1 1 1 Set
5 1 0 0 0 Reset
6 1 0 1 0 Reset
7 1 1 0 0 NC
8 1 1 1 1 NC
1 0 0 0 Reset
2 0 1 0 Reset
3 1 0 1 Set
4 1 1 1 Set
1 0 0 0 Toggle
2 0 1 1 Toggle
3 1 0 1 No change
4 1 1 1 No change
Discussion:
Conclusion:
We have verified the tables and hence can conclude that the
experiment has been successful.
Precautions:
1.Remove and connect the IC pins to the breadboard properly.
Objective:
a. To design a 4- bit Ripple Counter using J-K Flip flop (IC7476).
b. Verify the timing diagram and truth Table.
c. To design a Mod-10 Counter using J-K Flip flop (IC7476) and AND
gate.
d. Verify the timing diagram and truth Table of Mod-10 counter.
Apparatus/Components used:
Theory in Brief:
Circuit diagram:
4 BIT RIPPLE COUNTER
Procedure:
1) Collect all the components necessary to do the experiment.
2) Insert the IC chips onto the breadboard.
3) According to the logic diagram, make connections using wires.
4) Give the logic inputs as per circuit diagram and perform the experiment.
5) Observe the output and verify with the truth tables.
6) Carry out the same process for both the counters.
Observation:
4-Bit Ripple counter
CLK QA QB QC QD
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Mod-10 counter
CLK QA QB QC QD
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
Discussion: In a ripple counter, different flip-flops are triggered with
different clock pulses and not simultaneously. A decade counter requires
resetting to zero when the output count reaches the decimal value of
10. The 4-bit counter has a reset pin that enables it to enter an all-zero
state i.e. the output of the counter is '0' if the reset is '1' irrespective of the
clock and the current state of the flip flops.
Conclusion:
Therefore, the two different types of Asynchronous counters, 4-bit Ripple
and Mod 10 counters are successfully implemented.
Precautions:
1. Check all the connections carefully.
2. Check if the IC is properly biased or not.
3. Connections on the bread board must be tight.
4. Identify the pins of IC properly.
5. Take care while inserting or removing the IC pins of the bread boar
EXPERIMENT 8
Aim of the experiment: Design and Implementation of 3-bit synchronous
up/down counter
Objectives:
a. To learn the design of synchronous counter.
b. Verify the truth table in both the direction (up and down)
Apparatus/Components used:
1. IC 7476, / OR IC 74107 2NOS
2. IC 7408, IC7404, IC7432 1NOS/each
3. Patch Cords 8pcs
4. Components Development System
Theory in Brief:
A counter is a register capable of counting number of clock pulse arriving
at its clock input. Counter represents the number of clock pulses arrived.
An up/down counter is one that is capable of progressing in increasing
order or decreasing order through a certain sequence. An up/down
counter is also called bidirectional counter. Usually up/down operation of
the counter is controlled by up/down signal. When this signal is high
counter goes through up sequence and when up/down signal is low
counter follows reverse sequence. The circuit above is of a simple 3-bit
Up/Down synchronous counter using JK flip-flops configured to operate
as toggle or T-type flipflops giving a maximum count of zero (000) to
seven (111) and back to zero again. Then the 3-Bit counter advances
upward in sequence (0,1,2,3,4,5,6,7) or downwards in reverse sequence
(7,6,5,4,3,2,1,0).
Circuit Diagrams:
LOGIC DIAGRAM OF 3 BIT UP/DOWN SYNCHRONOUS COUNTER
STATE DIAGRAM
CHARACTERESTIC TABLE
Q Q(t+1) J K
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
Procedure:
1. Collect all the components necessary to do the experiment.
2. Insert the IC chips onto the breadboard.
3. According to the logic diagram, make connections using wires.
4. Give the logic inputs as per circuit diagram and perform the experiment.
5. Observe the output and verify with the truth tables.
Observation:
0 0 0 0 0 0 1
0 0 0 1 0 1 0
0 0 1 0 0 1 1
0 0 1 1 1 0 0
0 1 0 0 1 0 1
0 1 0 1 1 1 0
0 1 1 0 1 1 1
0 1 1 1 0 0 0
1 0 0 0 1 1 1
1 0 0 1 0 0 0
1 0 1 0 0 0 1
1 0 1 1 0 1 0
1 1 0 0 0 1 1
1 1 0 1 1 0 0
1 1 1 0 1 0 1
1 1 1 1 1 1 0
Discussion:
The similarities between the implementation of a binary up counter and a
binary down counter leads to the possibility of a binary up/down counter,
which is a binary up counter and a binary down counter combined into
one. Since the difference is only in which output of the flip-flop to use, the
normal output or the inverted one, we use two AND gates for each flip-
flop to "choose" which of the output to use.
Conclusion: Therefore, the 3-bit synchronous Up/Down counter was
successfully implemented.
Precautions:
1. Check all the connections carefully.
2. Check if the IC is properly biased or not.
3. Connections on the bread board must be tight.
4. Identify the pins of IC properly.
5. Take care while inserting or removing the IC pins of the bread board.
EXPERIMENT 9
Aim of the experiment: Design and Implementation of the various shift
Registers using flip flops
Objectives:
To design and implement
1. Serial in serial out shift register (SISO).
2. Serial in parallel out shift register (SIPO).
3. Parallel in serial out shift register (PISO).
4. Parallel in parallel out shift register (PIPO).
Apparatus/Components used:
Sl.no COMPONENT SPECIFICATION QTY
1. D flip flop IC7474 2
2. OR Gate IC7432 1
3. Components Development 1
system
4. Patch cords and wires As required
The effect of data movement from left to right through a shift register can
be presented graphically as:
Also, the directional movement of the data through a shift register can be
either to the left, (left shifting) to the right, (right shifting) left-in but right-
out, (rotation) or both left and right shifting within the same register
thereby making it bidirectional. In this manual, it is assumed that all the
data shifts to the right, (right shifting).
Circuit Diagrams:
PIN DIAGRAM OF IC7474
LOGIC DIAGRAMS OF DIFFERENT SHIFT REGISTERS:
1) Serial in Serial out (SISO):
Procedure:
1. Collect all the components necessary to do the experiment.
2. Insert the IC chips onto the breadboard.
3. According to the logic diagram, make connections using wires.
4. Give the logic inputs as per circuit diagram and perform the
experiment.
5. Observe the output and verify with the truth tables.
Observation:
TRUTH TABLE FOR SISO:
CLK Serial in Serial Data out
1 1 0
2 0 0
3 1 0
4 0 1
5 0 0
6 0 1
7 0 0
Discussion:
Shift Registers are used for data storage or for the movement of data and
are therefore commonly used inside calculators or computers to store
data such as two binary numbers before they are added together, or to
convert the data from either a serial to parallel or parallel to serial format
Conclusion: From the experiment, we can conclude that the Shift Register
was successfully implemented and observed for different data inputs.
SISO, SIPO, PISO, PIPO type shift registers were studied and the
corresponding truth tables were filled.
Precautions:
1. Check all the connections carefully.
2. Check if the IC is properly biased or not.
3. Connections on the bread board must be tight.
4. Identify the pins of IC properly.
5. Take care while inserting or removing the IC pins of the bread board.
EXPERIMENT 10
Aim: To construct an analog to digital convertor by using R 2R Ladder
network and 741 Opamp.
Objectives:
1. Design the circuit diagram
2. Measure the DC output voltage (Op-Amp pin 6)
3. Demonstrate the digital input and analog output using LED
4. Draw the D/A transfer curve.
Components required:
1. Resistors (1KΩx4, 2.2 KΩx5)
2. 741 Op Amp
3. Patch Cord -10pcs
Theory:
Digital-to-Analog Converter: An electronic device, often an integrated
circuit, that converts a digital number into a corresponding analog voltage
or current. Digital to analog converter (DAC) is used to get analog voltage
corresponding to an input digital data. Data in binary digital form can be
converted to corresponding analog form by using a R-2R ladder network
and a summing amplifier. It is more common and practical. Below is the
circuit and output simulated waveform of R-2R ladder network DAC. This
circuit also uses an op amp (741) summing amplifier circuit. You can learn
how to build a Digital to Analog converter using the simple technique
explained in this page. Actually different types of Digital to Analog
converter ICs are available commercially based on this same principle.
The R-2R ladder network is built by a set of resistors of two values. It
makes the circuit simpler and economical for different applications.
General DAC Characteristics There are six key parameters you should
consider when choosing a DAC.
• Reference Voltage
• Resolution
• Linearity
• Speed
• Settling Time
• Error
Working of R-2R ladder network DAC with R =1kΩ, 2R = 2kΩ:
R-2R weighted resistor ladder network uses only 2 set of resistors- R and
2R. If you want to build a very precise DAC, be precise while choosing the
values of resistors that will exactly match the R-2R ratio.
This is a 4 bit DAC. Let us consider the digital data D3D2D1D0= 0001 is
applied to the DAC, then the Thevenin equivalent circuit reduction is shown
below. (If R=1K, and 2R=2K)
Vref is nothing but the input binary value reference voltage, that is for
binary 1, Vref=5V and for binary 0, Vref=0V.
For 0001 only D0=Vref, all other inputs are at 0V and can be treated as
ground. So finally Vref/16 volt is appearing as the input to op amp. This
value gets multiplied by the gain of op amp circuit – (Rf/Ri).
If we proceed in this manner (Thevenin equivalent reduction), we will
get
Vout = -(Rf/Ri) Vref [(D0/16) +(D1/8) +(D2/4) +(D3/2)]
Circuit Diagrams:
Procedure:
1. Collect all the components necessary to do the experiment.
2. Insert the IC chip onto the breadboard.
3. According to the logic diagram, make connections using wires.
4. Give the logic inputs as per circuit diagram and perform the
experiment.
5. Observe the output and verify with the truth tables.
Observation:
Digital Input (4 Bit Binary) Analog O/P O/P
DC Voltage Voltage
D3 D2 D1 D0 Practical
0 0 0 0 0 -0.133
0 0 0 1 -0.625 -0.75
0 0 1 0 -1.25 -1.33
0 0 1 1 -1.875 -1.997
0 1 0 0 -2.50 -2.42
0 1 0 1 -3.125 -3.08
0 1 1 0 -3.75 -3.367
0 1 1 1 -4.375 -4.35
1 0 0 0 -5 -4.47
1 0 0 1 -5.625 -5.12
1 0 1 0 -6.25 -5.68
1 0 1 1 -6.875 -6.36
1 1 0 0 -7.5 -6.78
1 1 0 1 -8.125 -7.45
1 1 1 0 -8.75 -8.04
1 1 1 1 -8.75 -8.05
Output Waveform:
Discussion:
Note that you can build a DAC with any number of bits you want, by
simply enlarging the resistor network, by adding more R-2R resistor
branches.
In this circuit the 7493 IC simply provides digital inputs to DAC. It is a
counter IC and not an integral part of the DAC circuit. You can apply
any combinations of binary inputs to D3 D2 D1 D0
Conclusion: Therefore, the Digital to Analog convertor using R 2R ladder
network is successfully designed and verified.
Precautions:
1. Check all the connections carefully.
2. Check if the IC is properly biased or not.
3. Connections on the bread board must be tight.
4. Identify the pins of IC properly.
5. Take care while inserting or removing the IC pins of the bread board.