Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.

Slides:



Advertisements
Similar presentations
James Tam Beyond base 10: Non-decimal based number system What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
Advertisements

James Tam Beyond Base 10: Non-decimal Based Number Systems What is the decimal based number system? How do other number systems work (binary, octal and.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
CHAPTER 2: Number Systems
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Data Representation in Computers
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Binary Numbers.
Chapter 1 1 Number Systems. 2 Objectives  Understand why computers use binary (Base-2) numbering.  Understand how to convert Base-2 numbers to Base-
CISC1400: Binary Numbers & Computer Fall 2011, Dr. Zhang 1.
Numbering Systems Decimal (Denary) base 10. Clumsy when dealing with computers. Other systems –Binary –Octal –Hexadecimal Convenient when dealing with.
Simple Data Type Representation and conversion of numbers
CS105 INTRODUCTION TO COMPUTER CONCEPTS BINARY VALUES & NUMBER SYSTEMS Instructor: Cuong (Charlie) Pham.
Based on slides by:Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. ECE/CS 352: Digital System Fundamentals Lecture 1 – Number Systems and.
IT-101 Section 001 Lecture #3 Introduction to Information Technology.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Numbering Systems. CSCE 1062 Outline What is a Numbering System Review of decimal numbering system Binary representation range Hexadecimal numbering system.
1 Digital Technology and Computer Fundamentals Chapter 1 Data Representation and Numbering Systems.
Chapter 3 Data Representation
Comp Sci 251 Intro 1 Computer organization and assembly language Wing Huen.
Chapter 3 Section 1 Number Representation Modern cryptographic methods, unlike the classical methods we just learned, are computer based. Representation.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
1-1 Lecture 1 Class Overview and Appendix A -- Number Systems.
Chapter 2 Binary Values and Number Systems. 2 2 Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645,
Computer Systems Architecture Copyright © Genetic Computer School 2008 CSA 1- 0 Lesson 1 Number System.
Number Systems Ron Christensen CIS 121.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Number Representation. Representing numbers n Numbers are represented as successive powers of a base, or radix.
CHAPTER 3: Number Systems
Representing Information Digitally (Number systems) Nell Dale & John Lewis (adapted by Erin Chambers, Michael Goldwasser, Andrew Harrington)
Positional Notation 642 in base 10 positional notation is:
CHAPTER 3: Number Systems The Architecture of Computer Hardware and Systems Software & Networking: An Information Technology Approach 4th Edition, Irv.
Data Representation – Chapter 3 Section 3-1. Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
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.
Dale & Lewis Chapter 2 Binary Numbers and Number Systems.
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
CDP ECE Spring 2000 ECE 291 Spring 2000 Lecture 2: Number Systems & x86 Instructions Constantine D. Polychronopoulos Professor, ECE Office: 463.
 Lecture 2 Processor Organization  Control needs to have the  Ability to fetch instructions from memory  Logic and means to control instruction sequencing.
Discrete Mathematics Numbering System.
MECH1500 Chapter 3.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
CHAPTER 3: Number Systems
 2012 Pearson Education, Inc. Slide Chapter 4 NumerationSystems.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
Number Systems. The position of each digit in a weighted number system is assigned a weight based on the base or radix of the system. The radix of decimal.
ECE 2110: Introduction to Digital Systems Number Systems: conversions.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
Discrete Mathematics Numbering System.
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
CSE 102 Introduction to Computer Engineering
Chapter 3 Data Representation
Tools of Web Development 1: Module A: Numbering Systems
Number System conversions
University of Gujrat Department of Computer Science
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Introduction to IT By: Muhammed s. anwar.
Chapter 4 Number Systems.
Numbering System TODAY AND TOMORROW 11th Edition
Chapter 2: Number Systems
Digital Logic Design (CSNB163)
Chapter Four Data Representation in Computers By Bezawit E.
Information Representation
UNIT – 3 & 4. Data Representation and Internal
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Data Representation – Chapter 3 Section 3-1

Terminology “Digital” –Discrete, well defined values/steps –Opposite of analog –Analogy: digital is to analog as int is to double “Binary” –A system consisting of two states –on/off, true/false, yes/no, high/low, 0/1 –Basis for modern computers

Terminology “Bit” –Binary-digit –Smallest unit of storage in modern computers

Data Representation – what does this “mean”? –one million, one –sixteen million, seven hundred seventy seven thousand, two hundred, seventeen –two hundred sixty two thousand, one hundred forty five –sixty five –“A” –AJMP assembly language instruction

Data Representation –Decimal number –Hexadecimal number –Octal number –Binary number –ASCII character –8051 machine instruction

Number Systems A number system is defined by its base or radix –The number of unique digits used in the system –Digits range in value from 0 to radix-1 –Larger values are created by stringing together digits Resultant value is defined by d: digit, b: base, i: position with 0 being the first position to the left of the “base point”, increasing to the left, decreasing to the right

Number Systems Binary is convenient/efficient for use in a computer… –Electronic circuits can be easily designed to deal with two distinct levels e.g. TTL 0-volts and 5-volts … but extremely inconvenient for human consumption –Humans were designed to work with ten distinct levels e.g. fingers We’ll concentrate on decimal, hexadecimal, octal, and binary

Conversion Base b to decimal, b = 2 (binary) Decimal to base b –Integer divide value by b –Output remainder –Repeat on quotient –Until quotient is zero ValueQuotient Value / 2 Remainder Value %

Conversion Binary to octal –Separate binary number into groups of 3 binary digits padding the left with 0’s if necessary –Convert groups to decimal digits > > 11 8

Conversion Binary to hexadecimal –Separate binary number into groups of 4 binary digits padding the left with 0’s if necessary –Convert groups to decimal digits > > (?) –Not exactly — > A 16 —F 16 i.e ABCDEF

Conversion Octal to hexadecimal and hexadecimal to octal –Convert to binary then to the target radix using previous methods

Conversion Octal and hexadecimal are useful when working closely with the architecture –Designing circuits –Designing device interfaces –Writing assembly language programs In such situations one is generally concerned with bit patterns rather than the decimal value The conversions can be done in your head

Homework – chapter 3 3-1, 3-2, 3-3, 3-4, 3-5, 3-6, 3-7, 3-8 Due Thursday Will discuss in class