Comp codes (ascii...).24to25
-
date post
21-Oct-2014 -
Category
Documents
-
view
629 -
download
3
description
Transcript of Comp codes (ascii...).24to25
![Page 1: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/1.jpg)
http://improvec.blogspot.in/ 1
Computer codes ASCII Codes, EBCDIC Codes
![Page 2: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/2.jpg)
http://improvec.blogspot.in/ 2
Objective
On completion of this period, you would be able to know
ASCII Codes
EBCDIC Codes
![Page 3: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/3.jpg)
http://improvec.blogspot.in/ 3
Recap
Conversion of binary number to hexa decimal
Conversion of hexa decimal number to binary
![Page 4: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/4.jpg)
http://improvec.blogspot.in/ 4
Prerequisite
ASCII Codes
EBCDIC Codes
![Page 5: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/5.jpg)
http://improvec.blogspot.in/ 5
COMPUTER CODES
![Page 6: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/6.jpg)
http://improvec.blogspot.in/ 6
Why codes are used?
• Codes are used to represent the letters and special characters (such as +,-,*,$,&) in terms of 0’s and 1’s
![Page 7: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/7.jpg)
http://improvec.blogspot.in/ 7
Character Sets
BCD - Binary Coded Decimal
ASCII - American Standard Code for Information Interchange
EBCDIC - Extended Binary Coded Decimal Interchange Code
![Page 8: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/8.jpg)
http://improvec.blogspot.in/ 8
BCD CODE
![Page 9: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/9.jpg)
http://improvec.blogspot.in/ 9
BCD (Binary Coded Decimal)
BCD code is the simplest code to represent decimal numbers
In BCD code a decimal number is represented by four binary bits
For example, 3 is represented as 0011
![Page 10: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/10.jpg)
http://improvec.blogspot.in/ 10
BCD Code (Binary Coded Decimal) contd
If a decimal number consists of two or more than two digits, each digit is individually represented by its four bit binary equivalent
For example, 56 is represented by 0101 0110
![Page 11: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/11.jpg)
http://improvec.blogspot.in/ 11
Standard BCD codes
Decimal number Standard BCD codes
0
1
2
3
4
5
6
7
8
9
10
11
12
13
56
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
00010000
00010001
00010010
00010011
01010110
![Page 12: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/12.jpg)
http://improvec.blogspot.in/ 12
ASCII CODE
![Page 13: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/13.jpg)
http://improvec.blogspot.in/ 13
ASCII
ASCII is pronounced as “ask-ee”
It stands for American Standard Code for Information Interchange
It is widely used in micro computers
![Page 14: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/14.jpg)
http://improvec.blogspot.in/ 14
ASCII (contd)
Micro computers using 8-bit word length use
7-bit to represent the basic code
The 8th bit is used for parity or it may be permanently 0 or 1
![Page 15: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/15.jpg)
http://improvec.blogspot.in/ 15
ASCII CODE (contd) :
In this code a character is represented by two parts
They are a zone portion and numeric portion
Each digit has 0101 as the zone portion and its binary representation as the numeric portion
Alphabetical characters are divided into two groups having 1010 or 1011 as the zone portion
![Page 16: Comp codes (ascii...).24to25](https://reader035.fdocuments.net/reader035/viewer/2022073017/5447366fafaf9f61178b493d/html5/thumbnails/16.jpg)
16
ASCII Codes for characters
Alphabetic ASCII-8 HEX A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
10100011
10100010
10100011
10100100
10100101
10100110
10100111
10101000
10101001
10101010
10101011
10101100
10101101
10101110
10101111
10100000
10110001
A1
A2
A3
A4
A5
A6
A7
A8
A9
AA
AB
AC
AD
AE
AF
B0
B1
Numeric ASCII-8 HEX0
1
2
3
4
5
6
7
8
9
01010000
01010001
01010010
01010011
01010100
01010101
01010110
01010111
01011000
01011001
50
51
52
53
54
55
56
57
58
59
http://improvec.blogspot.in/