Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Chapter 1 Digital Systems and Numbers System
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Data Representation in Computers
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.
Number Systems and Arithmetic
Number Systems and Codes In PLC
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Number Systems and Codes
Digital Systems and Binary Numbers
Data Representation Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Numeral Systems Subjects: Numeral System Positional systems Decimal
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Logic and Digital System Design - CS 303
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Information Representation. Digital Hardware Systems Digital Systems Digital vs. Analog Waveforms Analog: values vary over a broad range continuously.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Number Systems. Today Decimal Hexadecimal Binary –Unsigned Binary –1’s Complement Binary –2’s Complement Binary.
مدار منطقي مظفر بگ محمدي Course Structure & Grading Homework: 25% Midterm: 30% Final:50% There is 5% extra! ( =105!) Textbook:
Lecture 4 Last Lecture –Positional Numbering Systems –Converting Between Bases Today’s Topics –Signed Integer Representation Signed magnitude One’s complement.
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 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,
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
Positional Notation 642 in base 10 positional notation is:
1 IT 231, CMPE 331 Digital Logic Design Week 2 Number systems and arithmetic.
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.
AEEE2031 Data Representation and Numbering Systems.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computer Number System
Unit - 3 NUMBER SYSTEM AND CODES
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
Chapter 1 : Introduction to Binary Systems 1.1. Introduction to Digital Systems 1.2. Binary Numbers 1.3. Number Base Conversion 1.4. Octal and Hexadecimal.
ECE DIGITAL LOGIC LECTURE 2: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/14/2016.
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
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.
Fall’ 2014 Number System CSE Number System How Computers Represent Data Binary Numbers The Binary Number System Bits and Bytes Text Codes Binary.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
CPE 201 Digital Design Lecture 2: Digital Systems & Binary Numbers (2)
Number Systems and Codes
CHAPTER 1 : INTRODUCTION
Number Systems.
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
Writer:-Rashedul Hasan. Editor:- Jasim Uddin
Number System conversions
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Data Structures Mohammed Thajeel To the second year students
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Numbering System TODAY AND TOMORROW 11th Edition
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
Chapter Four Data Representation in Computers By Bezawit E.
Number Systems Rayat Shikshan Sanstha’s
William Stallings Computer Organization and Architecture 10th Edition
Number Systems Rayat Shikshan Sanstha’s
CHAPTER 69 NUMBER SYSTEMS AND CODES
Presentation transcript:

Chapter 1 Number Systems Digital Electronics

Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages of digital signals over analog. Binary system Review of binary conversions.

Review of base 10 – decimal number system A decimal number with the value of each place holder or digit can be expressed as a power of 10. For example in decimal number , 1 is at thousands place, 2 at hundreds, 3 at tens, 4 at units, 5 at tenths and 6 at hundredths. This number can be expressed by sum of weights as, x x x x X X In decimal number system we have 10 symbols i. e. 0, 1, 2, 3, 4,5,6, 7, 8, 9 Number of symbols for any number system is equal to base or radix of that system. So, decimal number system has base 10.

In any number system, when the count at any digit place passes to highest value of symbol, the digit rolls back to 0 and next digit is incremented by 1. For example, in decimal number system, if the digit at units place reaches to 9 then units place is set to 0 and tens place is set to 1. Another example is an electricity unit reading meter. 0  1  2  3  4  5  6  7  8  9  10

Binary Number System Need of binary number system If we use decimal number system for building electronic circuits, then we need to generate, manipulate and store 10 different logic levels. This will make the electronic circuitry complex. It is relatively easy to build the circuits which can handle only 2 logic levels. Therefore binary number systems are used in designing of digital systems.

Binary Number System Binary number system uses only two symbols i. e. 0 and 1. A binary digit or symbol is known as a bit and each binary digit can be expressed as power of 2. In binary system you count as 0  1  10  11  100  101  110  111, and so on. Binary numbers are also known as binary words, and binary words with certain number of bits have also acquired special names. A binary word with 4 bits is called a nibble. A binary word with 8 bits is called a byte. A binary word with 16 bits is called a word. A binary word with 32 bits is called a double word.

Binary Number System In any binary word the rightmost bit is known as Least Significant bit (LSB) and leftmost bit is known as Most Significant bit (MSB). For example in a byte is MSB 1 is LSB

Octal Number System Octal number system uses 8 symbols i. e. 0,1,2,3,4,5,6,7. Therefore, it is also called base 8 system. In octal number system you can count as 0  1  2  3  4  5  6  7  10  11  12 and so on. If we have very long string of binary numbers it is not convenient to handle that data and user may convert the data to equivalent octal code. By using this system code length can be reduced to one third of its length in binary number system.

Hexadecimal Number System The hexadecimal system has base 16 i. e. it contains 16 symbols. These symbols are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E, and F. It is also known as alphanumeric number system as it uses both digits and alphabets. What is the need of such system?

HexadecimalDecimalBinary A B C D E F From the table you can see that a long string is used to represent number “16” in binary number system but If we use hexadecimal number system in place of binary number system this length will get reduced to a single symbol ‘F’

Conversions from one number system to another Need of number system conversions As we know that computer understands the language of 0 and 1 only, we need to convert the data into binary form before feeding it to the computer and also we need to convert it back to decimal form for user. Because of this reason we need to learn conversion methods.

Conversion from any number system to decimal number system In general decimal equivalent of a number, expressed in any other number system is given by, a j. r n + a j-1. r n a 2. r 2 + a 1. r1 + a 0 + a -1. r -1 + a -2. r a -k. r -m ……. eq.1 where, m, n  represents place value or power of base by which the coefficient should be multiplied. r  represents the base of number system in which the number is expressed. aj  represents the jth coefficient of the digit which can be any of the digit of number system in which the number is expressed.

Keeping this equation in mind let us try conversion of binary number into decimal number. (A) 10 = 1 x x x x x2 -2 = 6.75 Similarly, try the conversion of following binary numbers to decimal equivalent. (.0001) 2 ( ) 2 (.101) 2

Octal to decimal conversion Using equation 1 convert the following numbers into decimal numbers (314) 8 (345) 8 (630.4) 8

Hexadecimal To Decimal Conversion Using equation 1 convert the following numbers into decimal numbers (10BF) 16 (176) 16

Conversion from decimal to binary Repeated Division by 2 method Begin by dividing the decimal number by 2. Then divide each resulting quotient by 2 until there is a 0 whole-number quotient. The remainders generated by each division form the binary number. The first remainder is the LSB and the last remainder is the MSB of the binary number.

Example: Convert decimal no. 64 to binary number (64) 10 = ( ) 2

Conversion from decimal to octal Repeated Division by 8 method Begin by dividing the decimal number by 8. Then divide each resulting quotient by 8 until there is a 0 whole-number quotient. The remainders generated by each division form the binary number. The first remainder is the LSB and the last remainder is the MSB of the binary number.

Convert the following decimal numbers in numbers (279) 10 (43) 10 Convert the following decimal numbers to hexadecimal numbers (837) 10 (2748) 10

Conversion from binary to octal number system For any given binary number make groups of three digits each, starting from the binary point and proceeding from the left to the right. After making groups, start assigning octal digit to each group. For example if you want to convert to octal number then as described above make groups of digit ( ) 2 ( 3 3 3) 8

Conversion from binary to hexadecimal number system For binary to hexadecimal conversion, same method which was used for binary to octal conversion can be used, with an exception that now you need to make group of four digits starting from right side and proceeding towards the left. after making groups assign equivalent hexadecimal code to each group. Example: Convert to a hexadecimal number ( ) 2 ( 3 D E 3) 16

Convert the following binary numbers to octal numbers ( ) 2 ( ) 2 Convert the following binary numbers to hexadecimal numbers ( ) 2 ( ) 2

Signed Numbers In binary number system, bits are also used to represent sign of number. Remember the decimal number system in which “+” and “-” signs are used to represent the sign of number. Binary system uses the bits “0” and “1” to show sign of number. A “0” is for positive and “1” is for negative. The left most bit in a signed binary number is the sign bit, which tells whether the number is positive or negative. Example: Sign bit Magnitude bits This is decimal number +25.

Complements Complements are used in digital computers to simplify the subtraction operation and for logical manipulations. Types of complements 1) The radix complement 2) Diminished radix complement Radix complement is also called r’s complement, and diminished radix complement as (r -1)’s complement.