FOR FREE MATERIALS

Binary Codes and BCD

 

Introduction to Binary Code

Whenever we use the information on the computer, it may be in form of data, pictures, etc. So, to access or visualize information at a computer, we have to change the information at the corresponding binary code. In that case, we are using encoding and decoding.

 

A binary code is basically used for the representation of the binary bits 0 and 1 which are used as a group of binary digits and are used for processing computer instructions and data, picture and text, etc. 

 

 

1. Numeric codes represent numeric information which is series of 0s and 1s.

Example: 1010110 represents a binary number.

Binary Coded Decimal is a numeric code.

 

Please follow  Binary Coded Decimal 

 

2. An alphanumeric code is basically character codes that represent alphanumeric information i.e. letters of the alphabet, mathematical symbols, numbers, etc. 

ASCII, EBCDIC, UNICODE, etc. are alphanumeric codes.

 

ASCII: ASCII stands for American Standard Code for Information Interchange. It is a seven-bit code therefore can accommodate 128 characters based on the English alphabet. ASCII codes represent text in computers, telecommunications equipment, and other devices.

 

Example:

Decimal

Hex

Octal

Binary

Char

64

40

100

01000000

@

65

41

101

01000001

A

66

42

102

01000010

B

67

43

103

01000011

C

68

44

104

01000100

D

69

45

105

01000101

E

70

46

106

01000110

F

 

EBCDIC: Full form of EBCDIC is Extended Binary Coded Decimal Interchange Code invented by IBM. IBM computers use this code to extended Binary Coded Decimal. It is an 8 bit code so, it represents 256 characters

 

Example:

Hex

EBCDIC

Char

C1

1100 0001

A

C2

1100 0010

B

C3

1100 0011

C

C4

1100 0100

D

C5

1100 0101

E

C6

1100 0110

F