Lecture 2 Numbers and number systems. Some material from the last lecture Electronic computers represent information as voltage levels. To make the computer.

Slides:



Advertisements
Similar presentations
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Advertisements

Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
Digital Computers and Information n Digital computers n Number representations n Arithmetic operations n Alphanumeric codes Read MK 3-26.
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
COE 202: Digital Logic Design Number Systems Part 1
BASICS OF COMPUTER APPLICATIONS ASB 102. UNIT 1 Introducing computer system  Number system  What is number system?  Types of number system  Their.
Number Systems Lecture 02.
Number Systems.
1-1 9/4/2015 CS/EE 260. Digital Computers I Jonathan Turner, Washington University CS/EE 260. Digital Computers I Organization and Logical Design Jonathan.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
#1 Lec # 2 Winter EECC341 - Shaaban Positional Number Systems A number system consists of an order set of symbols (digits) with relations.
ECEN2102 Digital Logic Design Lecture 1 Numbers Systems Abdullah Said Alkalbani University of Buraimi.
Conversion between number systems Base 10 Decimal Our ordinal number system; a decimal number provides us a more accurate perception about its quantity.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
NUMBER SYSTEM.
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Computer Number Systems. d n-1 d n-2 d n d 2-m d 1-m d -m Conventional Radix Number r is the radixd i is a digit d i Є {0, 1, ….., r – 1 } -m ≤
1 CS103 Guest Lecture Number Systems & Conversion Bitwise Logic Operations.
Lecture 2 Bits, Bytes & Number systems
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
Dr. Ahmed Telba EE208: Logic Design Lecture# 1 Introduction & Number Systems.
Number systems, Operations, and Codes
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
AEEE2031 Data Representation and Numbering Systems.
Digital Systems and Binary Numbers
Lecture 1: 8/27/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Chapter 2 Number Systems Consists of a set of symbols called digits and a set of relations such as +, -, x, /.
NUMBER SYSTEM. Number System Number Base B => B symbols – Base 16(Hexa):0, 1,……9, A,…, E, F – Base 10 (Decimal): 0, 1, 2,……, 7, 8, 9 – Base 8(Octal):
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Octal to Decimal Decimal Octal Binary Hexadecimal.
1. Number Systems.
NUMBER SYSTEM Prepared by: Engr Zakria.
Number System.
Digital Systems and Binary Numbers
CHAPTER 1 : INTRODUCTION
Digital Systems and Binary Numbers
Number Systems.
Location in course textbook
Number System conversions
Binary Quiz UIN: ____________________
Number Systems and Binary Arithmetic
Numbering System TODAY AND TOMORROW 11th Edition
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
Introduction to Basic Digital Logic
Number Systems Lecture 2.
Number Systems.
Data Representation and Organization
Number Systems created by: S.Shahrukh haider
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Information Representation
Chapter 2 Number Systems.
1. Number Systems Chapt. 2.
Presentation transcript:

Lecture 2 Numbers and number systems

Some material from the last lecture Electronic computers represent information as voltage levels. To make the computer hardware simple and reliable, computers represent information in binary form. –example: voltages greater than 3V are interpreted as representing one value (called “1”), voltages less than 2V are interpreted as representing another value (called “0”). In principle, could use more voltage levels. –example: 0 to.75V represents “0”, 1 to 1.75V represents “1”, 2 to 2.75V represents “2”, and so forth. In practice, this is rarely done. –requires more complex circuits –circuits are more susceptible to noise, hence less reliable

Some material from the last lecture Computers, like all electronic systems, are affected by noise. –noise has various sources (nearby signal changes, thermal vibrations of molecules in semiconductor materials,... ) –in computers, noise can cause binary signals to be misinterpreted The noise margin is the amount of noise that a system can tolerate and still correctly identify a logic high or low. Undefined High Low Undefined High Low 5v 4v 3v 2v 1v 0v noise margin 1 V noise margin 3 V

Radix number systems Some number of positions and some number of symbols The number of positions varies by context The number of symbols is a property of the number system –Decimal symbols –Binary -- 2 symbols –Octal -- 8 symbols –Hexadecimal symbols

Start with whole numbers Each position has a value Each symbol has a value Multiply the value of the symbol by the value of the position, then add –In decimal, 3874 means 3 times 1,000 plus 8 time 100 plus 7 times 10 plus 4 times 1

Decimal, binary, octal, hex In decimal there are 10 symbols (0..9) and the value of each position is a power of 10. –10 0 = 1 = value of the units position –10 1 = 10 = value of next position to the left –etc. In binary, there are 2 symbols, 0 and 1, and the value of each position is a power of 2. In octal, 8 symbols, and powers of 8 In hexadecimal, 16 symbols, and powers of 16

Weight 3784 Decimal Number: Least Significant digit Most Significant digit. is called the radix point 3 is the MSD 4 is the LSD

weight = 1     2 0 = 201 Least Significant bit Most Significant bit weight = 1     2 -2 = Least Significant bit Most Significant bit

K, M and G 2 10 is referred as K (kilo) 2 20 is referred as M (mega) 2 30 is referred as G (giga)

Trinary Numbers weight = 1     3 0 = 2945 Trinary number :

Octal Numbers weight = 1     8 -1 = 87.5 Octal number :

Hexadecimal Numbers weight FA9 FA9 H = 15    16 0 = 4009 Hexadecimal number : FA9 H HexDec A10 B11 C12 D13 E14 F15

Things to do Review from your class notes what we discussed today. Conversions between Number Systems –Binary, octal and hexadecimal Solve 1-6 before coming to the class