Documente Academic
Documente Profesional
Documente Cultură
Experiment No. 9
IMPLEMENTATION OF GRAY TO BCD CONVERTER
OBJECTIVE
Design and implementation of Gray to BCD converter
EQUIPMENT
ePAL Trainer Board
2 resisters 1K ohm
Connecting wires
COMPONENTs
IC Type 7408 Quadruple 2-input AND gates
IC Type 7404 Hex Inverters
IC Type 7432 Quadruple 2-input OR gates
THEORY
The Gray Code belongs to a class of codes called minimum-change codes, in which only one bit
in the code group changes when going from one step to the next. The gray code is unweighted
code. Because of this, it is not suitable for arithmetic operations but finds applications in
input/output devices and some types of analog-to-digital converters. The Gray Code is referred
digital code with special property that two adjacent Gray code numbers differ by only one bit. This
type of encoding is called a unit distance code. It is suited for encoding a physical parameter,
such as a shaft position of a motor. As the shaft turns continuously from one position to the next,
only one bit in the code changes and avoids any ambiguity and improper representation of the shaft
position.
CONNECTION DIAGRAM
irfanriazshohab@gcuf.edu.pk 1
MSISDN +923338369095
Digital Logic Design Laboratory Hand Book
irfanriazshohab@gcuf.edu.pk 2
MSISDN +923338369095
Digital Logic Design Laboratory Hand Book
PROCEDURE
1. Connect the RIMS Trainer to the 220V AC supply.
2. Verify all gates of 74LS08, 74LS04 and 74LS32.
3. Implement the circuit as shown in Figure 5.1.
A B C D W X Y Z
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 1 0 0 1 0
3 0 0 1 0 0 0 1 1
4 0 1 1 0 0 1 0 0
5 0 1 1 1 0 1 0 1
6 0 1 0 1 0 1 1 0
7 0 1 0 0 0 1 1 1
8 1 1 0 0 1 0 0 0
9 1 1 0 1 1 0 0 1
irfanriazshohab@gcuf.edu.pk 3
MSISDN +923338369095
Digital Logic Design Laboratory Hand Book
A B C D W X Y Z
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 1 0 0 1 0
3 0 0 1 0 0 0 1 1
4 0 1 1 0 0 1 0 0
5 0 1 1 1 0 1 0 1
6 0 1 0 1 0 1 1 0
7 0 1 0 0 0 1 1 1
8 1 1 0 0 1 0 0 0
9 1 1 0 1 1 0 0 1
A B C D W X Y Z
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 1 0 0 1 0
3 0 0 1 0 0 0 1 1
4 0 1 1 0 0 1 0 0
5 0 1 1 1 0 1 0 1
6 0 1 0 1 0 1 1 0
7 0 1 0 0 0 1 1 1
8 1 1 0 0 1 0 0 0
9 1 1 0 1 1 0 0 1
Y=ABC’+B’C
irfanriazshohab@gcuf.edu.pk 4
MSISDN +923338369095
Digital Logic Design Laboratory Hand Book
A B C D W X Y Z
0 0 0 0 0 0 0 0 0
1 0 0 0 1 0 0 0 1
2 0 0 1 1 0 0 1 0
3 0 0 1 0 0 0 1 1
4 0 1 1 0 0 1 0 0
5 0 1 1 1 0 1 0 1
6 0 1 0 1 0 1 1 0
7 0 1 0 0 0 1 1 1
8 1 1 0 0 1 0 0 0
9 1 1 0 1 1 0 0 1
Z=A’BC’D’+(B’C’D+AD+BCD+B’CD’)
CONCLUSION
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
irfanriazshohab@gcuf.edu.pk 5
MSISDN +923338369095