Text (and email) Plain text and formatted text. Plain text is usually coded in “ASCII” (American Standard Code for Information Interchange). A 7 bit code.

Slides:



Advertisements
Similar presentations
Introduction What are we going to learn? Course outline. Some details. Assessment. Introduction to media technology and revision.
Advertisements

KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Information Representation
Review of HTML Ch. 1.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
ENGIN112 L4: Number Codes and Registers ENGIN 112 Intro to Electrical and Computer Engineering Lecture 4 Number Codes and Registers.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
Using Binary Coding Information Remember  Bit = 0 or 1, Binary Digit  Byte = the number of bits used to represent letters, numbers and special characters.
CS 151 Digital Systems Design Lecture 4 Number Codes and Registers.
EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
Lesson 2 0x Coding ASCII Code.
What is the ASCII Code? The American Standard Code for Information Interchange is a character-encoding scheme based on the ordering of the English alphabet.
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.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
WXET1143 Lecture2: Basic Communication. Communication using electricity  Since electricity was discovered, scientist have researched on ways to use the.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Chapter 3 Data Representation
Computer Structure & Architecture 7c - 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.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 8 INTRODUCTION TO INFORMATION THEORY.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
CS151 Introduction to Digital Design
Data Representation Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
Springfield Technical Community College Center for Business and Technology.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Signed Binary Numbers Arithmetic Subtraction – In 2’s-complement form: Example: 1.Take the 2’s complement of the subtrahend (including the sign bit) and.
MECH1500 Chapter 3.
Representing Characters in a Computer System Representation of Data in Computer Systems.
The ASCII Alphanumeric Code What is it? Why use it? How do we use it?
Day 6 - Encoding and Sending Formatted Text
Binary Representation in Text
Binary Representation in Text
Chapter 3 Data Representation Text Characters
NUMBER SYSTEMS.
Lec 3: Data Representation
Binary Numbers and ASCII and EDCDIC
Binary
Unit 18: Computational Thinking
Day 6 - Encoding and Sending Formatted Text
Character coding schemes
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Introduction to Chapter 2
Chapter 3 Data Representation
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.
Data Representation ASCII.
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
LING 388: Computers and Language
Numbering System TODAY AND TOMORROW 11th Edition
Information Representation
Presenting information as bit patterns
COMS 161 Introduction to Computing
Lecture 9: Radix-64 Tutorial
COMS 161 Introduction to Computing
Day 6 - Encoding and Sending Formatted Text
Learning Intention I will learn how computers store text.
Presentation transcript:

Text (and ) Plain text and formatted text. Plain text is usually coded in “ASCII” (American Standard Code for Information Interchange). A 7 bit code which allows 128 characters. Computers usually deal with 8 bits so ASCII appears to “waste” one bit.

Text “ASCII” coded text was originally designed to connect terminals (keyboard and text monitors) to remote computers. Errors could occur in the connection. Bit 8 used for parity checks.

ASCII Full list of ASCII codes will appear on my website and will be given as a handout. But common letters and numbers are easy to remember. Upper case letters –Add 64 (decimal) (40 (hex)) to position in alphabet. Eg Code for B is = 66 Or = 42 in hexadecimal.

ASCII Lower case letters –Add 96 (decimal) (60 (hex)) to position in alphabet. Eg Code for a is = 97 Or = 61 in hexadecimal. Numbers –Add 48 (decimal) (30 (hex)) to number. Eg Code for 5 is = 53 Or = 35 in hexadecimal. Working in hex may be easier.

Parity Since we mentioned it. Error checking mechanism. Odd or even, (but we decide first). In 7 bit code (like ASCII) we use the 8 th (MSB) for parity. We set the bit to one or zero to make the total number of 1’s odd (for odd parity) or even (for even parity).

Odd Parity Example 1 –Say our seven bit number is There are 4 ones. –We add an 8 th bit of value 1 to make the total number of ones odd, giving (1) Example 2 –Say our seven bit number is There are 3 ones. –We add an 8 th bit of value 0 to keep the total number of ones odd, giving (0)

Even Parity Example 1 –Say our seven bit number is There are 3 ones. –We add an 8 th bit of value 1 to make the total number of ones even, giving (1) Example 2 –Say our seven bit number is There are 4 ones. –We add an 8 th bit of value 0 to keep the total number of ones even, giving (0)

Parity Checked by receiving computer to see if there is an error. Can you see a problem with this? Clue - 2 errors. Midi code (for sound synthesiser communication) very similar to ASCII, but no parity.