SlideShare a Scribd company logo
1 of 14
DEPARTMENT OF COMPUTER SCIENCE &
ENGG.
Presented By: Praveen Tabbannavar
Lecturer/CSE
B.L.D.E.A’S S.S.M. POLYTECHNIC
VIJAYAPUR
B.L.D.E.A’S S.S.M
POLYTECHNIC VIJAYAPUR
Introduction to Number System
Computer Codes
Digital computers make use of specialized computer codes or
digital codes in order to represent binary numbers, decimal
numbers, English alphabet, special symbols and
instructions.
There are various types of computer codes:
1. BCD
2. EBCDIC
3. ASCII code
4. Gray code
5. Excess-3 code
6. Unicode
BCD
• BCD stands for Binary Coded Decimal. This code allows
us to represent decimal digits up to 0 to 9 using a 4-bit
binary code. It can also be referred to as 8421 code. BCD
is simple to represent. It is a special code which represents
single decimal digit.
• This code provides an interface to binary/digital computer
systems. It is also used in digital devices like 7-segment
display, digital clocks, thermometers etc.
• There can be only 10 BCD codes.
BCD Codes for decimal digits
Decimal
digit
BCD code 8421
0 0000
1 0001
2 0010
3 0011
4 0100
5 0101
6 0110
7 0111
8 1000
9 1001
EBCDIC
• EBCDIC stands for Extended Binary Coded Decimal
Interchange Code.
• IBM invented this code to extend the binary coded
decimal. This code makes use of 8 bits and represents 28=
256 characters. It is an 8 bit code.
• It is used in IBM mainframe computers and mid range
computer systems.
ASCII Code
• ASCII Stands for American Standard Code for Information
Interchange. As the computer understands only numerical
values, So all characters must have numerical equivalent
called alphanumeric code.
• ASCII is the international standard for representing
characters, numbers and symbols. The idea is to represent
numbers as text.
• ASCII is the most common character encoding format for
text data in computers. This standard is used to represent
27 = 128 characters. It is an 7 bit code.
ASCII Code
• A-Z is represented from 65-90, a-z is represented from 97-
122.
• Ex- ‘Cs’ is represented as
Letter Decimal Binary
C 67 1000011
s 115 1110011
Gray Code
• Gray code is invented by a scientist named Frank Gray. It
is a non weighted code which means that weights are not
assigned to bits.
• It is also called as unit distance code because it exhibits a
single bit change from one gray code bit pattern to the next
code bit.
• It is not an arithmetic code. It is also called as cyclic code
or reflective code.
• Gray code is usually helpful in shaft position encoders. It
reduces the power of switching.
• Gray code is usually helpful in shaft position encoders. It
reduces the power of switching.
• This code reduces the number of errors.
Gray code
Decimal Number Binary Number Gray code
0 0000 0000
1 0001 0001
2 0010 0011
3 0011 0010
4 0100 0110
5 0101 0111
6 0110 0101
7 0111 0100
8 1000 1100
9 1001 1101
10 1010 1111
11 1011 1110
12 1100 1010
13 1101 1011
14 1110 1001
15 1111 1000
Excess-3 code
• This is also called as XS-3 code. It is unweighted 4 bit
code used to express decimal numbers.
• Excess-3 code can be obtained by adding 3 to each decimal
digit in a decimal number and converting the sum to a 4 bit
binary number.
• This code exhibit self-complementing property which is
useful in arithmetic operations.
• Ex- 5 0101
+ 3 0011
= 8  1000
Excess-3 code
Decimal BCD 8421 Excess-3
BCD + 0011
0 0000 0011
1 0001 0100
2 0010 0101
3 0011 0110
4 0100 0111
5 0101 1000
6 0110 1001
7 0111 1010
8 1000 1011
9 1001 1100
Unicode
• The different computer coding schemes don’t have enough
number of bits to represent all characters and language
specific symbols of multiple languages. Therefore,
Unicode standard as designed to overcome this problem.
• Unicode is a universal character encoding standard that
defines binary codes in bytes, words and double words for
characters used in different languages.
• It provides an efficient way to encode Multilanguage plain
text.
Unicode
• Unicode standard assigns a distinct number for each and
every character. It also assigns codes for special characters,
mathematical & technical symbols.
• Special feature of Unicode is that it encodes up to 1 million
characters (106) with unique codes.
• Unicode has 3 types of encoding formats.
 UTF-8
 UTF-16
 UTF-32
Computer Codes Explained

More Related Content

What's hot (20)

c-programming
c-programmingc-programming
c-programming
 
Two dimensional arrays
Two dimensional arraysTwo dimensional arrays
Two dimensional arrays
 
History of c
History of cHistory of c
History of c
 
BINARY NUMBER SYSTEM
BINARY NUMBER SYSTEMBINARY NUMBER SYSTEM
BINARY NUMBER SYSTEM
 
Hashing
HashingHashing
Hashing
 
Number system....
Number system....Number system....
Number system....
 
Introduction to c programming language
Introduction to c programming languageIntroduction to c programming language
Introduction to c programming language
 
Number system conversion
Number system conversionNumber system conversion
Number system conversion
 
Number Systems
Number SystemsNumber Systems
Number Systems
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Enums in c
Enums in cEnums in c
Enums in c
 
Compilers
CompilersCompilers
Compilers
 
binary number system
 binary number system binary number system
binary number system
 
11 octal number system
11   octal number system11   octal number system
11 octal number system
 
Arrays and Strings
Arrays and Strings Arrays and Strings
Arrays and Strings
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Shell programming
Shell programmingShell programming
Shell programming
 
Number system
Number systemNumber system
Number system
 
Assembler (2)
Assembler (2)Assembler (2)
Assembler (2)
 

Similar to Computer Codes Explained

Applied physics iii lecture3 digital_codes
Applied physics iii lecture3 digital_codesApplied physics iii lecture3 digital_codes
Applied physics iii lecture3 digital_codesJaphet Munnah
 
Data Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesData Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesDr Rajiv Srivastava
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptxKamranAli649587
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdfMaheShiva
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeBala Ganesh
 
Octal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversionsOctal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversionsAfrasiyab Haider
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2ISMT College
 
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codesKamran Zafar
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfUmerKhan147799
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.pptAnnymus
 

Similar to Computer Codes Explained (20)

Applied physics iii lecture3 digital_codes
Applied physics iii lecture3 digital_codesApplied physics iii lecture3 digital_codes
Applied physics iii lecture3 digital_codes
 
Binary and EC codes
Binary and EC codesBinary and EC codes
Binary and EC codes
 
Data Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data TypesData Communication & Computer Networks : Data Types
Data Communication & Computer Networks : Data Types
 
Binary codes
Binary codesBinary codes
Binary codes
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
6.number system
6.number system6.number system
6.number system
 
. computer codes
. computer codes. computer codes
. computer codes
 
DSD.pptx
DSD.pptxDSD.pptx
DSD.pptx
 
Binary codes
Binary codesBinary codes
Binary codes
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
Encoder-and-decoder.pptx
Encoder-and-decoder.pptxEncoder-and-decoder.pptx
Encoder-and-decoder.pptx
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
Chap ii.BCD code,Gray code
Chap ii.BCD code,Gray codeChap ii.BCD code,Gray code
Chap ii.BCD code,Gray code
 
DLD-W3-L1.pptx
DLD-W3-L1.pptxDLD-W3-L1.pptx
DLD-W3-L1.pptx
 
Octal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversionsOctal to binary and octal to hexa decimal conversions
Octal to binary and octal to hexa decimal conversions
 
Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2Digital Logic BCA TU Chapter 2.2
Digital Logic BCA TU Chapter 2.2
 
Lecture 5 binary_codes
Lecture 5 binary_codesLecture 5 binary_codes
Lecture 5 binary_codes
 
BCDCONVERTER.pptx
BCDCONVERTER.pptxBCDCONVERTER.pptx
BCDCONVERTER.pptx
 
Lecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdfLecture5 Chapter1- Binary Codes.pdf
Lecture5 Chapter1- Binary Codes.pdf
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.ppt
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 

Computer Codes Explained

  • 1. DEPARTMENT OF COMPUTER SCIENCE & ENGG. Presented By: Praveen Tabbannavar Lecturer/CSE B.L.D.E.A’S S.S.M. POLYTECHNIC VIJAYAPUR B.L.D.E.A’S S.S.M POLYTECHNIC VIJAYAPUR Introduction to Number System
  • 2. Computer Codes Digital computers make use of specialized computer codes or digital codes in order to represent binary numbers, decimal numbers, English alphabet, special symbols and instructions. There are various types of computer codes: 1. BCD 2. EBCDIC 3. ASCII code 4. Gray code 5. Excess-3 code 6. Unicode
  • 3. BCD • BCD stands for Binary Coded Decimal. This code allows us to represent decimal digits up to 0 to 9 using a 4-bit binary code. It can also be referred to as 8421 code. BCD is simple to represent. It is a special code which represents single decimal digit. • This code provides an interface to binary/digital computer systems. It is also used in digital devices like 7-segment display, digital clocks, thermometers etc. • There can be only 10 BCD codes.
  • 4. BCD Codes for decimal digits Decimal digit BCD code 8421 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001
  • 5. EBCDIC • EBCDIC stands for Extended Binary Coded Decimal Interchange Code. • IBM invented this code to extend the binary coded decimal. This code makes use of 8 bits and represents 28= 256 characters. It is an 8 bit code. • It is used in IBM mainframe computers and mid range computer systems.
  • 6. ASCII Code • ASCII Stands for American Standard Code for Information Interchange. As the computer understands only numerical values, So all characters must have numerical equivalent called alphanumeric code. • ASCII is the international standard for representing characters, numbers and symbols. The idea is to represent numbers as text. • ASCII is the most common character encoding format for text data in computers. This standard is used to represent 27 = 128 characters. It is an 7 bit code.
  • 7. ASCII Code • A-Z is represented from 65-90, a-z is represented from 97- 122. • Ex- ‘Cs’ is represented as Letter Decimal Binary C 67 1000011 s 115 1110011
  • 8. Gray Code • Gray code is invented by a scientist named Frank Gray. It is a non weighted code which means that weights are not assigned to bits. • It is also called as unit distance code because it exhibits a single bit change from one gray code bit pattern to the next code bit. • It is not an arithmetic code. It is also called as cyclic code or reflective code. • Gray code is usually helpful in shaft position encoders. It reduces the power of switching. • Gray code is usually helpful in shaft position encoders. It reduces the power of switching. • This code reduces the number of errors.
  • 9. Gray code Decimal Number Binary Number Gray code 0 0000 0000 1 0001 0001 2 0010 0011 3 0011 0010 4 0100 0110 5 0101 0111 6 0110 0101 7 0111 0100 8 1000 1100 9 1001 1101 10 1010 1111 11 1011 1110 12 1100 1010 13 1101 1011 14 1110 1001 15 1111 1000
  • 10. Excess-3 code • This is also called as XS-3 code. It is unweighted 4 bit code used to express decimal numbers. • Excess-3 code can be obtained by adding 3 to each decimal digit in a decimal number and converting the sum to a 4 bit binary number. • This code exhibit self-complementing property which is useful in arithmetic operations. • Ex- 5 0101 + 3 0011 = 8  1000
  • 11. Excess-3 code Decimal BCD 8421 Excess-3 BCD + 0011 0 0000 0011 1 0001 0100 2 0010 0101 3 0011 0110 4 0100 0111 5 0101 1000 6 0110 1001 7 0111 1010 8 1000 1011 9 1001 1100
  • 12. Unicode • The different computer coding schemes don’t have enough number of bits to represent all characters and language specific symbols of multiple languages. Therefore, Unicode standard as designed to overcome this problem. • Unicode is a universal character encoding standard that defines binary codes in bytes, words and double words for characters used in different languages. • It provides an efficient way to encode Multilanguage plain text.
  • 13. Unicode • Unicode standard assigns a distinct number for each and every character. It also assigns codes for special characters, mathematical & technical symbols. • Special feature of Unicode is that it encodes up to 1 million characters (106) with unique codes. • Unicode has 3 types of encoding formats.  UTF-8  UTF-16  UTF-32