DLCOA - To realize binary to gray code and gray code to binary converter

 AIM: To realize binary to gray code and gray code to binary converter.

Objectives:

To learn the importance of non-weighted code. To learn to generate gray code.

CO’s to be achieved: 1 (Design and simulate different digital circuits)

PO’s to be achieved:   PO1, PO2, PO3, PO10

APPARATUS REQUIRED: Power supply , Breadboard

COMPONENTS:IC 7400, IC 7486, and IC 7408, Patch Cords & IC Trainer Kit

THEORY:

The logical circuit which converts binary code to equivalent gray code is known as binary to gray code converter. The gray code is a non weighted code. The successive gray code differs in one bit position only that means it is a unit distance code. It is also referred as cyclic code. It is not suitable for arithmetic operations. It is the most popular of the unit distance codes. It is also a reflective code. An n-bit Gray code can be obtained by reflecting an n-1 bit code about an axis after 2n-1 rows, and putting the MSB of 0 above the axis and the MSB of 1 below the axis.

The 4 bits binary to gray code conversion table is given below,






          


THEORY:

PROCEDURE: 

    Please refer  virtual lab  1) http://he-coep.vlabs.ac.in/ 

                                              2) http://vlabs.iitkgp.ernet.in/coa/

  1. Connections are given as per circuit diagram.


  1. Logical inputs are given as per circuit diagram.


  1. Observe the output and verify the truth table.



 Input and Output:

BINARY TO GRAY CODE CONVERSION

BINARY TO GRAY CODE CONVERSION

GRAY CODE TO BINARY CONVERSION

GRAY CODE TO BINARY CONVERSION



Comments