SlideShare uma empresa Scribd logo
1 de 16
Computer codes
                 ASCII Codes, EBCDIC Codes




                 http://improvec.blogspot.in/   1
Objective

  On completion of this period, you would be able
   to know

 ASCII Codes

 EBCDIC Codes




                 http://improvec.blogspot.in/   2
Recap

 Conversion of binary number to hexa decimal

 Conversion of hexa decimal number to binary




                 http://improvec.blogspot.in/   3
Prerequisite

 ASCII Codes

 EBCDIC Codes




                http://improvec.blogspot.in/   4
COMPUTER CODES




    http://improvec.blogspot.in/   5
Why codes are used?

• Codes are used to represent the letters and
  special characters (such as +,-,*,$,&) in terms of
  0’s and 1’s




                   http://improvec.blogspot.in/        6
Character Sets

BCD     - Binary Coded Decimal

ASCII     - American Standard Code for
 Information Interchange

EBCDIC - Extended Binary Coded Decimal
 Interchange Code

              http://improvec.blogspot.in/   7
BCD CODE




  http://improvec.blogspot.in/   8
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



                  http://improvec.blogspot.in/   9
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




                   http://improvec.blogspot.in/   10
Standard BCD codes
Decimal number           Standard BCD codes
0                        0000
1                        0001
2                        0010
3                        0011
4                        0100
5                        0101
6                        0110
7                        0111
8                        1000
9                        1001
10                       00010000
11                       00010001
12                       00010010
13                       00010011
56                       01010110

                 http://improvec.blogspot.in/   11
ASCII CODE




  http://improvec.blogspot.in/   12
ASCII
 ASCII is pronounced as “ask-ee”

 It stands for American Standard Code for
  Information Interchange

 It is widely used in micro computers



                  http://improvec.blogspot.in/   13
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




                  http://improvec.blogspot.in/      14
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
                  http://improvec.blogspot.in/      15
ASCII Codes for characters
Alphabetic ASCII-8      HEX          Numeric         ASCII-8    HEX
     A     10100011     A1           0               01010000   50
     B     10100010     A2           1               01010001   51
     C     10100011     A3           2               01010010   52
     D     10100100     A4           3               01010011   53
     E     10100101     A5           4               01010100   54
     F     10100110     A6           5               01010101   55
    G      10100111     A7           6               01010110   56
    H      10101000     A8           7               01010111   57
     I     10101001     A9           8               01011000   58
    J      10101010     AA           9               01011001   59
    K      10101011     AB
    L      10101100     AC
   M       10101101     AD
   N       10101110     AE
   O       10101111     AF
   P       10100000     B0
   Q       10110001     B1
                      http://improvec.blogspot.in/                    16

Mais conteúdo relacionado

Mais procurados

IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representationMaskurAlShalSabil
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsSSE_AndyLi
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation Badrul Alam
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationRitu Ranjan Shrivastwa
 
module1:Introduction to digital electronics
module1:Introduction to digital electronicsmodule1:Introduction to digital electronics
module1:Introduction to digital electronicschandrakant shinde
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )MdFazleRabbi18
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)cs19club
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Student
 
VHDL- gate level modelling
VHDL- gate level modellingVHDL- gate level modelling
VHDL- gate level modellingVandanaPagar1
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes VandanaPagar1
 

Mais procurados (20)

Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1Slide03 Number System and Operations Part 1
Slide03 Number System and Operations Part 1
 
IEEE floating point representation
 IEEE floating point representation IEEE floating point representation
IEEE floating point representation
 
Chapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital SystemsChapter 01 Basic Principles of Digital Systems
Chapter 01 Basic Principles of Digital Systems
 
Error Detection and Correction presentation
Error Detection and Correction presentation Error Detection and Correction presentation
Error Detection and Correction presentation
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
 
BINARY SUBTRACTION
BINARY SUBTRACTIONBINARY SUBTRACTION
BINARY SUBTRACTION
 
IPV4 addresses
IPV4 addressesIPV4 addresses
IPV4 addresses
 
BCD.
BCD.BCD.
BCD.
 
module1:Introduction to digital electronics
module1:Introduction to digital electronicsmodule1:Introduction to digital electronics
module1:Introduction to digital electronics
 
Binary arithmetic
Binary arithmeticBinary arithmetic
Binary arithmetic
 
Code conversion
Code conversionCode conversion
Code conversion
 
Codes
CodesCodes
Codes
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
 
Number Systems Basic Concepts
Number Systems Basic ConceptsNumber Systems Basic Concepts
Number Systems Basic Concepts
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
VHDL- gate level modelling
VHDL- gate level modellingVHDL- gate level modelling
VHDL- gate level modelling
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Parallel Adder
Parallel Adder Parallel Adder
Parallel Adder
 
Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 

Destaque (20)

Ascii
AsciiAscii
Ascii
 
Ascii codes
Ascii codesAscii codes
Ascii codes
 
Ascii
AsciiAscii
Ascii
 
Ascii 03
Ascii 03Ascii 03
Ascii 03
 
ASCII CODE & BAUDOT CODE
ASCII CODE & BAUDOT CODEASCII CODE & BAUDOT CODE
ASCII CODE & BAUDOT CODE
 
Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)Ascii and Unicode (Character Codes)
Ascii and Unicode (Character Codes)
 
ASCII-EBCDIC-HEX
ASCII-EBCDIC-HEXASCII-EBCDIC-HEX
ASCII-EBCDIC-HEX
 
Parity bits
Parity bitsParity bits
Parity bits
 
Unicode
UnicodeUnicode
Unicode
 
Ascii codes 3145_app_f
Ascii codes 3145_app_fAscii codes 3145_app_f
Ascii codes 3145_app_f
 
ASCII Code with Webdings and Wingdings - All Characters
ASCII Code with Webdings and Wingdings - All CharactersASCII Code with Webdings and Wingdings - All Characters
ASCII Code with Webdings and Wingdings - All Characters
 
2 applications.key
2 applications.key2 applications.key
2 applications.key
 
Ebcdic code 24 1
Ebcdic code 24 1Ebcdic code 24 1
Ebcdic code 24 1
 
4 character encoding-ascii
4 character encoding-ascii4 character encoding-ascii
4 character encoding-ascii
 
Parity bits
Parity bitsParity bits
Parity bits
 
Classification and generations of computers
Classification and generations of computersClassification and generations of computers
Classification and generations of computers
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
 
SEMICONDUCTOR PHYSICS
SEMICONDUCTOR PHYSICSSEMICONDUCTOR PHYSICS
SEMICONDUCTOR PHYSICS
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 

Semelhante a Comp codes (ascii...).24to25

Microcontroller base project
Microcontroller base projectMicrocontroller base project
Microcontroller base projectNeeraj Deshani
 
Computer hardware michael karbo
Computer hardware   michael karboComputer hardware   michael karbo
Computer hardware michael karboSecretTed
 
computercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEcomputercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEdbmscse61
 
Information sheet/Kertas Penerangan
Information sheet/Kertas PeneranganInformation sheet/Kertas Penerangan
Information sheet/Kertas Peneranganathirahchehusin
 
PPT - 2.pptx
PPT - 2.pptxPPT - 2.pptx
PPT - 2.pptxANUTD1
 
Various num systems used in digital comp.18to19
Various num systems used in digital comp.18to19Various num systems used in digital comp.18to19
Various num systems used in digital comp.18to19myrajendra
 
Assembly programming 8085/8086 microprocessors
Assembly programming 8085/8086 microprocessorsAssembly programming 8085/8086 microprocessors
Assembly programming 8085/8086 microprocessorsFazalHameed14
 
Basics of computer and Number conversions.pdf
Basics of computer and Number conversions.pdfBasics of computer and Number conversions.pdf
Basics of computer and Number conversions.pdfMrsJayamaryAComputer
 
01 basico redes
01 basico redes01 basico redes
01 basico redesdiegfc
 
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)資管所數位邏輯補充考卷(適用交大、政大、中山、成大)
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)逸 張
 

Semelhante a Comp codes (ascii...).24to25 (20)

Microcontroller base project
Microcontroller base projectMicrocontroller base project
Microcontroller base project
 
Number codes
Number codesNumber codes
Number codes
 
01 - Software
01 - Software01 - Software
01 - Software
 
Computer hardware michael karbo
Computer hardware   michael karboComputer hardware   michael karbo
Computer hardware michael karbo
 
computercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODEcomputercodes, BCD, EBCDIC,ASCII,UNICODE
computercodes, BCD, EBCDIC,ASCII,UNICODE
 
Information sheet/Kertas Penerangan
Information sheet/Kertas PeneranganInformation sheet/Kertas Penerangan
Information sheet/Kertas Penerangan
 
PPT - 2.pptx
PPT - 2.pptxPPT - 2.pptx
PPT - 2.pptx
 
Number codes students
Number codes studentsNumber codes students
Number codes students
 
Various num systems used in digital comp.18to19
Various num systems used in digital comp.18to19Various num systems used in digital comp.18to19
Various num systems used in digital comp.18to19
 
. computer codes
. computer codes. computer codes
. computer codes
 
COMPUTER AWARENESS.pptx
COMPUTER AWARENESS.pptxCOMPUTER AWARENESS.pptx
COMPUTER AWARENESS.pptx
 
Lec 02
Lec 02Lec 02
Lec 02
 
Number system
Number systemNumber system
Number system
 
Binary and ASCII
Binary and ASCIIBinary and ASCII
Binary and ASCII
 
Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16Mcs 012 soved assignment 2015-16
Mcs 012 soved assignment 2015-16
 
Assembly programming 8085/8086 microprocessors
Assembly programming 8085/8086 microprocessorsAssembly programming 8085/8086 microprocessors
Assembly programming 8085/8086 microprocessors
 
Basics of computer and Number conversions.pdf
Basics of computer and Number conversions.pdfBasics of computer and Number conversions.pdf
Basics of computer and Number conversions.pdf
 
01 basico redes
01 basico redes01 basico redes
01 basico redes
 
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)資管所數位邏輯補充考卷(適用交大、政大、中山、成大)
資管所數位邏輯補充考卷(適用交大、政大、中山、成大)
 
[ASM] Lab1
[ASM] Lab1[ASM] Lab1
[ASM] Lab1
 

Mais de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Comp codes (ascii...).24to25

  • 1. Computer codes ASCII Codes, EBCDIC Codes http://improvec.blogspot.in/ 1
  • 2. Objective On completion of this period, you would be able to know  ASCII Codes  EBCDIC Codes http://improvec.blogspot.in/ 2
  • 3. Recap  Conversion of binary number to hexa decimal  Conversion of hexa decimal number to binary http://improvec.blogspot.in/ 3
  • 4. Prerequisite  ASCII Codes  EBCDIC Codes http://improvec.blogspot.in/ 4
  • 5. COMPUTER CODES http://improvec.blogspot.in/ 5
  • 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 http://improvec.blogspot.in/ 6
  • 7. Character Sets BCD - Binary Coded Decimal ASCII - American Standard Code for Information Interchange EBCDIC - Extended Binary Coded Decimal Interchange Code http://improvec.blogspot.in/ 7
  • 8. BCD CODE http://improvec.blogspot.in/ 8
  • 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 http://improvec.blogspot.in/ 9
  • 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 http://improvec.blogspot.in/ 10
  • 11. Standard BCD codes Decimal number Standard BCD codes 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 10 00010000 11 00010001 12 00010010 13 00010011 56 01010110 http://improvec.blogspot.in/ 11
  • 12. ASCII CODE http://improvec.blogspot.in/ 12
  • 13. ASCII  ASCII is pronounced as “ask-ee”  It stands for American Standard Code for Information Interchange  It is widely used in micro computers http://improvec.blogspot.in/ 13
  • 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 http://improvec.blogspot.in/ 14
  • 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 http://improvec.blogspot.in/ 15
  • 16. ASCII Codes for characters Alphabetic ASCII-8 HEX Numeric ASCII-8 HEX A 10100011 A1 0 01010000 50 B 10100010 A2 1 01010001 51 C 10100011 A3 2 01010010 52 D 10100100 A4 3 01010011 53 E 10100101 A5 4 01010100 54 F 10100110 A6 5 01010101 55 G 10100111 A7 6 01010110 56 H 10101000 A8 7 01010111 57 I 10101001 A9 8 01011000 58 J 10101010 AA 9 01011001 59 K 10101011 AB L 10101100 AC M 10101101 AD N 10101110 AE O 10101111 AF P 10100000 B0 Q 10110001 B1 http://improvec.blogspot.in/ 16