Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.

Slides:



Advertisements
Similar presentations
KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Advertisements

Information Representation
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
What’s a Computer? Analog, Digital does it matter? Technically there are two categories of computers, analog or digital. Designs reflect two different.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Processing Data.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems & Logic Gates Day 1
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
COMPUTER FUNDAMENTALS David Samuel Bhatti
ASCII and Unicode. ASCII Inside a computer, EVERYTHING is a number – that includes music, sound, and text. In the early days of computers, every manufacturer.
Lesson Objectives Explain the use of binary codes to represent characters Explain the term “Character set” Describe with examples (for examples ASCII and.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Faculty: Anita Kanavalli Department of CSE M S Ramaiah Institute of Technology Bangalore E mail-
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Lecture 6 Topics Character codes Error Detection and Correction
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Agenda Data Representation – Characters Encoding Schemes ASCII
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Chapter 4: Representation of data in computer systems: Characters OCR Computing for GCSE © Hodder Education 2011.
Chapter 7 Data Coding. Agenda Coding Code efficiency and conversion Compression/compaction Code encryption/decryption.
Binary Arithmetic & Data representation
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Digital Logic Lecture 4 Binary Codes The Hashemite University Computer Engineering Department.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Cis303a_chapt03-2a.ppt Range Overflow Fixed length of bits to hold numeric data Can hold a maximum positive number (unsigned) X X X X X X X X X X X X X.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
PREPARED BY: ENGR. JO-ANN C. VIÑAS
DATA REPRESENTATION CHAPTER DATA TYPES Different types of data (Fig. 2.1) The computer industry uses the term “MULTIMEDIA” to define information.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Business Programming I Fall – 2000 By Jim Payne Lecture 05Jim Payne - University of Tulsa2 Alphanumeric Storage Numbers that are not numbers? Alphabetic.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
DATA REPRESENTATION 4 Y. Colette Lemard February 2009.
ASCII AND EBCDIC CODES By : madam aisha.
Representing Characters in a Computer System Representation of Data in Computer Systems.
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
1.4 Representation of data in computer systems Character.
Introduction to computer science Lec2 cs111. Extended Binary Coded Decimal Interchange Code (EBCDIC) is an 8- bit character encoding used mainly on.
There are 10 different types of people in the world. Those who understand binary and those that don’t.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Binary Representation in Text
Binary Representation in Text
Unit 2.6 Data Representation Lesson 2 ‒ Characters
What’s a Computer? Analog, Digital does it matter?
Binary Numbers and ASCII and EDCDIC
Character coding schemes
Bits & Bytes How Computers Represent Data
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
TOPICS Information Representation Characters and Images
Lecture 3 ISE101: Computing Fundamentals
Representing Characters
Ch2: Data Representation
Computer Data Types Basics of Computing.
Fundamentals of Data Representation
ECB2212-Digital Electronics Codes
Learning Intention I will learn how computers store text.
Understanding Binary Numbers.
C Programming Language
Lecture 36 – Unit 6 – Under the Hood Binary Encoding – Part 2
ASCII and Unicode.
Presentation transcript:

Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters such as $ #, / &.  Word = number of bytes a computer can process at one time by the CPU. So, Bits form Bytes and Bytes form Words. Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information Two common formats for coding letters, numbers and special characters are:  ASCII -- American Standard Code for Information Interchange  7 bit code  Originally used on non-IBM systems  Basis of most currently used systems  EBCDIC -- Extended Binary Coded Decimal Interchange Code  8 bit code  Originally used in IBM mainframes Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information Coding in EBCDIC and ASCII:  Letters Letters  We know certain facts about letters  They have an implied ordering  This ordering must be maintained when letters are translated into 0’s and 1’s inside the computer  Numbers Numbers  Numbers clearly have a mathematical order  Numerical ordering must also be maintained when represented as 0’s and 1’s inside the computer Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Codes are organized so that mathematics makes sense  They are ordered so that each subsequent number is larger than the one before. 7 > 5 In ASCII > In EBCDIC > Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Codes are designed so that the ordering of English letters makes sense.  A B C D E F … U V W X Y Z  Over time we consider this ordering to be fixed  The implication is that we can compare letters and that certain letters appear before others in the alphabet.  For Example: A F  ASCII and EBCDIC code letters so that this concept remains valid. Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Codes are designed so that the ordering of English letters makes sense. A < F In ASCII < In EBCDIC < X > F In ASCII > In EBCDIC > Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Codes are designed so that the ordering of English letters makes sense.  At the time of its creation, it was argued that ASCII was a more rational coding scheme based on the way it codes letters.  Both ASCII and EBCDIC are limiting  Both can code all of English and most Romance languages.  As computer use has expanded both became incomplete  ASCII is still the foundation for text based on most computers  UNICODE  Designed to provide a single coding system for every character in every natural language  The Internet uses UNICODE Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Error Checking  Transmission errors are a fact of computer life  Think of the game of Telephone  Power interruptions happen  Life happens  GIGO  What can be done to reduce or repair errors in transmitted characters? Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Parity –  In common English, Parity means two things are equal How could this be applied to error checking?  With computers it applies to the special bit added to a byte so assist computer systems in reducing errors. Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information  Odd Parity  Look at byte, attach either a 0 or a 1 to force the byte to be odd  Examine the byte coded to mean Z In ASCII Count the number of 1s, there are 4, 4 is even, the parity bit is set to one (1) to make the string of bits odd. The byte is coded  EBCDIC does it similarly, by adding a digit at the end. Copyright © 2008 by Helene G. Kershner