Binary Codes: Advantag Es of Binary Code
Binary Codes: Advantag Es of Binary Code
http://www.tuto rialspo int.co m/co mpute r_lo g ical_o rg aniz atio n/binary_co de s.htm
In the coding , when numbers, letters or words are represented by a specific g roup of symbols, it is said that the
number, letter or word is being encoded. T he g roup of symbols is called as a code. T he dig ital data is
represented, stored and transmitted as g roup of binary bits. T his g roup is also called as binary c ode. T he
binary code is represented by the number as well as alphanumeric letter.
Excess-3 code
T he Excess-3 code is also called as XS-3 code. It is non-weig hted code used to express decimal numbers. T he
Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or (3)10 to each code word
Example
Gray Code
It is the non-weig hted code and it is not arithmetic codes. T hat means there are no specific weig hts assig ned to
the bit position. It has a very special feature that has only one bit will chang e, each time the decimal number is
incremented as shown in fig . As only one bit chang es at a time, the g ray code is called as a unit distance code.
T he g ray code is a cyclic code. Gray code cannot be used for arithmetic operation.
Alphanumeric codes
A binary dig it or bit can represent only two symbols as it has only two states '0' or '1'. But this is not enoug h for
communication between two computers because there we need many more symbols for communication. T hese
symbols are required to represent 26 alphabets with capital and small letters, numbers from 0 to 9 , punctuation
marks and other symbols.
T he alphanumeric codes are the codes that represent numbers and alphabetic characters. Mostly such codes
also represent other characters such as symbol and various instructions necessary for conveying information. An
alphanumeric code should at least represent 10 dig its and 26 letters of alphabet i.e. total 36 items. T he following
three alphanumeric codes are very commonly used for the data representation.
American Standard Code for Information Interchang e (ASCII).
Extended Binary Coded Decimal Interchang e Code (EBCDIC).
Five bit Baudot Code.
ASCII code is a 7-bit code whereas EBCDIC is an 8-bit code. ASCII code is more commonly used worldwide
while EBCDIC is used primarily in larg e IBM computers.
Error Codes
T here are binary code techniques available to detect and correct data during data transmission.
Error Code
Desc ription