Binary Number details, Study notes of Computer Science

Code Table of Binary Number system

Typology: Study notes

2017/2018

Uploaded on 05/19/2018

rockytnew
rockytnew 🇮🇳

1 document

1 / 16

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
5/20/2018 Binary Number System | BCD and Gray Code Tables
https://www.electronicshub.org/binary-codes/ 1/16
ELECTRONICS HUB
PROJ EC TS | T UT OR I A LS | C O URSES | KITS
YOU ARE HERE: HOME / NUMBER SYSTEMS / DIFFERENT TYPES OF BINARY CODES
Dierent Types of Binary Codes
JANUARY 28, 2015 BY ADMINISTRATOR 2 COMMENTS
Introduction
The rst successful system of electrical communication was the telegraph, which was invented
by Samuel F.B. Morse in the year 1832. The telegraph operators used a code of clicks to send
the messages. If the key pressed for a short time it is the Morse code called ‘dot’ and if the key
pressed for a long-time it is ‘Dash’. A sample Morse code is shown below:
HOME PROJECTS MINI PROJECTS FREE CIRCUITS TUTORIALS SYMBOLS DIY
PROJECT KITS COURSES CONTACT US
Table of Contents
1. Introduction
2. Weighted Binary Systems
2.1. Binary Weights
2.2. 8421 Code or BCD Code
2.3. 2421 Code
2.4. 5211 Code
2.5. Reective Code
2.6. Sequential Codes
3. Non-Weighted Codes
3.1. Excess-3 Code
3.1.1. Excess -3 Code Exa mples
3.2. Gray Code
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Binary Number details and more Study notes Computer Science in PDF only on Docsity!

ELECTRONICS HUB

P ROJ E C T S | T U T O RI A L S | C O U RS E S | K I T S

YOU ARE HERE: HOME / NUMBER SYSTEMS / DIFFERENT TYPES OF BINARY CODES

Dierent Types of Binary Codes

JANUARY 28, 2015 BY ADMINISTRATOR — 2 COMMENTS

Introduction

The rst successful system of electrical communication was the telegraph, which was invented by Samuel F.B. Morse in the year 1832. The telegraph operators used a code of clicks to send the messages. If the key pressed for a short time it is the Morse code called ‘dot’ and if the key pressed for a long-time it is ‘Dash’. A sample Morse code is shown below:

HOME PROJECTS MINI PROJECTS FREE CIRCUITS TUTORIALS SYMBOLS DIY PROJECT KITS COURSES CONTACT US

Table of Contents 1. Introduction

  1. Weighted Binary Systems 2.1. Binary Weights 2.2. 8421 Code or BCD Code2.3. 2421 Code 2.4. 5211 Code2.5. Reective Code
  2. Non-Weighted Codes2.6. Sequential Codes 3.1. Excess-3 Code 3.1.1. Excess -3 Code Examples 3.2. Gray Code

If it is observed logically, various innumerable combinations of dots and dashes of any kind of words (even sentences) can be written utilizing the above code. In the same binary digits also be utilized to make such various innumerable combinations. These may be considered as binary codes.

Other than the 8421 code or BCD code, 2421 code, 5211 code, reective code, sequential code, non-weighted code, excee-3 code and Grey code are some of the codes which were popularized.

BACK TO TOP

Weighted Binary Systems The values assigned to consecutive places in the decimal system which is a place value system are 10⁴, 10³, 10², 10¹, 10⁰, 10⁻¹, 10⁻², 10⁻³… from left to right. It is easily can be understood that the weight of digit of the decimal system is ‘10’.

Try Netflix

One Month Free WAT CH N O W

DECIMAL NUMBER BINARY NUMBER 4 BIT EXPRESSION(8421)

As per the above expression all the decimal numbers written in the 4 Bit binary code in the form of 8421 and this is called as 8421 Code and also as Binary coded decimal BCD.

As this is a straight code, any Decimal number can be expressed easily because the weights of the positions are straight for easy conversion into this 8421 code.

There are other forms of codes which are not so popular but rather confusing. They are 2421 code, 5211 code, reective code, sequential code, non- weighted coded, excess-3 code and Grey code. They are having their own importance for some of the exclusive applications and may be useful for some of the typical applications.

BACK TO TOP

2421 Code

This code also a 4 bit application code where the binary weights carry 2, 4, 2, 1 from left to right.

DECIMAL NUMBER BINARY NUMBER 2421 CODE

BACK TO TOP

5211 Code

This code is also a 4 bit application code where the binary weights carry 5, 4, 2, 1 from left to right.

DECIMAL NUMBER BINARY NUMBER 5211 CODE 0 0 0000 1 1 0001 2 10 0011 3 11 0101 4 100 0111

8421 code is not a reective code.

BACK TO TOP

Sequential Codes

Sequential codes are the codes in which 2 subsequent numbers in binary representation dier by only one digit. The 8421 and Excess-3 codes are examples of sequential codes. 2421 and 5211 codes do not come under sequential codes.

DECIMAL NUMBER BINARY NUMBER 8421 CODE EXCESS- 0 0 0000 0011 1 1 0001 0100 2 10 0010 0101 3 11 0011 0110 4 100 100 0111 5 101 0101 1000 6 110 0110 1001 7 111 0111 1010 8 1000 1000 1011 9 1001 1001 1100 BACK TO TOP

Non-Weighted Codes Some of the codes will not follow the weights of the sequence binary numbers these are called

as non-weighted codes. ASCII code and Grey code are some of the examples where they are coded for some special purpose applications and they do not follow the weighted binary number calculations.

BACK TO TOP

Excess-3 Code

As mentioned above, some of the codes will not follow the binary weights, Excee-3 code is an example of it and it is an important 4 bit code. The excess – 3 code of a decimal number is achieved by adding the number 3 to the 8421 code.

For example to convert 15 to an excess-3 code, rst 3 to be added to each digit as shown below.

BACK TO TOP

Excess -3 Code Examples

  1. Find the excess-3 code of (237.75)
  2. Find the decimal number of excess-3 number 110010100011.01110101. Sol:
  1. The excess-3 code for (237) is obtained by adding 3 to all the digits individually, that is 2, 3 an

d 7 will become 5, 6 and 10 respectively. These 5, 6 and 10 decimals have to be converted into binary form and the result is 010101101010.

10

10

BACK TO TOP

PREVIOUS – DIGITAL NUMBER SYSTEM

FILED UNDER: NUMBER SYSTEMS

Try Netflix

One Month Free WAT CH N O W

Comments

Vaibhav says OCTOBER 29, 2017 AT 2:38 AM Nicely explain ….good job Reply

Swarnakamal Mishra says DECEMBER 26, 2017 AT 8:51 AM Really helpful. Thanks Reply

Leave a Reply Your email address will not be published. Required elds are marked * Comment

Name *

Suggest A Topic [or] Project

KITS Best Drone Kits [12] 3D Printer Kits [12] Best Robot Vacuum Clears [14]

GENERAL Tutorials Symbols Courses Calculator Contact

PROJECTS Electrical Electronics Embedded Power Robotics ARM IOT

PROJECTS Mini projects Microcontroller Arduino Solar Free circuits Home Automation Seminar Topics Electronics Questions

TUTORIALS Capacitors Resistors Filters Diodes Transistors

TUTORIALS Ampliers IO Devices Thyristors DC Circuits Number System

FOLLOW US Instagram Youtube Facebook Google Plus Twitter

Copyright © 2018 Electronicshub.org