1 Chapter 2 Number Systems, Operations, and Codes.

Slides:



Advertisements
Similar presentations
ECE 331 – Digital System Design
Advertisements

Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
Floyd Digital Fundamentals, 9/e Copyright ©2006 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved. Slide 1 Digital Fundamentals.
CHAPTER 2 Number Systems, Operations, and Codes
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Number Systems. 2 The total number of allowable symbols in a number system is called the radix or base of the system. Decimal Numbers: radix = 10 (symbols:
Digital Systems Number Systems and Codes Wen-Hung Liao, Ph.D.
SYEN 3330 Digital Systems Jung H. Kim Chapter 1 1 SYEN 3330 Digital Systems Chapter 1.
ECE 301 – Digital Electronics Course Introduction, Number Systems, Conversion between Bases, and Basic Binary Arithmetic (Lecture #1)
Copyright (c) 2004 Professor Keith W. Noe Number System & Codes Number Conversions Part II.
Number System and Codes
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
ASCII & Gray Codes.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
NUMBER SYSTEM AND CONVERSION Digital Circuit Choopan Rattanapoka.
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 and Codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
CSC212 – Computer Organization and Design
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Digital Systems and Logic Design
Chapter 3 Data Representation
Binary Arithmetic & Data representation
NUMBER SYSTEM AND COMPUTER CODES Chapter 2. Prelude Fingers, sticks, and other things for counting were not enough! Counting large numbers Count in groups.
Supplemental Chapter Number Bases
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
CHAPTER 2 NUMBER SYSTEMS, OPERATIONS, AND CODES 数制系统、运算和编码 主讲教师:谷雷.
Computer Systems Architecture Copyright © Genetic Computer School 2008 CSA 1- 0 Lesson 1 Number System.
1 EENG 2710 Chapter 1 Number Systems and Codes. 2 Chapter 1 Homework 1.1c, 1.2c, 1.3c, 1.4e, 1.5e, 1.6c, 1.7e, 1.8a, 1.9a, 1.10b, 1.13a, 1.19.
Number systems, Operations, and Codes
Number Systems and Codes
Number Systems & Operations
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
ECE/CS 352 Digital System Fundamentals© T. Kaminski & C. Kime 1 ECE/CS 352 Digital Systems Fundamentals Spring 2001 Chapter 1 Tom Kaminski & Charles R.
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
Unit - 3 NUMBER SYSTEM AND CODES
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
Digital Logic & Design Adil Waheed Lecture 03. Range of Binary Numbers Processors can handle 64-bit unsigned binary values. Maximum unsigned decimal number.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Digital Systems: Number Systems and Codes Wen-Hung Liao, Ph.D.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
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:
Unit I From Fundamentals of Logic Design by Roth and Kinney.
Number Systems and Codes
Unit 18: Computational Thinking
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 : INTRODUCTION
Introduction to Chapter 2
Chapter 3 Data Representation
Number Systems.
COUNTING IN BINARY Binary weightings 0 x x x x 8
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
Number Systems Base 2, 10, 16.
Digital Systems: Number Systems and Codes
Numbering System TODAY AND TOMORROW 11th Edition
ECE 301 – Digital Electronics
2’s Complement form 1’s complement form 2’s complement form
COUNTING IN BINARY Binary weightings 0 x x x x 8
Table 1.1 Powers of Two.
Number Systems.
FIGURE 1-1 Examples of Voltage Ranges and Waveforms for Binary Signals
L5-7 Notes: Fractions as Decimals
Presentation transcript:

1 Chapter 2 Number Systems, Operations, and Codes

2 Decimal Numbering System The decimal numbering system has 10 digits 0 through 9 The decimal numbering system has a base of 10 with each position weighted by a factor of 10 … … 14.2 = 1    10 -1

3 Binary Numbers The binary numbering system has 2 digits 0 and 1 The binary numbering system has a base of 2 with each position weighted by a factor of 2 … … = 1      2 0

4 Table 2--1

5 Decimal-to-Binary Conversion Sum-of-weight method Binary weights = Binary weights =

6 Repeated division-by-2 method

7 Converting Decimal fractions to Binary Using Sum-of-weights Binary weights = Repeated division by 2 yields the whole number while repeated multiplication by 2 of the fraction yields the binary fraction

8 Binary Addition = = = =

9 Binary Subtraction = = = = with a borrow of

10 Binary Multiplication 0  0 = 0 0  1 = 0 1  0 =  1 = 1 

11 Binary Division Use the same procedure as decimal division

12 Hexadecimal Numbers

13 Binary-to-Hexadecimal Conversion

14 Hexadecimal-to-Binary Conversion

15 Hexadecimal-to-Decimal Conversion

16

17 Decimal-to-Hexadecimal Conversion

18 Binary Coded Decimal (BCD)

19

20 Digital Codes and Parity

21 ASCII (American Standard Code for Information Interchange)

22 Parity Method for Error Detection

23

24 Figure 2--8 The system is in its initial state. Digital System Application

25 Figure 2--9 The system has counted 50 bottles of tablets and is working on the next bottle.

26 Figure The system has just counted its fifty-first bottle of tablets.