मराठी

BCD, ASCII and EBCDIC CODES

Advertisements

Topics

  • BCD
  • ASCII and EBCDIC CODES

BCD

BCD stands for Binary Coded Decimal. This code is useful for the conversion of numbers into binary form. BCD numbers are binary-coded decimal numbers. In BCD, each decimal digit is represented by its equivalent four-bit binary number. The circuits of pocket calculators can process BCD numbers because you enter decimal numbers through the keyboard and see decimal answers on an LED. Digital clocks, digital voltmeters, and electronic counters work with BCD numbers.

Advantages of BCD 
1. The length of the number is short. 
2. Easy to convert to and from BCD 
3. Suitable for hexadecimal addition.

Example: 1) 100100111001BCD  

                       =    1001      0011      1001

                                ↓            ↓           ↓

                      =        9            3           9

There are some other codes, like 5421 BCD, 5311 BCD, etc. But the most common method is 8421 BCD.

ASCII and EBCDIC CODES

These codes are normally used for computer keyboards; ASCII code uses either 7-bit code or 8-bit code to represent the numbers and the characters. ASCII stands for American Standard Code for Information Interchange. EBCDIC code is a similar 8-bit code that was developed by IBM, which is obtained by extending a six-bit BCD code. It is an Extended BCD Interchange Code, e.g. In ASCII, the code for CAT is easily obtained by writing the binary code for C, Aand T 
C = 11 0011
A = 11 0001
T = 01 0011 (Refer to the ASCII 7-bit Chart)
CAT = (11 0001    11  0001   01   0011)

ASCII code 

 ×3   ××× ×6   ×5  ×
010 011 100 101 110 111
0000 SP 0 @ P   p
0001 ! 1 A Q a q
0010 " 2 B R b r
0011 # 3 C S c s
0100 $ 4 D T d t
0101 % 5 E U e u
0110 & 6 F V f v
0111 ' 7 G W g w
1000 ( 8 H X h x
1001 ) 9 I Y i y
1010 * : J Z j z
1011 + ; K   k  
1100 , < L   l  
1101 - = M   m  
1110 . > N   n  
1111 / ? O   o  

 

If you would like to contribute notes or other learning material, please submit them using the button below.
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×