2. Data Formats. Introduction Examples pp. 59.-61 Real World Data Computer Data Input device Dear Mom: Keyboard 10110010… Digital camera 10110010…

Slides:



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

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 4: Data in The Computer Dr. Masri Ayob.
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.
MCT260-Operating Systems I Operating Systems I Using Text Editors.
Chapter 8_2 Bits and the "Why" of Bytes: Representing Information Digitally.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Number Systems & Logic Gates Day 1
© 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
ITEC 1011 Introduction to Information Technologies 2. Data Formats Chapt. 3.
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.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Faculty: Anita Kanavalli Department of CSE M S Ramaiah Institute of Technology Bangalore E mail-
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Sem 1 v2 Chapter 14: Layer 6 - The Presentation layer.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
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.
Numbers and Number Systems
Data Usually computing systems are complex devices, dealing with a vast array of information categories.
Lecture 2 Character Codes and Low-Structure Text Document Formats.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Institute of Technology Sligo - Dept of Computing Sem 1 Chapter 14: Layer 6 - The Presentation layer.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
1 Inside “The Box”. 2 CRT Display Keyboard Mouse “The Box” CD-ROM Drive Floppy Disk Drive Computing Devices – Old and New.
Transforming Data into Information.
Chapter 2 Computer Hardware
Binary Arithmetic & Data representation
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.
Data Representation Conversion 24/04/2017.
Data Representation, Number Systems and Base Conversions
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.
MECH1500 Chapter 3.
Business Programming I Fall – 2000 By Jim Payne Lecture 05Jim Payne - University of Tulsa2 Alphanumeric Storage Numbers that are not numbers? Alphabetic.
Data Representation.
M204 - Data Representation
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
ECE – III SEM BINARY CODES
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.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
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.
Binary Representation in Text
Binary Representation in Text
Binary Numbers and ASCII and EDCDIC
Bits & Bytes How Computers Represent Data
Representing Information as bit patterns
Phnom Penh International University (PPIU)
TOPICS Information Representation Characters and Images
Lecture 3 ISE101: Computing Fundamentals
Ch2: Data Representation
COMS 161 Introduction to Computing
Chapter 1 Number System RGGP, Narwana.
2. Data Formats Chapt. 3.
COMS 161 Introduction to Computing
Learning Intention I will learn how computers store text.
ASCII and Unicode.
Presentation transcript:

2. Data Formats

Introduction Examples pp Real World Data Computer Data Input device Dear Mom: Keyboard … Digital camera …

Format must be appropriate The internal representation must be appropriate for the type of processing to take place (e.g., text, images, sound)

Examples of Standards Type of DataStandards AlphanumericASCII, EBCDIC, Unicode ImageJPEG, GIF, PCX, TIFF Motion pictureMPEG-2, Quick Time SoundSound Blaster, WAV, AU Outline graphics/fontsPostScript, TrueType, PDF

Alphanumeric Data Problem: Distinguishing between the number 123 (one hundred and twenty-three) and the characters “123” (one, two, three) Four standards for representing letters (alpha) and numbers – BCD – Binary-coded decimal – ASCII – American standard code for information interchange – EBCDIC – Extended binary-coded decimal interchange code – Unicode pp

Next 2 slides Standard Alphanumeric Formats BCD ASCII EBCDIC Unicode

Binary-Coded Decimal (BCD) Four bits per digit DigitBit pattern Note: the following bit patterns are not used:

Example = ? (in BCD)

Next 22 slides Standard Alphanumeric Formats BCD ASCII EBCDIC Unicode

The Problem Representing text strings, such as “ Hello, world”, in a computer

Codes and Characters Each character is coded as a byte Most common coding system is ASCII (Pronounced ass-key) ASCII = American National Standard Code for Information Interchange Defined in ANSI document X

ASCII Features 7-bit code 8 th bit is unused (or used for a parity bit) 2 7 = 128 codes Two general types of codes: – 95 are “Graphic” codes (displayable on a console) – 33 are “Control” codes (control features of the console or communications channel)

ASCII Chart

Most significant bit Least significant bit

e.g., ‘a’ =

95 Graphic codes

33 Control codes

Alphabetic codes

Numeric codes

Punctuation, etc.

“Hello, world” Example ======================== Binary Hexadecimal C 6F 2C C 64 Decimal Hello, worldHello, world ======================== ========================

Common Control Codes CR0Dcarriage return LF0Aline feed HT09horizontal tab DEL7Fdelete NULL00null Hexadecimal code

Terminology Learn the names of the special symbols – [ ] brackets – { }braces – ( )parentheses ‘at’ sign – & ampersand – ~tilde

Escape Sequences Extend the capability of the ASCII code set For controlling terminals and formatting output Defined by ANSI in documents X and X The escape code is ESC = 1B 16 An escape sequence begins with two codes: ESC [ 1B 16 5B 16

Examples Erase display:ESC [ 2 J Erase line:ESC [ K

Next 1 slides Standard Alphanumeric Formats BCD ASCII EBCDIC Unicode

EBCDIC Extended BCD Interchange Code (pronounced ebb’-se-dick) 8-bit code Developed by IBM Rarely used today IBM mainframes only

Next 2 slides Standard Alphanumeric Formats BCD ASCII EBCDIC Unicode

16-bit standard Developed by a consortia Intended to supercede older 7- and 8-bit codes Unicode is a standard that precisely defines a character set as well as a small number of encodings for it. It enables you to handle text in any language efficiently

There were four key original design goals for Unicode: To create a universal standard that covered all writing systems. To use an efficient encoding that avoided mechanisms such as code page switching, shift-sequences and special states. To use a uniform encoding width in which each character was encoded as a 16-bit value. To create an unambiguous encoding in which any given 16-bit value always represented the same character regardless of where it occurred in the data.

The Unicode Consortium The Unicode Consortium is a not-for-profit organization that exists to develop and promote the Unicode Standard. Anyone can be a member of the consortium, though there are different types of memberships