DAT2343 Basic Character Encoding Including ASCII © Alan T. Pinck / Algonquin College; 2003.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

DAT2343 Summary of Standard Data Encoding © Alan T. Pinck / Algonquin College; 2003.
DAT2343 Comparison of The LMC and General Computer Models © Alan T. Pinck / Algonquin College; 2003.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
CSC /703 CTI/DePaul1 CSC-255 Lecture 3 Text and Numerical Storage (Chapter 1 from Brookshear) Modified by Ufuk Verun from Jim Janossy © 2002, DePaul.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
Characters and Strings. Characters In Java, a char is a primitive type that can hold one single character A character can be: –A letter or digit –A punctuation.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Computer Arithmetic: Binary, Octal and Hexadecimal Presented by Frank H. Osborne, Ph. D. © 2005 ID 2950 Technology and the Young Child.
IT-101 Section 001 Lecture #4 Introduction to Information Technology.
 Method of representing or encoding numbers  Two main notation types  Sign-value  Roman numerals  Positional (place-value)  Modern decimal notation.
Computer Fluency Binary Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
© BYU 02 NUMBERS Page 1 ECEn 224 Binary Number Systems and Codes.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Representing Information in Binary (Continued)
COMPUTER FUNDAMENTALS David Samuel Bhatti
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.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Dale & Lewis Chapter 3 Data Representation
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Computer Structure & Architecture 7c - Data Representation.
Bits, Bytes, Words Digital signal. Digital Signals The amplitude of a digital signal varies between a logical “0” and logical “1”. – The information in.
CS151 Introduction to Digital Design
10-Sep Fall 2001: copyright ©T. Pearce, D. Hutchinson, L. Marshall Sept Representing Information in Computers:  numbers: counting numbers,
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
SEC (1.4) Representing Information as bit patterns.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Data Representation, Number Systems and Base Conversions
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.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
Characters and Strings
Information Coding Schemes Group Member : Yvonne Tiffany Jurifah bt Junaidi Clara Jane George.
17-Mar-16 Characters and Strings. 2 Characters In Java, a char is a primitive type that can hold one single character A character can be: A letter or.
 Method of representing or encoding numbers  Two main notation types  Sign-value  Roman numerals  Positional (place-value)  Modern decimal notation.
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
1.4 Representation of data in computer systems Character.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
DATA REPRESENTATION - TEXT
Some basic concepts underlying computer archi­tecture
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Data Representation Andrew Csizmadia.
Chapter 3 Data Representation Text Characters
NUMBER SYSTEMS.
Lec 3: Data Representation
Binary Numbers and ASCII and EDCDIC
Number Representation
Standard Data Encoding
Data Transfer ASCII FILES.
Representing Information as bit patterns
Data Encoding Characters.
Representing Nonnumeric Data
Representing Characters
Ch2: Data Representation
Student: Ying Hong Course: Database Security Instructor: Dr. Yang
Information Representation
Presenting information as bit patterns
COMS 161 Introduction to Computing
COMS 161 Introduction to Computing
Digital Encodings.
File Analysis with MicroSoft DEBUG
Learning Intention I will learn how computers store text.
ASCII LP1.
Networks & I/O Devices July 10, 2019.
Chapter 3 - Binary Numbering System
ASCII and Unicode.
Presentation transcript:

DAT2343 Basic Character Encoding Including ASCII © Alan T. Pinck / Algonquin College; 2003

Historical Character Usage Early general purpose computers (dominated by IBM) supported limited usage of non-numeric characters: Identification/headings on printed reports Program source code text Outside of the general computer area, some character encoding was used for text transmission (telegrams); initially Morse code, but this was replaced with fixed length pattern codes when automated equipment began to be used.

Historical Requirements Text was not intended for the general public. Alphabetic characters where only in upper case Relatively few “special characters” (periods, parentheses, dollar signs, arithmetic operators) were supplied. 10 digits, 26 letters, (less than) 20 “special” character symbols  (less than) 56 code patterns were required.

6-Bit Codes A 6-bit encoding systems permits 64 symbols to be encoded. This was enough provided only upper case alphabetic symbols and relatively few “special” symbols were required. IBM and Western Union (the telegraph company) stayed with 6-bit encoding systems after most of the rest of the computer and data transmission companies moved to a system which permitted both upper and lower alphabetics, and more special symbols.

Formation of ASCII General user demand for more character symbols (including lower case alphabetics). IBM did not believe that the market demand was sufficient to move from a 6-bit code No other single company controlled a large enough market share to be able to create a viable system on its own. A group of computer, peripheral, and data transmission companies joined to establish a standard.

ASCII Basics American Standard Code for Information Interchange 7-bit code provided unique codes for up to 128 different characters Some terminal equipment: when idle, the power was off (which would look like ); other terminal equipment: when idle, the power was on (which would look like ). Therefore both the and the patterns were eliminated from the encoding (“null” patterns).

Extended ASCII Byte = Collection of bits used to encode a character ASCII is almost always implemented using an 8-bit byte (character). Only the 7-bit patterns were standardized under ASCII. Standard 8-bit ASCII codes start with a zero-valued bit (followed by the 7-bit ASCII code). “Extended ASCII” codes start with a one-valued bit; these codes are not standard and vary in meaning among different manufactures and equipment.

Major ASCII Coding Patterns First 32 patterns (when written in hexadecimal, any patterns starting with 0 or 1): control codes; the most common of these are 0Ah (Line Feed) and 0Dh (Carriage Return) 20(hex) blank; remainder of codes starting with 2(hex) are “special” characters. 30(hex): “0”; 31(hex): “ 1”; etc. 41(hex): “ A”; 42(hex): “ B”; etc. 61(hex): “a”; 62(hex): “ b”; etc.

Sample ASCII Decoding - 1 Suppose we have the bit stream: … Our first task would normally be to rewrite this as a series of pairs of hexadecimal digits: … …. (in actual practice it would be more common for the “bit stream to be presented already in pairs of hexadecimal digits)

Sample ASCII Decoding - 2 Write down the alphabet and beside each letter write its ASCII code: A : 41h (lower case add 20h)K : 4Bh B : 42h… C : 43hZ : 5Ah ….Remember: digits are 3?h I : 49hblank is 20h J : 4AhLF is 0Ah CR is 0Dh

Sample ASCII Decoding - 3 Given the ASCII hexadecimal pattern (as an example): A 0D 47 6F Matching these codes to the table we created, we should have no trouble converting this into the text: The 3 Goats

Note on End-Of-Line Codes Different operating systems use different standards for indicating an end of line. MicroSoft uses a two-character sequence: 0Dh 0Ah (carriage return and line feed) Unix uses only 0Dh (the carriage return) Macintosh uses only 0Ah (the line feed) This can cause some problems when moving text files from one system to another.

End of Lecture