Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

NUMBERS DESCRIBE THE SYSTEM
DATA REPRESENTATION CONVERSION.
Number Systems Benchmark Companies Inc PO Box Aurora CO
Digital Systems Number Systems and Codes Wen-Hung Liao, Ph.D.
Chapter Chapter Goals Know the different types of numbers Describe positional notation.
Copyright (c) 2004 Professor Keith W. Noe Number System & Codes Number Conversions Part II.
Chapter 02 Binary Values and Number Systems Nell Dale & John Lewis.
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.
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
2.1 2 Number Systems Foundations of Computer Science  Cengage Learning.
Number Systems and Codes In PLC
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Number Systems.
CS231 Fundamentals1 Fundamentals What kind of data do computers work with? – Deep down inside, it’s all 1s and 0s What can you do with 1s and 0s? – Boolean.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Supplemental Chapter Number Bases
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
NUMBER SYSTEM.
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.
Number Systems and Codes
Positional Notation 642 in base 10 positional notation is:
Number Base Conversions
Number System sneha.
Octal to Decimal Hexadecimal DecimalOctal Binary.
Programming Logic Controllers Number Systems and Codes - Chapter 3.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Codes Octal Power Hexadecimal ASCII BCD Code
Discrete Mathematics Numbering System.
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.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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.
Binary Values. Numbers Natural Numbers Zero and any number obtained by repeatedly adding one to it. Examples: 100, 0, 45645, 32 Negative Numbers.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
Digital Design Chapter One Digital Systems and Binary Numbers
Number Systems and Codes
Chapter 02 Nell Dale & John Lewis.
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
By: Jonathan O. Cabriana
Number Systems.
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
Chapter 3 Data Representation
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Data Storage Introduction to computer, 2nd semester, 2010/2011
Number Systems and Binary Arithmetic
Chapter 4 Number Systems.
There are 10 types of people of people in this world…
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Numeral systems (radix)
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Chapter 2 Number Systems.
Remember the 10 types of people of people in this world…
Number Systems.
Chapter 2 Number Systems.
Presentation transcript:

Chapter 32 Binary Number System

Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place value for each bit in a binary number –Convert binary numbers to decimal, octal, and hexadecimal numbers

Objectives (cont’d.) –Convert decimal, octal, and hexadecimal numbers to binary numbers –Convert decimal numbers to 8421 BCD code –Convert 8421 BCD code numbers to decimal numbers

Binary Numbers Base-two system –Contains two digits, 0 and 1 Place value –Position of the 0 or 1 indicates its value within the number Highest number that can be represented –2ⁿ - 1

Figure Decimal number and equivalent binary table.

Binary and Decimal Conversion To convert decimal numbers to binary –Divide the decimal number by 2 –Write down the remainder after each division –The remainders, taken in reverse order, form the binary number

Octal Numbers Octal numbers –Allow reading of large binary numbers –Breaks binary number into groups of three –Base 8

Figure Decimal and binary equivalent of octal numbers.

Octal Numbers (cont’d.) To convert binary to an octal number –Divide the binary number into groups of three starting from the right To convert an octal number to binary –Reverse process –Convert the octal number to binary groups of three

Figure Place values of octal numbers. Octal Numbers (cont’d.)

Hexadecimal Numbers Hexadecimal number system –Used with microprocessor-based systems –Breaks binary number into groups of four –Reduces error when entering data –Base 16

Hexadecimal Numbers (cont’d.) To convert binary to hexadecimal number –Divide the binary number into groups of four starting from the right To convert hexadecimal number to binary –Reverse the process –Convert the hexadecimal number to binary groups of four

Figure Place values of hexadecimal numbers. Hexadecimal Numbers (cont’d.)

BCD Code Binary-coded-decimal (BCD) –8421 code –Consists of four binary digits –Represents the digits 0 through 9 –Permits easy conversion between decimal and binary form

BCD Code (cont’d.) To express a decimal number in the 8421 code: –Replace each decimal digit by the 4-bit code To determine a decimal number from an 8421 code: –Break the code into groups of 4 bits –Write the decimal digit represented by each 4-bit group

Summary The binary number system contains two digits, 0 and 1 –Place value increases by a power of 2 To convert from decimal to binary: –Divide the decimal number by 2 –Write down the remainder after each division –The remainders, taken in reverse order, form the binary number

Summary (cont’d.) Similar steps are used to convert octal and hexadecimal numbers to and from decimal numbers as with the binary number system The 8421 code (BCD) is used to represent digits 0 through 9