De Lab Manual Ivsem
De Lab Manual Ivsem
De Lab Manual Ivsem
LAB MANUAL
DIGITAL ELCTRONICS
(EC-416-F)
IV SEM (ECS)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 1
DE LAB (EC‐416‐F)
CONTENTS
SR. PAGE
NAME OF EXPERIMENT
NO. NO.
Introduction to Digital Electronics lab- nomenclature of digital ICS,
1 specifications, study of the data sheet, concept of vcc and ground,
verification of the truth tables of logic gates using TTL ICS. 3-6
Implementation of the given Boolean function using logic gates in both sop
and pos forms.
2
7-8
Verification of state tables of RS, JK, T and D flip-flops using NAND &
3 nor gates.
9-11
Implementation and verification of decoder/de-multiplexer and encoder
4 using logic gates.
12-15
5 Implementation of 4x1 multiplexer using logic gates. 16-18
Implementation of 4-bit parallel adder using 7483 IC.
6
19-20
Design and verify the 4-bit synchronous counter.
7
21-24
8 Design and verify the 4-bit asynchronous counter. 25-27
9 To design and verify operation of half adder and full adder. 28-30
10 To design and verify operation of half subtractor. 31-32
To design & verify the operation of magnitude comparator.
11
33-34
12 To study and verify NAND as a universal gate. 35-36
13 To study 4 bit ALU(IC 74181). 37-39
14 Mini project 40-42
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 2
DE LAB (EC‐416‐F)
EXPERIMENT NO: 1
Aim: - Introduction to Digital Electronics Lab- Nomenclature of Digital Ics, Specifications,
Study of the Data Sheet, Concept of Vcc and Ground, Verification of the Truth Tables of
Logic Gates using TTL Ics.
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
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 3
DE LAB (EC‐416‐F)
1 1
3 3 1 2
2 2
OR AND NOT
1 1 3 1
3 3
2 2 2
NAND
NOR XOR
PIN CONFIGURATION:
7400(NAND) 7402(NOR)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 4
DE LAB (EC‐416‐F)
7486(EX-OR) 7432(OR)
PROCEDURE:
(a) Fix the IC’s on breadboard & give the supply.
(b) Connect the +ve terminal of supply to pin 14 & -ve to pin 7.
(c) Give input at pin 1, 2 & take output from pin 3. It is same for all except NOT &
NOR IC.
(d) For NOR, pin 1 is output & pin 2&3 are inputs.
(e) For NOT, pin 1 is input & pin 2 is output.
(f) Note the values of output for different combination of inputs & draw the
TRUTH TABLE.
OBSERVATION TABLE:
INPUTS OUTPUTS
A B A’ A+B (A+B)’ (A*B) (A*B )’ (A B)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 5
DE LAB (EC‐416‐F)
RESULT: We have learnt all the gates ICs according to the IC pin diagram.
PRECAUTIONS:
Ans. Gates are the digital circuits, which perform a specific type of logical operation.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 6
DE LAB (EC‐416‐F)
EXPERIMENT NO: 2
Aim: Implementation of the Given Boolean Function using Logic Gates in Both Sop
and Pos Forms.
APPARATUS REQUIRED: Power Supply, Digital Trainer, IC’s (7404, 7408, 7432) Connecting
leads.
BRIEF THEORY: Karnaugh maps are the most extensively used tool for simplification of Boolean
functions. It is mostly used for functions having up to six variables beyond which it becomes very
cumbersome. In an n-variable K-map there are 2ⁿ cells. Each cell corresponds to one of the combination of n
variable, since there are 2ⁿ combinations of n-variables. Gray code has been used for the identification of
cells.
LOGIC DIAGRAM
SOP form
POS Form
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 7
DE LAB (EC‐416‐F)
PROCEDURE:
(a) With given equation in SOP/POS forms first of all draw a K-map.
(b) Enter the values of the O/P variable in each cell corresponding to its Min/Max
term.
(c) Make group of adjacent ones.
(d) From group write the minimized equation.
(e) Design the ckt. of minimized equation & verify the truth table.
RESULT/CONCLUSION: Implementation of SOP and POS form is obtained with AND and OR gates.
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.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 8
DE LAB (EC‐416‐F)
EXPERIMENT NO: 3
Aim: Verification of State Tables of Rs, J-k, T and D Flip-Flops using NAND & NOR
Gates
APPARATUS REQUIRED: IC’ S 7400, 7402 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.
• 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 both 0s, both AND gates are disabled and Q retains its 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 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.
• 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, frequency dividers, and general binary addition devices. It can be made from a J-K flip-
flop by tying both of its inputs high.
CIRCUIT DIAGRAM:
SR Flip Flop D Flip Flop
PROCEDURE:
1. Connect the circuit as shown in figure.
2. Apply Vcc & ground signal to every IC.
3. Observe the input & output according to the truth table.
TRUTH TABLE:
SR FLIP FLOP:
CLOCK S R Qn+1
1 0 0 NO CHANGE
1 0 1 0
1 1 0 1
1 1 1 ?
D FLIPFLOP:
INPUT OUTPUT
0 0
1 1
JK FLIPFLOP
CLOCK S R Qn+1
1 0 0 NO CHANGE
1 0 1 0
1 1 0 1
1 1 1 Qn’
T FLIPFLOP
CLOCK S R Qn+1
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 10
DE LAB (EC‐416‐F)
1 0 1 NO CHANGE
1 1 0 Qn’
RESULT: Truth table is verified on digital trainer.
PRECAUTIONS:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 11
DE LAB (EC‐416‐F)
EXPERIMENT NO: 4
Aim:- Implementation and Verification of Decoder/De-Multiplexer and Encoder using
Logic Gates.
BRIEF THEORY:
ENCODER: An encoder is a device, circuit, transducer, software program, algorithm or person that
converts information from one format or code to another, for the purposes of standardization, speed,
secrecy, security, or saving space by shrinking size. An encoder has M input and N output lines. Out of M
input lines only one is activated at a time and produces equivalent code on output N lines. If a device output
code has fewer bits than the input code has, the device is usually called an encoder. For example Octal-to-
Binary Encoder take 8 inputs and provides 3 outputs, thus doing the opposite of what the 3-to-8 decoder
does. At any one time, only one input line has a value of 1. The figure below shows the truth table of an
Octal-to-binary encoder.
For an 8-to-3 binary encoder with inputs I0-I7 the logic expressions of the outputs Y0-Y2 are:
Y0 = I1 + I3 + I5 + I7
Y1= I2 + I3 + I6 + I7
Y2 = I4 + I5 + I6 +I7
DECODER: A decoder is a device which does the reverse operation of an encoder, undoing the encoding
so that the original information can be retrieved. The same method used to encode is usually just reversed in
order to decode. It is a combinational circuit that converts binary information from n input lines to a
maximum of 2n unique output lines. In digital electronics, a decoder can take the form of a multiple-input,
multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes
are different. e.g. n-to-2n, binary-coded decimal decoders. Enable inputs must be on for the decoder to
function, otherwise its outputs assume a single "disabled" output code word. In case of decoding all
combinations of three bits eight (23=8) decoding gates are required. This type of decoder is called 3-8
decoder because 3 inputs and 8 outputs. For any input combination decoder outputs are 1.
DEMULTIPLEXER: Demultiplexer means generally one into many. A demultiplexer is a logic circuit
with one input and many outputs. By applying control signals, we can steer the input signal to one of the
output lines. The ckt. has one input signal, m control signal and n output signals. Where 2n = m. It
functions as an electronic switch to route an incoming data signal to one of several outputs.
LOGIC DIAGRAM:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 12
DE LAB (EC‐416‐F)
1:4 Demux
PROCEDURE:
1) Connect the circuit as shown in figure.
2) Apply Vcc & ground signal to every IC.
3) Observe the input & output according to the truth table.
OBSERVATION TABLE:
RESULT: Encoder/ decoder and demultiplexer have been studied and verified.
PRECAUTIONS:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 14
DE LAB (EC‐416‐F)
Ans. The demultiplexer is the inverse of the multiplexer, in that it takes a single data input and n address
inputs. It has 2n outputs. The address input determine which data output is going to have the same value
as the data input. The other data outputs will have the value 0.
Q. 3 What do you understand by encoder?
Ans. An encoder or multiplexer is therefore a digital IC that outputs a digital code based on which of
its several digital inputs is enabled.
Q. 4 What is the main difference between decoder and demultiplexer?
Ans. In decoder we have n input lines as in demultiplexer we have n select lines.
Q. 5 Why Binary is different from Gray code?
Ans. Gray code has a unique property that any two adjacent gray codes differ by only a single bit.
Q. 6 Write down the method of Binary to Gray conversion.
Ans. Using the Ex-Or gates.
Q. 7 Convert 0101 to Decimal.
Ans. 5
Q. 8 Write the full form of ASCII Codes?
Ans. American Standard Code for Information Interchange.
Q.9. If a register containing 0.110011 is logically added to register containing 0.101010 what would be
the result?
Ans.111011
Q10.Binary code is a weighted code or not?
Ans. Yes
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 15
DE LAB (EC‐416‐F)
EXPERIMENT NO : 5
Aim: Implementation of 4x1 Multiplexer using Logic Gates.
APPARATUS REQUIRED: Power Supply, Digital Trainer, Connecting Leads, IC’s 74153(4x1
multiplexer).
BRIEF THEORY:
MULTIPLEXER: Multiplexer generally means many into one. A multiplexer is a circuit with many
Inputs but only one output. By applying control signals we can steer any input to the output .The fig. (1)
Shows the general idea. The ckt. has n-input signal, control signal & one output signal. Where 2n = m.
One of the popular multiplexer is the 16 to 1 multiplexer, which has 16 input bits, 4 control bits & 1 output
bit.
PIN CONFIGURATION;–
IC 74153 (4x1 multiplexer)
LOGIC DIAGRAM:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 16
DE LAB (EC‐416‐F)
PROCEDURE:
1. Fix the IC's on the bread board &give the input supply.
2. Make connection according to the circuit.
3. Give select signal and strobe signal at respective pins.
4. Connect +5 v Vcc supply at pin no 24 & GND at pin no 12.
5. Verify the truth table for various inputs.
OBSERVATION TABLE:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 17
DE LAB (EC‐416‐F)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 18
DE LAB (EC‐416‐F)
EXPERIMENT NO - 6
BRIEF THEOR - A 4-bit adder is a circuit which adds two 4-bits numbers, say, A and B. In addition, a
4-bit adder will have another single-bit input which is added to the two numbers called the carry-in (Cin).
The output of the 4-bit adder is a 4-bit sum (S) and a carry-out (Cout) bit.
PIN CONFIGURATION–
Pin Diagram of IC 7483
IC 7483
LOGIC DIAGRAM:-
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 19
DE LAB (EC‐416‐F)
OBSERVATION TABLE –
Truth table of 4-bit parallel adder
PROCEDURE –
a) Make the connections as per the logic diagram.
b) Connect +5v and ground according 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.
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.
Ans. 4 bits.
Q10 Can you obtain subtractor using parallel adder?
Ans. Yes
EXPERIMENT NO :7
Aim: – Design, and Verify the 4-Bit Synchronous Counter
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:
Dual JK Master Slave Flip Flop with clear & preset
LOGIC DIAGRAM:
4-Bit Synchronous counter
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 21
DE LAB (EC‐416‐F)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 22
DE LAB (EC‐416‐F)
OBSERVATION TABLE:
Truth Table
States Count
04 03 02 01
0 0 0 0 0
0 0 0 1 1
0 0 1 0 2
0 0 1 1 3
0 1 0 0 4
0 1 0 1 5
0 1 1 0 6
0 1 1 1 7
1 0 0 0 8
1 0 0 1 9
1 0 1 0 10
1 0 1 1 11
1 1 0 0 12
1 1 0 1 13
1 1 1 0 14
1 1 1 1 15
PROCEDURE:
a) Make the connections as per the logic diagram.
b) Connect +5v and ground according 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.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 23
DE LAB (EC‐416‐F)
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.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 24
DE LAB (EC‐416‐F)
EXPERIMENT NO: 8
Aim: – Design, and Verify the 4-Bit Asynchronous Counter.
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
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 25
DE LAB (EC‐416‐F)
PROCEDURE:
a) Make the connections as per the logic diagram.
b) Connect +5v and ground according 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.
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.
Q.1 How many flip-flops are required to make a MOD-32 binary counter?
Ans. 5.
Q.2 The terminal count of a modulus-11 binary counter is ________.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 26
DE LAB (EC‐416‐F)
Ans.1010.
Q.3 Synchronous counters eliminate the delay problems encountered with asynchronous counters
because the:
Ans. Input clock pulses are applied simultaneously to each stage.
Q4. Synchronous construction reduces the delay time of a counter to the delay of:
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?
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 27
DE LAB (EC‐416‐F)
EXPERIMENT NO: 9
Aim:- To Design &Verify Operation of Half Adder &Full Adder.
BRIEF THEORY: We are familiar with ALU, which performs all arithmetic and logic operation but
ALU doesn’t perform/ process decimal no’s. They process binary no’s.
Half Adder: It is a logic circuit that adds two bits. It produces the O/P, sum & carry. The Boolean
equation for sum & carry are:
SUM = A + B
CARRY = A. B
Therefore, sum produces 1 when A&B are different and carry is 1when A&B are 1. Application of Half
adder is limited.
Full Adder: It is a logic circuit that can add three bits. It produces two O/P sum & carry. The Boolean
Equation for sum & carry are:
SUM = A + B + C
CARRY = A.B + (A+B) C
Therefore, sum produces one when I/P is containing odd no’s of one & carry is one when there are two or
more one in I/P.
LOGIC DAIGRAM:
Half Adder Full Adder
PROCEDURE:
(a) Connect the ckt. as shown in fig. For half adder.
(b) Apply diff. Combination of inputs to the I/P terminal.
(c) Note O/P for Half adder.
(d) Repeat procedure for Full wave.
(e) The result should be in accordance with truth table.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 28
DE LAB (EC‐416‐F)
OBSERVATION TABLE:
HALF ADDER:
INPUTS OUTPUT
A B S C
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
FULL ADDER:
INPUTS OUTPUTS
A B C S CARRY
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
RESULT: The Half Adder & Full Adder ckts. are verified.
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.
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 29
DE LAB (EC‐416‐F)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 30
DE LAB (EC‐416‐F)
EXPERIMENT NO :10
Aim:- To Study &Verify Half Subtractor.
BRIEF THEORY: A logic circuit for the subtraction of B(subtrahend) from A (minuend) where A& B
are 1 bit numbers is referred as half- sub tractor.
LOGIC DIAGRAM :
TRUTH TABLE:
PROCEDURE:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 31
DE LAB (EC‐416‐F)
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 32
DE LAB (EC‐416‐F)
EXPERIMENT NO: 11
Aim: - To Design & Verify the Operation of Magnitude Comparator
APPARATUS REQUIRED: Power Supply, Digital Trainer Kit., Connecting Leads, and IC’s (7404,
7408, and 7486).
BRIEF THEORY: Comparator compares the value of signal at the input. It can be designed to
compare many bits. The adjoining figure shows the block diagram of comparator. Here it receives to two
2-bit numbers at the input & the comparison is at the output.
CIRCUIT DIAGRAM:
Comparator
1
3 1 2
2
1
3
2
4
6 3 4
5
PROCEDURE:
a. Make the connections according to the circuit diagram.
b. The output is high if both the inputs are equal.
c. Verify the truth table for different values.
OBSERVATION TABLE:
PRECAUTIONS:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 33
DE LAB (EC‐416‐F)
Q1.What is comparator?
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 34
DE LAB (EC‐416‐F)
EXPERIMENT NO:12
Aim: - To Study and Verify NAND as a Universal Gate.
BRIEF THEORY: NAND OR NOR sufficient for the realization of any logic expression. because of this
reason, NAND and NOR gates are known as UNIVERSAL gates.
LOGIC DIAGRAM:
TRUTH TABLE:
NAND GATE AS INVERTER: The circuit diagram of implementation of NAND gate as inverter.
A Y
0 1
1 0
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 35
DE LAB (EC‐416‐F)
A B Y
0 0 0
0 1 1
1 0 1
1 1 1
PROCEDURE:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 36
DE LAB (EC‐416‐F)
EXPERIMENT NO:13
AIM: - To Study 4 Bit ALU(IC 74181).
APPARATUS REQUIRED: IC 74181, etc.
BRIEF THEORY:
The 74181 is a 7400 series medium-scale integration (MSI) TTL integrated circuit, containing the
equivalent of 75 logic gates and most commonly packaged as a 24-pin DIP. The 4-bit wide ALU can
perform all the traditional add / subtract / decrement operations with or without carry, as well as AND /
NAND, OR / NOR, XOR, and shift. Many variations of these basic functions are available, for a total of
16 arithmetic and 16 logical operations on two four-bit words. Multiply and divide functions are not
provided but can be performed in multiple steps using the shift and add or subtract functions. Shift is not
an explicit function but can be derived from several available functions including (A+B) plus A.
IC 74181
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 37
DE LAB (EC‐416‐F)
PROCEDURE:
1. Connections are made as shown in the Circuit diagram.
2. Change the values of the inputs and verify at least 5 functions
given in the function table
PRECAUTIONS:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 38
DE LAB (EC‐416‐F)
Ans. Machine codes are in binary, mnemonic codes are in shorthand English.
Q.3Which of the following buses is primarily used to carry signals that direct other ICs to find out what
type of operation is being performed?
Q.4 Which of the following are the three basic sections of a microprocessor unit?
Q.6 A register in the microprocessor that keeps track of the answer or results of any arithmetic or logic
operation is the:
Ans. Accumulator.
Ans.1971
Q.8 What type of circuit is used at the interface point of an output port?
Ans. Latch.
Q.9 What type of circuit is used at the interface point of an input port?
Q.10 The register in the 8085A that is used to keep track of the memory address of the next op-code to
be run in the program is the:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 39
DE LAB (EC‐416‐F)
EXPERIMENT NO:14
LIST OF MINI PROJECTS
1. IR Remote Switch
2. Clap Switch
3. Water-Level Controller
4. LED-Based Message Display
5. Ultra-Bright LED Lamp
6. Ding-Dong Bell Infrared Cordless Headphone
7. Mobile Phone Battery Charger
8. Telephone Number Display
9. Automatic Night Lamp With Morning Alarm
10. Three-Colour Display Using Bi-Colour LEDs
11. Remote-Operated Musical Bell
12. Simple Telephone Ring Tone Generator
13. Anti-Theft Alarm For Bikes
14. Automatic Speed-Controller For Fans and Coolers
15. Digital Stop Watch
16. Power-Supply Failure Alarm
17. Dark Room Timer
18. Remote-Controlled Power-Off Switch
19. Simple Low-Cost Digital Code Lock
20. Number Guessing Game
21. Fire Alarm Using Thermistor
22. Simple Analogue To Digital Converter
23. PC-Based 7-Segment Rolling Display
24. IR Burglar Deterrent
25. Variable Power Supply Using a Fixed-Voltage Regulator IC
26. Digital Speedometer
27. Heat-Sensitive Switch
28. Fully Automatic Emergency Light
29. Running Message Display
30. School/College Quiz Buzzer
31. Digital Dice With Numeric Display
32. Dancing Lights
33. Ready -To-Use Object Counter Laptop Protector
34. PC Based Digital Clock
35. Fancy Christmas Light
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 40
DE LAB (EC‐416‐F)
AN EXAMPLE
BRIEF THEORY: Here is a simple circuit for (T1 and T2) and two timers 555 ICs (IC1 and IC2).
Both IC1 and IC2 are wired in astable multivibrator mode. Timer IC1 produces low frequency, while
timer IC2 produces high frequency. As a result, a beeping tone is generated when the liquid tank is full.
Initially, when the tank is empty, transistor T1 does not conduct. Consequently, transistor T2 conducts
and pin 4 of IC1 is low. This low voltage disables IC1 and it does not oscillate. The low output of IC1
disables IC2 and it does not oscillate. As a result, no sound is heard from the speaker. But when the tank
gets filled up, transistor T1 conducts. Consequently, transistor T2 is cut off and pin 4 of IC1 becomes
high. This high voltage enables IC1 and it oscillates to produce low frequencies at pin 3. This low-
frequency output enables IC2 and it also oscillates to produce high frequencies. As a result, sound is
produced from the speaker. Using preset VR1 you can control the volume of the sound from the speaker.
The circuit can be powered from a 9V battery or from mains by using a 9V power adaptor.
CIRCUIT DIAGRAM:
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 41
DE LAB (EC‐416‐F)
PROCEDURE: Assemble the circuit on a general purpose PCB and enclose in a suitable cabinet. Install
two water-level probes using metal strips such that one touches the bottom of the tank and the other
touches the maximum level of the water in the tank. Interconnect the sensor and the circuit using a
flexible wire.
PRECAUTIONS:
1) Make the connections according to the Circuit diagram using soldering iron
2) The connections should be tight.
3) The Vcc and ground should be applied carefully at the specified pin only
DEPARTMENT OF ELECTRONICS & COMPUTER ENGINEERING
DRONACHARA COLLEGE OF ENGNEERING, GURGAON 42