Digital Electronics 3rd Sem
Digital Electronics 3rd Sem
Digital Electronics 3rd Sem
LAB MANUAL
IV SEMESTER
DIGITAL ELECTRONICS LAB ( )
LIST OF EXPERIMENTS:-
1. Study of TTL gates – AND; OR; NOT; NAND; NOR; EX-OR; EX-NOR
2. Verify the NAND and NOR gates as universal logic gates.
3. Design and verification of the truth tables of Half and Full adder circuits.
4. Design and verification of the truth tables of Half and Full subtractor circuits.
5. To verify the truth tables of S-R; J-K; T and D type flip flops
6. Design, and Verify the 4-Bit Asynchronous Counter.
7.To verify the operation of bi-directional shift register
8. Operate the counters 7490, 7493
9. Implementation of 4x1 multiplexer using Logic Gates.
10.Verification of the truth table of the De-Multiplexer 74154.
.
INDEX
2 2
Verify the NAND and NOR gates
as universal logic gates.
9 9 Implementation of 4x1
multiplexer using Logic
Gates.
10 10
Verification of the truth table of
the De-Multiplexer 74154.
EXPERIMENT NO: 1
AIM: - Study of TTL gates – AND; OR; NOT; NAND; NOR; EX-OR; EX-NOR
APPARATUS REQUIRED: Power Supply, Digital Trainer Kit., Connecting Leads, IC’s (7400,
7402, 7404, 7408, 7432, and 7486)
BRIEF THEORY:
AND Gate: The AND operation is defined as the output as (1) one if and only if all the inputs are (1)
one. 7408 is the two Inputs AND gate IC.A&B are the Input terminals &Y is the Output terminal.
Y = A.B
OR Gate: The OR operation is defined as the output as (1) one if one or more than 0 inputs are (1) one.
7432 is the two Input OR gate IC. A&B are the input terminals & Y is the Output terminal.
Y=A+B
NOT GATE: The NOT gate is also known as Inverter. It has one input (A) & one output (Y). IC No.
is 7404. Its logical equation is,
Y = A NOT B, Y = A’
NAND GATE: The IC no. for NAND gate is 7400. The NOT-AND operation is known as NAND
operation. If all inputs are 1 then output produced is 0. NAND gate is inverted AND gate.
Y = (A. B)’
NOR GATE: The NOR gate has two or more input signals but only one output signal. IC 7402 is two
I/P IC. The NOT- OR operation is known as NOR operation. If all the inputs are 0 then the O/P is 1.
NOR gate is inverted OR gate.
Y = (A+B)’
EX-OR GATE: The EX-OR gate can have two or more inputs but produce one output. 7486 is two
inputs IC. EX-OR gate is not a basic operation & can be performed using basic gates.
Y=A B
LOGIC SYMBOL:
. Logic Symbol of Gates
PIN CONFIGURATION:
7400(NAND) 7402(NOR)
7404(NOT) 7408(AND)
OBSERVATIO N TABLE:
RESULT: We have learnt all the gates ICs according to the IC p in diagram.
PRECAUTIONS:
Define gates ?
Ans. Gates are the digital circuits, which perform a specific type of logical operation.
Define IC?
Ans. IC means integrated circuit. It is the integration of no. of components on a common
substrate.
Give example of Demorgan’s theorem.
Ans. (AB)’=A’+B’
(A+B)’=A’.B’
(A+A) A =?
Ans. A.
Q5. Define Universal gates.
Ans. Universal gates are those gates by using which we can design any type of logical expression.
Q6.Write the logical equation for AND gate.
Ans. Y=A.B
Q7 How many no. of input variables can a NOT Gate have?
Ans. One
Q8.Under what conditions the output of a two input AND gate is one?
Ans. Both the inputs are one.
Q9.1+0 =?
Ans. 1
Q10.When will the output of a NAND Gate be 0?
Ans. When all the inputs are 1.
EXPERIMENT NO: 2
Aim:- Verify the NAND and NOR gates as universal logic gates
To implement the logic functions i.e. AND, OR, NOT, Ex-OR, Ex- NOR and a logical expression
with the help of NAND and NOR universal gates respectively
Theory:
Introduction:
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.
NAND gate is actually a combination of two logic gates i.e. AND gate followed by NOT
gate. So its output is complement of the output of an AND gate. This gate can have minimum two
inputs. By using only NAND gates, we can realize all logic functions: AND, OR, NOT, Ex-OR,
Ex-NOR, NOR. So this gate is also called as universal gate.
Y = ((A.B)’)’
Y = (A.B)
Y = AB+ A’B’
F=((C'.B.A)'(D'.C.A)'(C.B'.A)')'
Figure-9:Implementing the simplified function with NAND gates only
NOR gate is actually a combination of two logic gates: OR gate followed by NOT gate. So its
output is complement of the output of an OR gate.This gate can have minimum two inputs, output
is always one. By using only NOR gates, we can realize all logic functions: AND, OR, NOT, Ex-
OR, Ex-NOR, NAND. So this gate is also called universal gate.
Y = ((A+B)’)’
Y = (A+B)
Figure-11:Truth table of OR
NOR gates as AND gate:
From DeMorgan’s theorems:
(A+B)’ = A’B’
(A’+B’)’ = A’’B’’ = AB
So, give the inverted inputs to a NOR gate, obtain AND operation at output.
Figure-12:NOR gates as AND gate
F=(((C.B'.A)+(D.C'.A)+(C.B'.A))')'
To verify the truth table of half adder and full adder by using XOR and NAND gates respectively
and analyse the working of half adder and full adder circuit with the help of LEDs in simulator 1
and verify the truth table only of half adder and full adder in simulator 2.
Theory
Introduction
Adders are digital circuits that carry out addition of numbers. Adders are a key component of
arithmetic logic unit. Adders can be constructed for most of the numerical representations
like Binary Coded Decimal (BCD), Excess – 3, Gray code, Binary etc. out of these, binary
addition is the most frequently performed task by most common adders. Apart from addition,
adders are also used in certain digital applications like table index calculation, address decoding
etc.
Binary addition is similar to that of decimal addition. Some basic binary additions are shown
below.
Figure 3. Truth table, K Map simplification and Logic diagram for sum output of half adder
Figure 4. Truth table, K Map simplification and Logic diagram for sum output of half adder
Carry = AB
If A and B are binary inputs to the half adder, then the logic function to calculate sum S is Ex
– OR of A and B and logic function to calculate carry C is AND of A and B. Combining
these two, the logical circuit to implement the combinational circuit of half adder is shown below.
As we know that NAND and NOR are called universal gates as any logic system can be
implemented using these two, the half adder circuit can also be implemented using them. We
know that a half adder circuit has one Ex – OR gate and one AND gate.
Half Adder using NAND gates:
Five NAND gates are required in order to design a half adder. The circuit to realize half adder
using NAND gates is shown below.
2) Full Adder
Full adder is a digital circuit used to calculate the sum of three binary bits. Full adders are
complex and difficult to implement when compared to half adders. Two of the three bits are same
as before which are A, the augend bit and B, the addend bit. The additional third bit is carry bit
from the previous stage and is called 'Carry' – in generally represented by CIN. It calculates the
sum of three bits along with the carry. The output carry is called Carry – out and is represented
by Carry OUT.
The block diagram of a full adder with A, B and CIN as inputs and S, Carry OUT as outputs is
shown below.
Figure 8. Full Adder Block Diagram and Truth Table
Based on the truth table, the Boolean functions for Sum (S) and Carry – out (COUT) can be
derived using K – Map.
Figure 10. The K-Map simplified equation for sum is S = A'B'Cin + A'BCin' + ABCin
Figure 11. The K-Map simplified equation for COUT is COUT = AB + ACIN + BCIN
In order to implement a combinational circuit for full adder, it is clear from the equations
derived above, that we need four 3-input AND gates and one 4-input OR gates for Sum and three
2-input AND gates and one 3-input OR gate for Carry – out.
As mentioned earlier, a NOR gate is one of the universal gates and can be used to implement any
logic design. The circuit of full adder using only NOR gates is shown below.
To verify the truth table of half subtractor by using the ICs of XOR, NOT and AND gates and of
full subtractor by using the ICs of XOR, AND, NOT and OR gates respectively and
analyse the working of half subtractor and full subtractor circuit with the help of LEDs in
simulator 1 and verify the truth table only of half subtractor and full subtractor in simulator 2.
Theory
Introduction
Subtractor circuits take two binary numbers as input and subtract one binary number input
from the other binary number input. Similar to adders, it gives out two outputs, difference and
borrow (carry-in the case of Adder). There are two types of subtractors.
1) Half Subtractor
2) Full Subtractor
1) Half Subtractor
From the above truth table we can find the boolean expression.
Difference = A ⊕
B Borrow = A' B
From the equation we can draw the half-subtractor circuit as shown in the figure 3.
2) Full Subtractor
A full subtractor is a combinational circuit that performs subtraction involving three bits, namely
A (minuend), B (subtrahend), and Bin (borrow-in) . It accepts three inputs: A (minuend), B
(subtrahend) and a Bin (borrow bit) and it produces two outputs: D (difference) and Bout
(borrow out). The logic symbol and truth table are shown below.
D = A ⊕ B ⊕ Bin
Bout = A' Bin + A' B + B Bin
From the equation we can draw the Full-subtractor circuit as shown in the figure 6.
APPARATUS REQUIRED: IC’S 7400, 7402 & 7476 Digital Trainer & Connecting leads.
BRIEF 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 = 0 and S = 1 the flip-flop is switches to the stable
state where O/P is 1 i.e. SET. The I/P condition
is R = 1 and S = 0 the flip-flop is switched to the stable state where O/P is 0 i.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.
• 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
again goes low, Q retains or stores the last value of D. a D flip flop is a bistable circuit
whose D input is transferred to the output after a clock pulse is received.
CIRCUIT DIAGRAM:
SR Flip Flop
D Flip Flop
JK Flip Flop
T Flip Flop
PROCEDURE:
1. Connect the circuit as shown in fi gure.
2. Apply Vc c & ground signal to every IC.
3. Observe the input & output according to the truth table.
TRUTH TABL E:
SR F LIP FLOP:
Q
CLOCK S R n +1
1 0 0 NO CH ANGE
1 0 1 0
1 1 0 1
1 1 1 ?
D FL IPFLOP:
INPUT OU TPUT
0 0
1 1
JK FLIPFLOP
Q
CLOCK S R n +1
1 0 0 NO CH ANGE
1 0 1 0
1 1 0 1
1 1 1 Qn ’
T FLIP FLOP
Q
CLOCK S R n +1
1 0 1 NO CH ANGE
1 1 0 Qn ’
PRECAUTIONS:
APPARATUS REQUIRED: Digital trainer kit and 4 JK flip flop each IC 7476 (i.e dual JK flip flop)
and two AND gates IC 7408.
BRIEF THEORY: Counter is a circuit which cycle through state sequence. Two types of counter,
Synchronous counter (e.g. parallel) and Asynchronous counter (e.g. ripple). In Ripple counter same
flip- flop output to be used as clock signal source for other flip-flop. Synchronous counter use the
same clock signal for all flip-flop.
PIN CONFIGURATION:
LOGIC DIAGRAM:
4- Bit Asynchronous counter
PRECAUTIONS:
1. Make the connections according to the IC pin diagram.
2. The connections should be tight.
3. The Vcc and ground should be applied carefully at the specified pin only.
Q6. When two counters are cascaded, the overall MOD number is equal to the
of their individual MOD numbers.
Ans. Product.
Q7. A BCD counter is a .
Ans. decade counter.
Q8. What decimal value is required to produce an output at "X" ?
Ans.5.
Q9. How many AND gates would be required to completely decode ALL the states of a MOD-64
counter, and how many inputs must each AND gate have?
Brief Theory:-
A bidirectional shift register is one in which the data can beshifted either left or right. It can be
implemented by using gatelogic that enables the transfer of a data bit from one stage to thenext
stage to the right or to the left, depending on the level of acontrol line. A 4-bit bidirectional shift
register is shown inFigure below. A HIGH on the RIGHT / LEFT control input allows databits
inside the register to be shifted to the right, and a LOWenables data bits inside the register to be
shifted to theleft.
Procedure:-
PIN CONFIGURATION–
RESULT- 4-bit bidirectional shift register is studied and verified.
EXPERIMENT NO - 8
APPARATUS REQUIRED:-
Logic trainer kit, Counter ICs- 7490, IC - 7493 wires.
THEORY:
The counters four outputs are designated by the letter symbol Q with a numeric subscript equal to
the binary weight of the corresponding bit in the BCD counter circuits code. So for example, QA,
QB, QC and QD. The 74LS90 counting sequence is triggered on the negative going edge of the
clock signal, that is when the clock signal CLK goes from logic 1 (HIGH) to logic 0 (LOW).
The additional input pins R 1 and R2 are counter “reset” pins while inputs S 1 and S2 are “set” pins.
When connected to logic 1, the Reset inputs R 1 and R2 reset the counter back to zero, 0 (0000), and
when the Set inputs S1 and S2 are connected to logic 1, they Set the counter to maximum, or 9
(1001) regardless of the actual count number or position.
PROCEDURE:
RESULT:
Thus the Counters were designed and their truth table is verified.
PRECATIONS:
A Multiplexer (or a data selector) is a logic circuit that accepts several data inputs and allows only
one of them at a time to get through to the output. The selection of the desired data input is
controlled by the SELECT (or ADDRESS) INPUTS. Multiplexer means transmitting a large number
of information units over a smaller number of channels or lines. A digital multiplexer is a
combinational circuit that selects binary information from one of many input lines and directs it to a
single output line. The selection of a particular input line is controlled by a set of selection lines.
Normally there are 2n input line and n selection lines whose bit combination determine which input
is selected. Figure below shows the block diagram of a Multiplexer.
In this diagram the inputs and outputs are indicated by means of broad arrows to indicate that there
may be one or more lines. Depending upon the digital code applied at the SELECT inputs, one out of
the data sources is selected and transmitted to the single output channel. The Multiplexer becomes
enabled when the strobe signal is active LOW. The pin out of a 8:1 multiplexer IC 74150 is shown
above. The output of this circuit is the inverted input. This is a 16-pin DIP.
Function Table
INPUT OUTPUT
S1 S0 Y
0 0 D0 = D0 S1’ S0’
0 1 D1 = D1 S1’ S0
1 0 D2 = D2 S1 S0’
`1 1 D3 = D3 S1 S0
Y = D0 S1’ S0’ +D1 S1’ S0 +D2 S1 S0’ +D3 S1 S0
PIN DIAGRAM: CIRCUIT DIAGRAM FOR MULTIPLEXER:
Truth Table
INPUT OUTPUT
S1 S0 Y
0 0 D0
0 1 D1
1 0 D2
1 1 D3
PROCEDURE: -
CONCLUSION:
PRECAUTIONS:
APPARATUS REQUIRED :-
Logic trainer kit, IC- 74154, wires.
THEORY:
A Demultiplexer performs the reverse operation of a Multiplexer. It accepts a single input and
distributes it over several outputs. The SELECT input code determines to which output the data input
will be transmitted. The Demultiplexer becomes enabled when the strobe signal is active LOW.
This circuit can also be used as binary-to-decimal decoder with binary inputs applied at the select
input lines and the output will be obtained on the corresponding line. These devices are available as
2-line-to-4-line decoder, 3-line-to- 8-line decoder, 4-line-to-16-line decoder. The output of these
devices is active LOW. Also there is an active low enable/data input terminal available. Figure below
shows the block diagram of a Demultiplexer.
PIN CONFIGURATION:
FUNCTION TABLE:
S1 S0 INPUT
0 0 D0 = X S1’ S0
0 1 D1 = X S1’ S0
1 0 D2 = X S1 S0’
1 1 D3 = X S1 S0
Y = X S1’ S0 + X S1’ S0 + X S1 S0’ + X S1 S0
In this diagram the inputs and outputs are indicated by means of broad arrows to indicate that there
may be one or more lines. Depending upon the digital code applied at the SELECT inputs, one data
is transmitted to the single output channel out of many. The pin out of a 16:1 Demultiplexer IC
74154 is shown above. The output of this circuit is active low. This is a 24-pin DIP.
PIN DIAGRAM: CIRCUIT DIAGRAM:
TRUTH TABLE
INPUT OUTPUT
S1 S0 I/P D0 D1 D2 D3
0 0 0 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 1 0 0
1 0 0 0 0 0 0
1 0 1 0 0 1 0
1 1 0 0 0 0 0
1 1 1 0 0 0 1
PROCEDURE: -
CONCLUSION:
PRECAUTIONS: