Digital Electronics Laboratory Manual
Digital Electronics Laboratory Manual
DEPARTMENT OF CO/IT/AI&DS/E&TC
Year : 20 TO 20
Subject : __________________________________________________
CERTIFICATE
This is to Certify that Mr./ Miss.________________________________________
of Class : _________________________PRN No. :__________________________
Successfully completed his/her practical’s for the lab course in the subject of
______________________________________________for the academic year
202 - 202 and the same has been examined by the Practical – In –charge
Date : | | 202
INDEX
Sr. Date Title of Experiment Page Signature
No. No.
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
1
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
VISION:
To transform rural youth power into knowledge, skilled and competent professionals
MISSION:
2
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
2. Design, test and implement electronic systems using modern tools and technologies.
4. Communicate effectively and function well as a team member and be able to manage
projects in a multi-disciplinary environment.
5. Pursue lifelong learning in the broadest context of ever advancing technological change and
the needs of time.
3
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
4
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
QUALITY POLICY
QUALITY OBJECTIVES
To improve overall development of student.
5
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Experiment No: 1 Study of Logic gates and their ICs and universal gates. Page
AIM: Study of Logic gates and their ICs and universal gates.
Objective:
1. To study the basic logic gates: AND, OR, NOT, NAND, NOR, XOR, XNOR.
2. To verify their truth tables using ICs.
3. To verify that NAND and NOR gates are universal gates.
Apparatus Required:
Theory:
Logic gates are the building blocks of Digital Electronics.
Each gate performs a basic logic function:
6
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Truth Tables:
(i) Basic Gates:
A B AND OR NAND NOR XOR XNOR
0 0 0 0 1 1 0 1
0 1 0 1 1 0 1 0
1 0 0 1 1 0 1 0
1 1 1 1 0 0 0 1
7
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
OR using NOR:
Y = ((A + B)’)’ = A + B
AND using NOR:
Y = ((A’) + (B’))’ = A·B
Circuit Diagrams:
8
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Procedure:
1. Connect the IC on the breadboard carefully.
2. Give +5V supply to Vcc and GND to ground pins.
3. Connect inputs A and B to switches or logic inputs.
4. Observe output using LED or logic probe.
5. Verify output with the truth table.
6. Repeat for all the gates and universal gate combinations.
Observations:
Result:
1. Truth tables for all logic gates were verified successfully.
2. NAND and NOR gates were proved to be universal gates.
Conclusion:
All basic logic gates and their operations were studied using ICs. It is verified that NAND and NOR
gates can be used to implement any other gate, proving they are universal logic gates.
9
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
AIM: Implement AND, OR, NOT, XOR, XNOR using NAND gates.
Objective:
To design and verify the logic circuits of AND, OR, NOT, XOR, and XNOR gates using only
NAND gates.
Apparatus Required:
Sr. No. Component IC Number Quantity
1 NAND Gate IC 7400 1
2 Breadboard – 1
3 Connecting wires – As required
4 Power supply (5V DC) – 1
5 LEDs / Logic probe – As required
Theory:
The NAND gate is a universal gate — meaning all other logic functions can be implemented using
only NAND gates.
Y= (A⋅B) ′Y = (A . B)'Y=(A⋅B)′
10
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Truth Tables:
Circuit Description:
11
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
2. AND Gate: Output of one NAND gate goes into another NAND gate configured as inverter.
3. OR Gate: Invert both inputs using NANDs and feed them to a third NAND.
Procedure:
1. Connect IC 7400 (NAND gate) on breadboard.
2. Give Vcc = +5V to pin 14 and GND to pin 7.
12
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Observation Table:
Record outputs for all input combinations and compare with theoretical values.
Result:
All the logic gates (AND, OR, NOT, XOR, and XNOR) were successfully implemented and
verified using only NAND gates.
Conclusion:
The NAND gate is verified as a universal logic gate since it can be used to implement all basic and
derived logic functions.
13
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Implement AND, OR, NOT, XOR, XNOR using NOR
Experiment No: 3 Page
gates.
AIM: Implement AND, OR, NOT, XOR, XNOR using NOR gates..
Objective:
To design and verify the logic circuits of AND, OR, NOT, XOR, and XNOR gates using only
NOR gates.
Apparatus Required:
Theory:
The NOR gate is also a universal gate, meaning we can implement all other logic functions using
only NOR gates.
Y=(A+B)′Y = (A + B)'Y=(A+B)′
14
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Truth Tables:
Circuit Description:
15
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
2. OR Gate: One NOR gate gives (A + B)’, next NOR gate inverts it.
3. AND Gate: Two NOR gates used as NOT gates for A and B, and one more NOR gate to
combine outputs.
Procedure:
1. Place IC 7402 (NOR gate) on the breadboard.
16
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Observation Table:
Record the observed output for each input combination and compare it with theoretical values.
Result:
All the basic and derived logic gates (AND, OR, NOT, XOR, and XNOR) were successfully
implemented and verified using only NOR gates.
Conclusion:
It is verified that the NOR gate is a universal gate, as it can be used to construct all other logic
gates.
17
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Objective
1. To verify De Morgan’s first law: (A⋅B)′=A′+B′(A . B)' = A' + B'(A⋅B)′=A′+B′.
2. To verify De Morgan’s second law: (A+B)′=A′⋅B′(A + B)' = A' . B'(A+B)′=A′⋅B′.
3. To implement both laws using (a) basic gates (AND, OR, NOT) and (b) only NAND or only
NOR gates, and compare outputs.
Apparatus / Components
Breadboard
Power supply +5 V DC
ICs: 7408 (AND), 7432 (OR), 7404 (NOT) — or equivalently 7400 (NAND) and 7402
(NOR) if implementing with only NAND/NOR
LEDs (with 330Ω resistors) or logic probes (2)
Push switches or toggle switches for inputs A and B (2)
Connecting wires/jumpers
(Optional) IC datasheets for pin numbers
18
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
We will prove both by (a) building left-hand and right-hand circuits and comparing outputs
(LEDs/logic probe) for all input combinations, and (b) truth tables.
Implementation — Circuits
A. Implementation with basic gates (AND, OR, NOT)
Circuit LHS1 = NAND of A and B followed by NOT: simpler to use a NOT on output of
AND then observe (or directly use NAND as (A·B)')
If using basic gates: connect AND gate output to NOT gate → output = (A·B)'
Wire LEDs (with resistors) to the outputs of LHS and RHS for each law (label them LHS1, RHS1,
LHS2, RHS2).
19
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
(If you prefer, implement NAND-only for first law and NOR-only for second law — both
demonstrate universality and De Morgan.)
Pin / IC suggestions
7408 (AND): Vcc pin 14, GND pin 7
7432 (OR): Vcc 14, GND 7
7404 (NOT): Vcc 14, GND 7
7400 (NAND), 7402 (NOR): same Vcc/GND pins
(If you want, I can give exact pin numbers for each gate within the IC packages for drawing.)
A B (A·B)' (LHS1) A' B' A' + B' (RHS1) Match? (A+B)' (LHS2) A'·B' (RHS2) Match?
0 0 1 1 1 1 YES 1 1 YES
0 1 1 1 0 1 YES 0 0 YES
1 0 1 0 1 1 YES 0 0 YES
1 1 0 0 0 0 YES 0 0 YES
You should observe identical outputs for LHS and RHS columns in each law.
Procedure (step-by-step)
1. Place ICs on the breadboard and connect Vcc (+5V) and GND properly.
2. Connect input switches for A and B (0 = open or ground, 1 = +5V through pull-up/pull-
down as per your wiring). Use debounced switches or stable logic levels.
3. Basic-gate build for first law:
o Connect A and B to AND gate output.
20
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
o Feed AND output into NOT gate → wire LED to this output (label LHS1).
o Separately, feed A to NOT → A', feed B to NOT → B', then OR(A',B') → wire LED
(RHS1).
4. Toggle A,B through all 4 combinations and record states of LHS1 and RHS1 (LED on/off or
logic probe high/low). Fill truth-table.
5. Basic-gate build for second law:
o Connect A and B to OR gate, feed OR output to NOT → LED (LHS2).
o Feed A to NOT → A', B to NOT → B', then AND(A',B') → LED (RHS2).
6. Toggle inputs through all combinations and record LHS2 and RHS2. Fill truth-table.
7. Optional: Repeat both verifications using only NAND gates and only NOR gates to show
universality:
o For NAND-only (first law): A' = NAND(A,A), B' = NAND(B,B), RHS1 =
NAND(A',B') and LHS1 = NAND(A,B).
o For NOR-only (second law): A' = NOR(A,A), B' = NOR(B,B), RHS2 = NOR(A',B')
and LHS2 = NOR(A,B).
8. Confirm outputs match for all input combos.
Observations
For every combination of A and B, outputs of LHS and RHS for each law are identical.
Record LED states (ON = 1, OFF = 0) in the table above.
Result
De Morgan’s laws (A⋅B)′=A′+B′(A. B)' = A' + B'(A⋅B)′=A′+B′ and (A+B)′=A′⋅B′(A + B)' =
A' . B'(A+B)′=A′⋅B′ are verified experimentally using logic gates.
They also hold when implemented using only NAND or only NOR gates, confirming the
logical equivalences and the universality of NAND/NOR.
Conclusion:
The practical verifies De Morgan’s theorems for all input combinations. Implementation using both
basic gates and universal gates (NAND/NOR) shows the identities hold in real logic circuits and
confirms that inversion distributes across AND/OR as De Morgan states.
21
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Implement the given Boolean expressions using minimum
Experiment No: 5 Page 1/10
number of gates.
Aim: - Implement the given Boolean expressions using minimum number of gates.
APPARATUS REQUIRED:
Breadboard
Connecting wires
Power supply (5V)
Logic ICs (as required):
o IC 7408 – AND gate
o IC 7432 – OR gate
o IC 7404 – NOT gate
o IC 7400 – NAND gate (optional for NAND-only implementation)
o IC 7402 – NOR gate (optional)
THEORY:
A Boolean expression can often be implemented using fewer gates by simplifying it using Boolean
algebra rules and Karnaugh Maps (K-maps).
The simplified expression reduces the number of gates, ICs, propagation delay, and overall cost of
the circuit.
Universal gates (NAND / NOR) can implement any Boolean function and often reduce gate count.
PROCEDURE:
1. Write the given Boolean expressions.
2. Simplify each expression using Boolean algebra and/or Karnaugh Map (K-map).
3. Draw the simplified logic circuit.
4. Implement the circuit on the breadboard using ICs.
5. Apply all combinations of inputs and note the outputs in the truth table.
6. Verify the correctness of the implemented circuit.
22
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
EXAMPLE IMPLEMENTATIONS
Example 1
Given Expression:
F=AB+AC F = AB + AC F=AB+AC
Simplification:
F=A(B+C) F = A(B + C) F=A(B+C)
Minimum Gates Required:
1 OR gate (2-input)
1 AND gate
Logic Diagram:
A → AND → F
B,C → OR → AND input
Example 2
Given Expression:
F=A′B+AB′F = A'B + AB'F=A′B+AB′
Simplification:
F=A⊕B F = A ⊕B F=A⊕B
Minimum Gates Required:
1 XOR gate
(or 4 NAND gates if using NAND-only)
Logic Diagram:
A,B → XOR → F
23
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Example 3
Given Expression:
F=Σ(1,3,5,7)
F = ∑(1,3,5,7)
F=Σ(1,3,5,7)
K-map Simplification:
F=B⊕C
24
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
TRUTH TABLE :
A B C F
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 0
OBSERVATION:
The output observed from the hardware implementation matches the truth table of the simplified
Boolean expression.
RESULT:
The given Boolean expressions were successfully simplified and implemented using the minimum
number of logic gates. The output was verified using the truth table.
CONCLUSION:
Simplifying Boolean expressions before implementation reduces gate count, hardware complexity,
power consumption, and propagation delay. The experiment demonstrates practical gate-level
optimization.
25
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Experiment No: 6 Design and implement Half adder and Full adder Page 1/4
AIM:
2. Apparatus Required
Sr. No. Equipment / Component Specification / IC No. Quantity
1 AND Gate IC 7408 1
2 OR Gate IC 7432 1
3 XOR Gate IC 7486 1
4 NOT Gate (if required) IC 7404 1
5 LED 5V 2
6 Resistor 330 Ω 2
7 Breadboard – 1
8 Connecting wires – As required
9 DC Power Supply +5V 1
3. Theory
Half Adder
A Half Adder is a combinational circuit that performs addition of two single-bit binary numbers.
It produces two outputs:
Sum (S)
Carry (C)
Truth Table:
A B Sum (S) Carry (C)
0 0 0 0
0 1 1 0
1 0 1 0
1 1 0 1
Boolean Expressions:
26
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Logic Diagram:
Full Adder
A Full Adder is a combinational circuit that adds three binary inputs (A, B, Cin) and produces:
Sum (S)
Carry (Cout)
Truth Table:
A B Cin Sum (S) Cout
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
Boolean Expressions:
Sum = A ⊕ B ⊕ Cin
Carry = AB + ACin + BCin
27
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
4. Logic Diagram
(a) Half Adder
5. Circuit Diagram
(Draw neatly— use proper logic symbols for AND, OR, XOR.)
28
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
6. Procedure
1. Connect +5V and GND to all ICs (Pin 14 → Vcc, Pin 7 → GND).
2. Connect inputs (A, B, Cin) using switches or jumpers.
3. For Half Adder:
o Connect A, B to inputs of XOR gate (7486) → Sum output.
o Connect A, B to inputs of AND gate (7408) → Carry output.
4. For Full Adder:
o Implement as two Half Adders + OR gate:
A, B → First Half Adder → S₁, C₁
S₁, Cin → Second Half Adder → S, C₂
C₁, C₂ → OR gate → Cout
5. Connect output LEDs to Sum and Carry through 330 Ω resistors.
6. Apply all combinations of input and verify the output with the truth table.
7. Observations
29
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
8. Result
Half Adder and Full Adder circuits are successfully designed and implemented using basic
logic gates.
The experimental results match the theoretical truth table.
9. Applications
Used in Arithmetic Logic Units (ALU).
Binary addition in digital computers.
Basis for designing adders, subtractors, and multipliers.
10. Conclusion
The Half Adder and Full Adder circuits were successfully implemented using logic gates. The
outputs were verified and found correct as per Boolean expressions and truth tables.
30
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
1. Aim
To design, implement and test a 4:1 Multiplexer using basic logic gates / IC 74153.
2. Apparatus Required
Sr. No. Component / Equipment Specifications / IC No.
1 AND Gate IC 74LS08 / 74HC08
2 OR Gate IC 74LS32 / 74HC32
3 NOT Gate IC 74LS04 / 74HC04
4 Multiplexer IC (optional) 74153 (Dual 4:1 MUX)
5 LEDs 5 mm + 330Ω resistors
6 Breadboard & Wires —
7 DC Power Supply +5V (TTL)
3. Theory
A Multiplexer (MUX) is a combinational circuit that selects one input from multiple inputs and
routes it to a single output line.
A 4:1 MUX has 4 input lines (I0–I3), 2 select lines (S1, S0), and one output Y.
The select inputs decide which data input is transferred to the output.
Truth Table
S1 S0 Selected Input Output Y
0 0 I0 I0
0 1 I1 I1
1 0 I2 I2
1 1 I3 I3
31
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
4. Boolean Expression
32
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
7. Procedure
1. Connect 5V power supply to all ICs (Vcc to pin 14, GND to pin 7 for TTL ICs).
2. Connect NOT gates to generate S1' and S0'.
3. Connect the corresponding NOT outputs and input lines to each AND gate as per Boolean
equation.
4. Combine AND gate outputs using an OR gate to generate Y.
5. Connect LEDs to I0–I3 and Y to observe selected output.
6. Apply all combinations of select inputs (00, 01, 10, 11).
7. Verify that the output Y follows the selected input.
8. Record the observations.
8. Observation Table
I3 I2 I1 I0 S1 S0 Expected Y Observed Y
0 0 0 1 0 0 1
0 0 1 0 0 1 1
0 1 0 0 1 0 1
1 0 0 0 1 1 1
9. Result
The 4:1 Multiplexer was successfully designed and implemented using logic gates / IC 74153.
The output Y correctly follows the selected input as per the truth table.
33
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Design and implement 1:4 Demultiplexer. Study of IC
Experiment No: 8 Page
74139
1. Aim
Design and implement a 1-to-4 demultiplexer and study the operation and pin-out of the 74139
(dual 2→4 decoder / demultiplexer) IC.
2. Components / Apparatus
Sr.
Item Example / Part No. Qty
No.
74LS139 / 74HC139 /
1 Dual 2→4 decoder / demux IC 1
SN74xx139
Hex inverter (if required for active-high
2 7404 / 74HC04 1
outputs)
3 Breadboard — 1
4 DC power supply +5 V (for TTL) 1
4 (for
5 LEDs 5 mm
outputs)
6 Resistors 330 Ω (for each LED) 4
7 Toggle switches / jumpers for D, S1, S0 as required
8 Connecting wires — as required
9 Logic probe (optional) — 1
3. Theory (short)
A 1:4 demultiplexer routes a single data input D to one of four outputs Y0..Y3 depending on select
lines S1 (MSB) and S0 (LSB).
34
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
The 74139 is a dual 2→4 decoder/demultiplexer: it contains two independent sections (call them
Section A and Section B). Each section has:
Note: Because the 74139 outputs are active-LOW, the selected output goes LOW when enabled.
For active-HIGH demux outputs, either invert the 74139 outputs (using 7404) or interpret LOW as
the asserted output.
35
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 D
0 1 0 0 D 0
1 0 0 D 0 0
1 1 D 0 0 0
With 74139 (active-LOW outputs), the actual outputs will be inverted: Yk' = 0 for selected output
when enabled and D=1 (or when enable indicates data). See implementation notes below.
Important: Because outputs are active LOW, to display output with LEDs in conventional active-
HIGH style (LED ON when output asserted), you can connect LED anode to +5V via resistor and
LED cathode to the 74139 output pin. The LED will light when output = LOW (current flows from
+5V through resistor → LED → 74139 output to GND). (This is normal for active-LOW outputs;
take care with polarity and current limits.)
36
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
1. Invert the 74139 outputs with hex inverter (7404 or 74HC04): feed pins 4–7 to 4 of the
7404 inputs; outputs from 7404 are active HIGH and can drive LEDs normally. (Simple,
reliable.)
2. Or invert E and invert outputs logically (less common). Best practice: use 7404 on outputs.
Use Method A wiring, but feed each 74139 output (pins 4–7) into an inverter (7404) input;
take inverted outputs from the 7404 to drive LEDs or downstream logic.
37
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
8. Procedure (step-by-step)
1. Power & placement
o Insert 74139 on breadboard; connect Vcc (Pin16) → +5V, GND (Pin8) → 0V.
o If using 7404 for inversion, place it and wire Vcc/GND (7404 pin14 → +5V, pin7 →
GND for 14-pin 7404).
2. Inputs
o Connect S0 to Pin2 and S1 to Pin3 (section A). Use toggle switches or jumpers to
apply 0/1.
o Prepare Data input D (0 or 1) using a switch or jumper.
3. Enable wiring
o For active-LOW output operation (Method A): drive Pin1 with NOT(D) (use a 7404
inverter between D and Pin1, or wire Pin1 to the opposite logic level manually).
o If you don't have inverter, you can toggle enable and D appropriately to observe
effect.
4. Outputs
o Connect LEDs (with 330 Ω resistors) to pins 4–7.
If showing active-LOW directly: connect LED anode → +5V via 330 Ω,
cathode → 74139 output pin. LED lights when output = 0.
If using 7404 to invert outputs (active-HIGH): connect LED anode → 7404
output via resistor → LED cathode → GND (normal polarity).
5. Test
o For each combination of S1,S0 (00, 01, 10, 11), set D = 1 and verify the
corresponding output becomes active (LOW if not inverted, HIGH if inverted).
o Set D = 0 and verify no output is asserted (all outputs inactive: HIGH for 74139
outputs).
6. Record observations (use table below).
38
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
9. Result
On following the wiring and procedure, the 74139 section correctly demultiplexed the data
input to the selected output: when D=1 and S1,S0 set to a combination, the addressed output
became active (active-LOW at 74139 output, or active-HIGH after inversion).
When D=0, no outputs were asserted (all outputs inactive).
Conclusion:
39
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Design of 3-bit synchronous counter using 7473 and required
Experiment No: 9 Page
gates
AIM
Design of 3-bit synchronous counter using 7473 and required gates
J0 = 1, K0 = 1
J1 = Q0, K1 = Q0
J2 = Q1·Q0,K2 = Q1·Q0
Because for JK flip-flops: J=K=1 → toggle; J=1,K=0 → set; J=0,K=1 → reset; J=K=0 → no
change. (Use the JK excitation behavior when deriving inputs.)
40
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
For FF0 (LSB): tie J0 = K0 = HIGH (logic 1). (This makes Q0 toggle each clock.)
For FF1: J1 = K1 = Q0.
For FF2: J2 = K2 = Q1 · Q0 (one 2-input AND gate required).
J0 = 1
K0 = 1
J1 = Q0
K1 = Q0
J2 = Q1 AND Q0
K2 = Q1 AND Q0
41
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
7473: two ICs (each contains two JK flip-flops) — to realize 3 flip-flops (one flip-flop on
the second IC unused).
7408 (2-input AND) — one gate package (can use a single gate inside a 7408 IC; 7408
contains 4 independent 2-input ANDs).
Total external gates: 1 two-input AND (plus wiring and pull-ups). The 7473 provides JK
functionality so no other gates for J/K are required.
42
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
PROCEDURE (Step-by-Step)
1. Place two 7473 ICs and one 7408 on the breadboard. Connect VCC and GND on each IC to
+5 V and GND. Add decoupling caps. Alldatasheet
2. Tie each CLR pin HIGH via 10 kΩ pull-ups. Optionally add a pushbutton to pull CLR LOW
for global reset.
3. Tie the clock pins of the three flip-flops together (use the CLK pins for the three flip-flops in
the two 7473 chips). Connect clock source (pushbutton with debouncing or square-wave
generator). Remember the 7473 is negative-edge triggered (output changes at falling edge).
Alldatasheet
4. Connect J0 and K0 to HIGH (+5 V) so Q0 toggles on every falling clock edge.
5. Connect J1 and K1 to Q0 (wire Q0 output to J1 and K1).
6. Connect a 2-input AND gate (one gate of 7408) with inputs Q1 and Q0; feed its output to J2
and K2.
7. Put LEDs on Q0, Q1, Q2 via 330 Ω resistors to observe the count.
8. Apply power. Start clock pulses and observe LED sequence; record the observed sequence
and verify it matches the truth table.
43
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
OBSERVATION
LEDs for Q2,Q1,Q0 should show the binary count sequence 000 → 001 → 010 → ... → 111
→ 000 on successive falling clock edges.
If any unwanted states or glitches occur, check: clock debouncing, that CLR is not floating,
and that setup/hold times are respected (change inputs only when clock is not active).
RESULT
A 3-bit synchronous binary up-counter was designed and implemented using two 7473 dual JK flip-
flop ICs and one 2-input AND gate. The counter advances binary values 0–7 synchronously on each
falling edge of the clock.
Conclusion:
44
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Study of IC 7490, 7492, 7493 and designing mod-n
Experiment No: 10 Page
counters using these.
Aim: Study of IC 7490, 7492, 7493 and designing mod-n counters using these.:
Aim
1. To study the operation and pin configuration of ICs 7490, 7492, and 7493.
2. To implement and test Mod-N counters (examples: Mod-2, Mod-5, Mod-10, Mod-12, Mod-
16) using these ICs.
3. To demonstrate reset/feedback methods for obtaining arbitrary modulus counters from these
ICs.
Apparatus / Components
Sr. No. Component Example / Part No. Qty
1 Decade counter IC 74LS90 / SN7490A 1
2 Divide-by-12 counter IC 74LS92 / SN7492 1
3 4-bit binary counter IC 74LS93 / SN7493 1
4 Breadboard — 1
5 +5 V DC power supply 5 V regulated 1
6 LEDs + 330 Ω resistors — 4 (for outputs)
7 Push switches / jumpers — as required
8 Connecting wires, decoupling capacitor 0.1 μF — as required
9 Logic probe / oscilloscope (optional) — 1
45
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
These ICs are asynchronous (ripple) counters — count advances propagate through flip-flops, so
there’s ripple propagation delay you should be aware of when cascading or observing fast clocks.
(Reason: 74xx families have variations; consult the manufacturer datasheet for exact pin numbers in
your package.) Microcontrollers Lab+1
46
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
47
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Procedure (mod-10):
48
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
1. The binary pattern for 6 is 0110 (Q3Q2Q1Q0 = 0110) but we want to reset when the count
reaches 6, or alternatively detect when count = 6 and reset to 0 so cycle length = 6.
2. Build a detection gate that outputs a HIGH when Q2=1 and Q1=1 and Q3=0 and Q0=0 (i.e.,
the pattern bits for 6). Usually we detect the first unwanted state, so often we detect N (here
6) and use it to clear. For asynchronous clears, you must feed detection to the reset pins
(active level per datasheet).
3. Connect detection logic (AND / NAND as required) to the asynchronous reset inputs of the
7493. On the next clock, the counter resets to 0 — giving counts 0..5.
4. Verify with LEDs at Q0..Q2, stepping the clock and recording observations.
Practical tip: using NAND to drive active-LOW reset is convenient — invert detection logic if reset
is active-LOW. Always check the polarity of the reset inputs on your IC.
49
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Result
Using the 74xx counters, you should be able to implement and verify the Mod-N counters
shown above. The 7490 is convenient for decimal/B D C / ÷10 counts; 7493 is a flexible 4-
bit binary counter (÷16); 7492 is for ÷12. Using feedback to reset lets you get arbitrary
moduli < device max state.
COLCLUSION:-
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------
50
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Experiment No: 10 Design and implement a 2-bit by 2-bit multiplier. Page 1/4
Apparatus / Components
Sr.
Component / IC Example / Part No. Qty
No.
1 Breadboard — 1
+5 V (TTL) or +5 V (HC as per
2 DC power supply 1
IC)
4 (for
3 LEDs 5 mm
P3..P0)
4 Resistors 330 Ω 4
5 AND gates 7408 (Quad 2-input AND) 1
6 XOR gates 7486 (Quad 2-input XOR) 1
Optional: Half-Adder IC or 7408+7486 used
7 — —
as HAs
8 Connecting wires, switches (for A & B inputs) — —
9 Decoupling capacitor 0.1 µF 1
Note: If using CMOS (74HCxx) family, use +5V for 74HC series and make sure Vcc/GND pins are
correct.
Theory / Algorithm
Let A = A1 A0 and B = B1 B0 (A1 & B1 are MSBs). Binary multiplication is done by forming
partial products and adding them:
pp0 = A0 · B0
pp1 = A1 · B0
pp2 = A0 · B1
pp3 = A1 · B1
51
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
P0 = pp0
Add pp1 and pp2 → use a half adder:
o P1 = pp1 ⊕ pp2
o carry1 = pp1 · pp2
Add carry1 and pp3 → use another half adder:
o P2 = pp3 ⊕ carry1
o P3 = pp3 · carry1
P0=A0B0P1=(A1B0)⊕(A0B1)carry1=(A1B0)⋅(A0B1)P2=(A1B1)⊕carry1P3=(A1B1)⋅carry1\begi
n{aligned} P_0 &= A_0B_0 \\ P_1 &= (A_1B_0) \oplus (A_0B_1) \\ \text{carry}_1 &=
(A_1B_0)\cdot(A_0B_1) \\ P_2 &= (A_1B_1) \oplus \text{carry}_1 \\ P_3 &=
(A_1B_1)\cdot\text{carry}_1 \end{aligned}P0P1carry1P2P3=A0B0=(A1B0)⊕(A0B1)=(A1B0
)⋅(A0B1)=(A1B1)⊕carry1=(A1B1)⋅carry1
(This is a minimal combinational realization using 4 two-input ANDs, 2 XORs and 3 ANDs if you
implement XOR as gates — note half-adder reuse reduces explicit gate count.)
52
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
(You can fill this table in the lab by observing P3..P0 for each input combination.)
Gate-level (explicit)
4 × 2-input ANDs: produce pp0..pp3
1 × XOR for P1 (pp1 ⊕ pp2)
1 × AND for carry1 (pp1 & pp2)
1 × XOR for P2 (pp3 ⊕ carry1)
1 × AND for P3 (pp3 & carry1)
53
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
AND gates: 4 (partial products) + 2 (for carry generation if you use half-adder formulas) but
counted above → effectively 5–6 depending on XOR internal gates
XOR gates: 2
AND gates for carry: 2 (carry1 and P3)
If using two half-adders (each = 1 XOR + 1 AND), the required gates are:
4 ANDs (pp0..pp3) + 2 XORs (HA1, HA2) + 2 ANDs (HA1 carry and HA2 carry output
used as P3) → total 8 basic gates (counting 2-input AND/XOR only). Many ICs combine
gates per chip so one 7408 + one 7486 suffice.
7408 — Quad 2-input AND (use for partial products and carries)
o Vcc = pin 14, GND = pin 7; gate1: inputs pin1, pin2 → out pin3; gate2: pins4,5→6;
gate3: pins9,10→8; gate4: 11,12→13.
7486 — Quad 2-input XOR (use for half-adders)
o Vcc = pin 14, GND = pin 7; gate1: inputs pin1,2 → out pin3; gate2: pins4,5→6;
gate3: pins9,10→8; gate4: pins11,12→13.
7404 — Hex inverter if you need inversions (not required for this design).
LEDs + 330 Ω resistors for P0..P3.
54
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
(If you want an exact pin-to-pin table for the two ICs you have, say which package labels you have
and I will provide exact pin numbers.)
55
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
ANDs (partial products): 4 (one per pp) → use 7408 (has 4 ANDs)
Half adders: each HA = 1 XOR + 1 AND → HA1 uses one 7486 XOR + one 7408 AND
(carry); HA2 uses another 7486 XOR + 7408 AND (carry).
Total logical gates used (2-input): AND = 6 (4 pp + 2 carries), XOR = 2. That fits in one
7408 and one 7486 (7408 has 4 ANDs — you need 6 ANDs so use one 7408 + one
additional AND from another 7408 or reuse spare gates across ICs or use NAND to
implement extra ANDs). Practical arrangement: use two 7408 ICs (8 ANDs total) plus one
7486 (4 XORs).
Result
The 2-bit × 2-bit multiplier was successfully implemented. Observed outputs matched the
theoretical product for all input combinations (fill in your observation table entries).
Conclusion
A 2-bit by 2-bit combinational multiplier can be implemented with simple AND gates and half-
adders. The design uses 4 partial products then adds them using two half-adders to form the 4-bit
product. The circuit is small and suitable for learning bitwise multiplication and combinational
design.
56
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Digital Electronics
Components / Apparatus
Sr.
Component / IC Example part Qty
No.
7486 (XOR) + 7404 (inverter) or
1 XOR/XNOR (for equality) 1
74266/4077 (XNOR)
2 AND gate 7408 (quad 2-input AND) 1
3 OR gate 7432 (quad 2-input OR) 1
4 NOT gate 7404 (hex inverter) — if needed 1
Breadboard, +5V supply, wires, LEDs, 330Ω
5 — —
resistors, switches
6 Decoupling capacitor 0.1 µF — 1
If you have a 7486 (XOR) but not XNOR, use XOR + inverter to form XNOR: XNOR(A,B) =
NOT( XOR(A,B) ).
57
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Greater (A > B)
A is greater than B when either:
So:
These expressions are minimal and implement the usual hierarchical (MSB-first) comparator.
58
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Total physical gates depends on available multi-input gates / XNOR availability. With standard
chips: one 74266 (XNOR quad) or 7486+7404 simplifies equality.
59
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
60
SHRI SWAMI SAMARTH COLLEGE OF ENGINEERING, MALWADI ,BOTA.
DEPARTMENT OF ELECTRONIC’S ENGINEERING
Result
On implementing the circuit and testing all input combinations, the LEDs for A>BA>BA>B,
A=BA=BA=B, and A<BA<BA<B should match the expected outputs from the truth table. This
verifies the 2-bit comparator functionality.
61