Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Binary Code: Coding Systems

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Binary code

A binary code represents text or computer processor instructions using


the binary number system's two binary digits, 0 and 1. The binary code
assigns a bit string to each symbol or instruction. For example, a
binary string of eight binary digits (bits) can represent any of 256
possible values and can therefore correspond to a variety of different
symbols, letters or instructions.
In computing and telecommunications, binary codes are used for various
methods of encoding data, such as character strings, into bit strings.
Those methods may use fixed-width or variable-width strings. In a fixed-
width binary code, each letter, digit, or other character is represented by
a bit string of the same length; that bit string, interpreted as a binary
number, is usually displayed in code tables
inoctal, decimal or hexadecimal notation. There are many character
sets and many character encodings for them.
A bit string, interpreted as a binary number, can be translated into a
decimal number. For example, the lower case a, if represented by the bit
string 01100001 (as it is in the standard ASCII code), can also be
represented as the decimal number 97

Coding systems[edit]
ASCII code[edit]
The American Standard Code for Information Interchange (ASCII), uses
a 7-bit binary code to represent text and other characters within
computers, communications equipment, and other devices. Each letter
or symbol is assigned a number from 0 to 127. For example, lowercase
"a" is represented by 1100001 as a bit string (which is 97 in decimal).
Binary-coded decimal[edit]
Binary-coded decimal, or BCD, is a binary encoded representation of
integer values that uses a 4-bit nibble to encode decimal digits. Four
binary bits can encode up to 16 distinct values; but, in BCD-encoded
numbers, only the first ten values in each nibble are legal, and encode
the decimal digits zero, through nine. The remaining six values are
illegal, and may cause either a machine exception or unspecified
behavior, depending on the computer implementation of BCD arithmetic.
BCD arithmetic is sometimes preferred to floating-point numeric formats
in commercial and financial applications where the complex rounding
behaviors of floating-point numbers is inappropriate. [16]

Current uses of binary[edit]


Many things besides computers use binary, such as CDs, which have a
series of hills and valleys on the surface. These either reflect the light of
the thin laser beam shone on them, representing a one, or do not,
representing a zero. However these hills and valleys do not directly
represent user-accessible data bits. This media-level signal is decoded
into 14 bit words that are further decoded into 8 bit bytes of user data by
a lookup table (audio data goes through Reed-Solomon decoding after
this step). The 8-to-14 encoding (run-length limited) is done to prevent
long runs of 1's or 0's at media level so that the signal won't be
susceptible to sync drift and dropouts

You might also like