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
Text (and ) Plain text and formatted text. Plain text is usually coded in “ASCII” (American Standard Code for Information Interchange). A 7 bit code.
Advertisements

KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
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.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems & Logic Gates Day 1
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Bits and Bytes.
COMPUTER FUNDAMENTALS David Samuel Bhatti
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.
1.6 Signed Binary Numbers.
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.
© 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.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
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:
Cosc 2150: Computer Organization
Digital Logic Lecture 4 Binary Codes The Hashemite University Computer Engineering Department.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
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.
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
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
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.
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.
The ASCII Alphanumeric Code What is it? Why use it? How do we use it?
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.
What’s a Computer? Analog, Digital does it matter?
Lec 3: Data Representation
Binary Numbers and ASCII and EDCDIC
Character coding schemes
Bits & Bytes How Computers Represent Data
Even/odd parity (1) Computers can sometimes make errors when they transmit data. Even/odd parity: is basic method for detecting if an odd number of bits.
Data Encoding Characters.
TOPICS Information Representation Characters and Images
Lecture 3 ISE101: Computing Fundamentals
Representing Characters
Ch2: Data Representation
Dr. Clincy Professor of CS
Fundamentals of Data Representation
Chapter Nine: Data Transmission
ECB2212-Digital Electronics Codes
Learning Intention I will learn how computers store text.
Understanding Binary Numbers.
C Programming Language
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:  EBCDIC -- Extended Binary Coded Decimal Interchange Code  8 bit code  Originally used in IBM mainframes  ASCII -- American Standard Code for Information Interchange  7 bit code  Originally used on non-IBM systems Copyright © 2008 by Helene G. Kershner

Using Binary Coding Information Coding in EBCDIC and ASCII:  Letters  Place holder  Numbers  Place holder 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 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 In EBCDIC Count the number of 1s, there are 5, 5 is odd, the parity bit is set to zero (0) to keep the string of bits odd The byte is coded Copyright © 2008 by Helene G. Kershner