Design of Gray to Binary code converter using MSI ICs
Gray Code:
The Gray code is unweighted code. Gray code exhibits only a single bit change from one code word to the next in sequence. Due to this specific feature Gray code is important in applications such as shaft position encoders, where error susceptibility increases with the number of bit changes between adjacent numbers in a sequence.
Let us design a 3-bit Gray to Binary code converter and implement using IC-74LS138.
The relation between these two codes can be understood from the following diagram and equations:
Fig. 1. Gray Code to Binary Conversion
From the truth table it is observed that the output B2 is HIGH for minterms m4, m5, m6 and m7. Hence equation defining B2 output can be written as: B2 = Σ m (4, 5, 6, 7). The output B1 is HIGH for minterms m2 and m3 m4 & m5. Hence equation defining B1 output can be written as: B1 = Σ m (2, 3, 4, 5). The output B0 is HIGH for minterms m1, m2 m4 m7. Hence equation defining B0 output can be written as: B0 = Σ m (1, 2, 4, 7). The Binary outputs for given 3 bit Gray code are summarized as follows:
B2 = Σ m (4, 5, 6, 7)
B1 = Σ m (2, 3, 4, 5)
B0 = Σ m (1, 2, 4, 7)
These equations can be implemented by using IC74LS138 as a 3:8 decoder as shown in Fig.2. Every Binary output has 4-minterms each. Hence IC74LS20- four input NAND gate ICs are required to produce the final Binary equivalent.
The logic diagram, connection diagram and function table for IC 74LS138 are given below:
Numerical:
Outputs =>