Experiment 1_CSC 204 New Lab-1
Experiment 1_CSC 204 New Lab-1
EXPERIMENT 1: Basic characteristics of DIGITAL LOGIC GATES (AND, OR, NOT, NOR, NAND, XOR, XNOR) and verification of their
truth table.
OBJECTIVE:
• To study the concept of logic gates, logic IC.
• To study the basic logic gates: AND, OR, NOT
• To study the logic gates: NOR, NAND, XOR, XNOR
• To study the representation of these functions by truth tables, logic diagrams, and Boolean algebra.
APPARATUS:
• IC Type 7408 Quadruple 2-input AND gate
• IC Type 7432 Quadruple 2-input OR gate
• IC Type 7404 Hex Inverters/ NOT gate
• IC Type 7400 Quadruple 2-input NAND gate
• IC Type 7402 Quadruple 2-input NOR gate
• IC Type 7486 Quadruple 2-input XOR gate
• IC Type 74266 Quadruple 2-input XNOR gate
• Digital Electronic Trainer Kit or Breadboard
• LED, Resistors
• Power Supply Unit
THEORY:
• AND: A multi-input circuit in which the output is 1 only if all inputs are 1.
• OR: A multi-input circuit in which the output is 1 when any input is 1.
• NOT: The output is 0 when the input is 1, and the output is 1 when the input is 0.
• NAND: AND followed by INVERT.
• NOR: OR followed by INVERT.
• XOR: The output of the Exclusive – OR gate is 0 when two inputs are the same and 1 when the two inputs are different.
• XNOR: The output of the Exclusive – NOR gate is 0 when two inputs are different and 1 the two inputs are same.
AND Operation:
Symbol Truth table
Input/s Output/s
A B Q = AB
0 0 0
0 1 0
1 0 0
1 1 1
IC NUMBER: 7408
Pin diagram: Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1, 2 Input 3 Output
4, 5 Input 6 Output
12, 13 Input 11 Output
9, 10 Input 8 Output
OR Operation:
Symbol Truth table
Input/s Output/s
A B Q=A+B
0 0 0
0 1 1
1 0 1
1 1 1
IC NUMBER: 7432
Pin diagram: Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1, 2 Input 3 Output
4, 5 Input 6 Output
12, 13 Input 11 Output
9, 10 Input 8 Output
NOT Operation:
Symbol Truth table
Input/s Output/s
A Q = 𝐀̅
0 1
1 0
** Presence of a small circle at the output side of any gate always denotes inversion
IC NUMBER: 7404
Pin diagram: Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1 Input 2 Output
3 Input 4 Output
5 Input 6 Output
13 Input 12 Output
11 Input 10 Output
9 Input 8 Output
NOR Operation:
Symbol Truth table
Input/s Output/s
A B 𝐐 = ̅̅̅̅̅̅̅̅
𝐀+𝐁
0 0 1
0 1 0
1 0 0
1 1 0
IC NUMBER: 7402
Pin diagram: Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
2, 3 Input 1 Output
5, 6 Input 4 Output
11, 12 Input 13 Output
8, 9 Input 10 Output
NAND Operation:
Symbol Truth table
Input/s Output/s
A B ̅̅̅̅
𝐐 = 𝐀𝐁
0 0 1
0 1 1
1 0 1
1 1 0
IC NUMBER: 7400
Pin diagram: Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1, 2 Input 3 Output
4, 5 Input 6 Output
12, 13 Input 11 Output
9, 10 Input 8 Output
XOR Operation:
Symbol Truth table
Input/s Output/s
A B 𝐐 = 𝐀⨁𝐁
0 0 0
0 1 1
1 0 1
1 1 0
IC NUMBER: 7486
Pin diagram Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1, 2 Input 3 Output
4, 5 Input 6 Output
12, 13 Input 11 Output
9, 10 Input 8 Output
XNOR Operation:
Symbol Truth table
Input/s Output/s
A B ̅̅̅̅̅̅̅
𝐐 = 𝐀⨁𝐁
0 0 1
0 1 0
1 0 0
1 1 1
IC NUMBER: 74266
Pin diagram Pin description
PIN no. Function PIN no. Function
7 Ground 14 5V
1, 2 Input 3 Output
5, 6 Input 4 Output
8, 9 Input 10 Output
12, 13 Input 11 Output
QUESTIONS:
1. Which of the following gates is not a basic gate? 1
a. AND b. OR
c. NOT d. NOR
2. Which of the following gates has a high (1) output when two inputs are the same? 1
a. AND b. XNOR
c. NOT d. XOR
3. Which elements are called active devices and which elements are called passive devices? 2
Ans:
5. Fill the following truth table using the given diagram. 1+3
Connection pattern -
7 Ground 14 Ground
5 Input
4 Output
6 Input
a. Identify the IC. Ans:
b. Fill up the truth table -
Input/s Output/s
A B Q=
0 0
0 1
1 0
1 1