You are on page 1of 4
a a ad a hh ad es a Sr EXPERIMENT No. 3 AIM: To Analyse and Implement a, Binary to Gray and Gray to Binary code converters using Logic gates. gates. b. Binary to BCD and BCD to Excess-3 Code converters using Logic APPARATUS: Digital trainer kits, Logic gate IC 7486 (XOR Gate), Connecting wires. THEORY: to Binary code converters using Logic gates. a, Binary to G Binary to Gray Code converter: Consider Binary code bits Bo, Bi, B2, By as inputs and Gray code bits Go, Gi, G2, and G3 as outputs. For converting binary to gray code, the MSB is noted. This MSB is added to the bit in next position. The sums are recorded and carry if any generated is discarded. This procedure is repeated till last bit of binary number is reached. The Karnaugh maps will be used for gray code outputs (Go, G1, G2, and Gs) value calculation. So, find minimal expressions for Go, G1, G2, and Gs and realize these using logic gates. BO B1 B2 83 GO G1 G2 G3 Binary to Gray Code Converter Gray to Binary Code converter: Consider Gray code bits Go, Gi, Go, and Gy as inputs and Binary code bits Bo, Bi, Bz, and B3 as outputs. For converting gray to binary code, the MSB is noted. This MSB is added to the bit in next position. The sums are recorded and carry if any generated is discarded. This sum is further added to the bit in next position and sums are recorded and carry if any generated is discarded procedure is repeated till last bit of gray code is reached. The Kamnaugh maps will be used for Binary code outputs (Bo, B1, Bz, and Bs) value se ust calculation. So, find minimal expressions for Bo, Bi, Bz, and Bs and realize th logic gates. co Gt G2 G3 80 BL B2 83 ig 3.2: Gray to Binary Code Converter Table 3.1: Truth Table of Binary to Gray Code Converter Sr a BINARY CODE GRAY CODE Bo | BI | B2] Bs | GO] GI | G2] G 7 ofo;olofo;ofol|o 2 |ofo];ofiflo|ofoft 3 ofoyi1{fofo;ofift 4 |ofof;ififo]o 5. o]1ifofoyo 1 «| ofrfofifo];i7 fot 7 ofirfiryofo Teas [see |e 8 ofif{ryifofrt a) 9 TPolfofoty izes | em Ope |00 | 1 fofo}1|. a PROCEDURE: l. Ta ke the ICs of appropriate numbers, 2. Place them properly on their respective places, 3. Make the connections as per the circuit diagram, 4. The circuit can be verified using various values of inputs and then testing the values of output as per truth table, PRECAUTIONS: 1. Circuit should be properly connected. 2. Do not short circuit in the trainer kit during operation 3. Wires should be held by their heads while being removed else they may get damage.

You might also like