Experiment No: 02: Name of The Experiment
Experiment No: 02: Name of The Experiment
Submitted By :
Roll : 222014015
Problem Statement – 1 : (𝐴 + 𝐵) C + (𝐵 + 𝐶 ) + A𝐶
Required ICs:
● Hex inverter — 1 piece
● Quad 2 input And gate — 1 piece
● Quad 2 input OR gate — 1 piece
(𝐴 + 𝐵) C + (𝐵 + 𝐶 ) + A𝐶
= (𝐴 . 𝐵).C+(𝐵 .C) + A𝐶)
=𝐴 𝐵 C + 𝐵C + A𝐶
=(𝐴+1) 𝐵 C + A𝐶
=𝐵C+A𝐶
0 0 1 1 0 1 0 1
0 1 0 0 1 0 0 0
0 1 1 0 0 0 0 0
1 0 0 1 1 0 1 1
1 0 1 1 0 1 0 1
1 1 0 0 1 0 1 1
1 1 1 0 0 0 0 0
Circuit Diagram :
Problem Statement – 3 : Derive the output equations for a 3-bit binary to gray
code converter and implement it.
Required ICs :
● 7486 quad 2 - input XOR gate
Procedure :
● For both the binary code and for gray code the most
G2 = B2
● To find G1 we need to XOR B1 and B2. That means ,
G1 = B2 ⊻ ( XOR) B1
G0 = B1 ⊻ (XOR) B0
0 0 0 0 0 0 0
1 0 0 1 0 0 1
2 0 1 0 0 1 1
3 0 1 1 0 1 0
4 1 0 0 1 1 0
5 1 0 1 1 1 1
6 1 1 0 1 0 1
7 1 1 1 1 0 0
Circuit Diagram :
Discussion :
Binary code to gray code conversion reduces data errors by simplifying transitions
between values.
Problem statement — 4 : Derive the output equations for a 3-bit gray code to the
binary converter and implement it.
Required ICs :
❖ 7486 quad 2 - input XOR gate
Procedure :
1. For both the binary code and for gray code the most
B2 = G2
B1 = G1 ⊻ ( XOR) B2
means , Bo = Go ⊻(𝑋𝑂𝑅) 𝐵1
Truth Table Gray Code to Binary :
0 0 00 0 0 0
1 0 0 1 0 0 1
2 0 1 1 0 1 0
3 0 1 0 0 1 1
4 1 1 0 1 0 0
5 1 1 1 1 0 1
6 1 0 1 1 1 0
7 1 0 0 1 1 1
Circuit Diagram :
Discussion : As we know that gray code is convenient for so many reasons but we
need to know the transition from gray to binary code .This conversion algorithm helps
us to do that job.