• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Electronics » Binary » Gray code
Next →
← Prev

Gray code

By Dinesh Thakur

The Gray code was designed by Frank Gray at Bell Labs in 1953. It belongs to a class of codes called the minimum change code. The successive coded characters never differ in more than one-bit. Owing to this feature, the maximum error that can creep into a system using the binary gray code to encode data is much less than the worst -case error encountered in case of straight binary encoding.

The Gray code is an unweighted code. Because of this, the· gray code is not suitable for arithmetic operations but finds applications in input/output devices, some analog-to-digital converters and designation of rows and columns in Karnaugh map etc.

The table below lists the gray code equivalents of the decimal number 0 – 15.

                      the gray code equivalents of the decimal number 0 - 15

 

                     gray codes

One can easily remember the gray codes. A three-bit gray code can be obtained by merely reflecting the two-bit code about an axis at the end of the code and assigning a third-bit as 0 above the axis and as 1 below the axis. The reflected gray code is nothing but code written in reverse order. By reflecting three-bit code, a four-bit code may be obtained.

                   gray codes

Now let us consider a few examples. The four-bit gray code for decimal number 39 is 00101101.

Similarly, gray code for (923.1)10 and (327) is

(923.1)10 = (1101 0011 0010.0001) Gray code

(327)10 = (100011 0100) Gray code

You’ll also like:

  1. Explain ASCII, Unicode and Gray Code
  2. Classification of Various Binary Code
  3. Excess-3 Code (XS3)
  4. difference between declaring a variable in the General Declaration section of a standard code module and declaring variable in the general declaration section of a form code module?
  5. Hamming Code
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

Digital Electronics

Digital Electronics

  • Electronics - Codes
  • Electronics - Excess-3 Code
  • Electronics - BCD
  • Electronics - Binary Code Types
  • Electronics - Gray Code
  • Electronics - Digital System
  • Electronics - DSSS
  • Electronics - FHSS
  • Electronics - Analog System
  • Electronics - Diode
  • Electronics - Flip-flop
  • Electronics - Boolean Logic
  • Electronics - Analogue-to-digital
  • Electronics - Radio Modulations Types
  • Electronics - 8088
  • Electronics - ADC
  • Electronics - Breadboard
  • Electronics - 80486
  • Electronics - Amplitude Modulation
  • Electronics - Chip

Other Links

  • Digital Electronics - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2025. All Rights Reserved.

APPLY FOR ONLINE JOB IN BIGGEST CRYPTO COMPANIES
APPLY NOW