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

Block cipher modes of operation
Block cipher modes of operation Block cipher modes of operation
Block cipher modes of operation harshit chavda
 
Growth of e commerce industry
Growth of e commerce industryGrowth of e commerce industry
Growth of e commerce industrySahil Munjal
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programmingHarshita Yadav
 
Modern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherModern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherMahbubur Rahman
 
Secure Hash Algorithm (SHA-512)
Secure Hash Algorithm (SHA-512)Secure Hash Algorithm (SHA-512)
Secure Hash Algorithm (SHA-512)DUET
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instructionDeepikaT13
 
Introduction of cryptography and network security
Introduction of cryptography and network securityIntroduction of cryptography and network security
Introduction of cryptography and network securityNEHA PATEL
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language CourseVivek chan
 
Break and continue in C
Break and continue in C Break and continue in C
Break and continue in C vishnupriyapm4
 
Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Warren0989
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Lovely Singh
 

What's hot (20)

Block cipher modes of operation
Block cipher modes of operation Block cipher modes of operation
Block cipher modes of operation
 
Cryptography and Network Security William Stallings Lawrie Brown
Cryptography and Network Security William Stallings Lawrie BrownCryptography and Network Security William Stallings Lawrie Brown
Cryptography and Network Security William Stallings Lawrie Brown
 
Growth of e commerce industry
Growth of e commerce industryGrowth of e commerce industry
Growth of e commerce industry
 
data types in C programming
data types in C programmingdata types in C programming
data types in C programming
 
Modern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key CipherModern Block Cipher- Modern Symmetric-Key Cipher
Modern Block Cipher- Modern Symmetric-Key Cipher
 
Role-of-lexical-analysis
Role-of-lexical-analysisRole-of-lexical-analysis
Role-of-lexical-analysis
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
Modes of Operation
Modes of Operation Modes of Operation
Modes of Operation
 
Password locker project
Password locker project Password locker project
Password locker project
 
Secure Hash Algorithm (SHA-512)
Secure Hash Algorithm (SHA-512)Secure Hash Algorithm (SHA-512)
Secure Hash Algorithm (SHA-512)
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instruction
 
Introduction of cryptography and network security
Introduction of cryptography and network securityIntroduction of cryptography and network security
Introduction of cryptography and network security
 
Codes
CodesCodes
Codes
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
 
Break and continue in C
Break and continue in C Break and continue in C
Break and continue in C
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Programming in c Arrays
Programming in c ArraysProgramming in c Arrays
Programming in c Arrays
 
Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...Solutions manual for c++ programming from problem analysis to program design ...
Solutions manual for c++ programming from problem analysis to program design ...
 
Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)Number System (Binary,octal,Decimal,Hexadecimal)
Number System (Binary,octal,Decimal,Hexadecimal)
 
Python dictionary
Python   dictionaryPython   dictionary
Python dictionary
 

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

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxAnaBeatriceAblay2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
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
 

Recently uploaded (20)

Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptxENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
ENGLISH5 QUARTER4 MODULE1 WEEK1-3 How Visual and Multimedia Elements.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .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...
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
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
 

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