Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.

Slides:



Advertisements
Similar presentations
NUMBERS DESCRIBE THE SYSTEM
Advertisements

DATA REPRESENTATION CONVERSION.
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Digital Circuits. Analog and Digital Signals Noise margins in Logic Circuits VMVM.
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Number Systems and Conversion, Binary Arithmetic, and Representation of Negative Numbers (Lecture #10) The slides included.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
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.
Introduction to Number Systems
Binary Number Systems.
The Binary Number System
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
#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.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Tanenbaum, Structured Computer Organization, Fifth Edition, (c) 2006 Pearson Education, Inc. All rights reserved Binary Numbers Appendix.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
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.
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 ≤
ECE 331 – Digital System Design
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
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
Introduction to Computing Dr. Nadeem A Khan. Lecture 10.
Number Base Conversions
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Chapter 1  Number Systems Decimal System Binary System Octal System Hexadecimal System  Binary weighted cods Signed number binary order  1’s and 2’s.
AEEE2031 Data Representation and Numbering Systems.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Digital Systems Digital Logic and Design Dr. Musab Bassam Zghool Text Book: Mano Morris M. “ Digital Logic And Computer Design ”
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
CEC 220 Digital Circuit Design Number Systems & Conversions Friday, January 9 CEC 220 Digital Circuit Design Slide 1 of 16.
CEC 220 Digital Circuit Design Binary Codes
School of Computer and Communication Engineering, UniMAP Mohd ridzuan mohd nor DKT 122/3 - DIGITAL SYSTEM I Chapter.
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
1 Digital Logic Design Lecture 2 More Number Systems/Complements.
CEC 220 Digital Circuit Design Number Systems & Conversions Wednesday, Aug 26 CEC 220 Digital Circuit Design Slide 1 of 16.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
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.
1 Digital Logic Design (41-135) Chapter 5 Number Representation & Arithmetic Circuits Younglok Kim Dept. of Electrical Engineering Sogang University Spring.
Unit 1 Introduction Number Systems and Conversion.
Computer Science 210 Computer Organization
Positional Number Systems Decimal, Binary, Octal and Hexadecimal Numbers Wakerly Section
Integer Real Numbers Character Boolean Memory Address CPU Data Types
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Number Systems.
CSE 102 Introduction to Computer Engineering
Chapter 3 Data Representation
IT 0213: INTRODUCTION TO COMPUTER ARCHITECTURE
Overview Introduction Data representation Fixed Point Representation
TAO1221 COMPUTER ARCHITECTURE AND ORGANIZATION LAB 6
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Digital Electronics & Logic Design
Data Representation in Computer Systems
Numbering System TODAY AND TOMORROW 11th Edition
Computer Science 210 Computer Organization
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
Digital Systems and Binary Numbers
Number Systems Rayat Shikshan Sanstha’s
ECE 331 – Digital System Design
Number Systems Rayat Shikshan Sanstha’s
Information Representation
Presentation transcript:

Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes Review of binary bipolar (signed) codes EE314 Microprocessor Systems

A1.1 Review of number systems Each digit in a decimal number caries two meanings: The value The weight given by the 10 i, where i represent the position of the digit relative to the (decimal) point. The 10 radix (base) For any radix r, the value of a number with n-digit integer part and m-digit fraction part, can be expressed: The digit valueThe weight given by the r i, where i represent the position of the digit relative to the (decimal) point. The used radix (base) The position relative to the radix point. (A1.1) In electronic circuits, the 2 radix is used, associating the two possible digit values to the presence (1) or absence (0) of an electrical signal (voltage) on a transmission line. (A1.2) Binary digiT=bit r-radix numbers

A1.1 Review of number systems Large radix 2 numbers are difficult to analyze by a human observer. Octal numbers (Radix 8) or hexadecimal numbers (radix 16) are used instead. Radix 8 representation uses 8 different digits (0…7). Radix 16 uses 16 different digits (0…9, A, B, C, D, E, F). Every octal digit can be expressed using 3 bits, every hexadecimal digit, using 4 bits. The conversion from radix r=2 k to radix 2 is direct. Every 2 k -digit is replaced by the k-bit binary number having the same value. The reverse conversion groups the bits in packets of k, beginning from the radix point, and end replacing each group with its corresponding 2 k -digit. BCH = Binary-Coded Hexadecimal BCO = Binary-Coded Octal Zeros to complete the group of k bits Separators: “,” or” “ Radix point Binary-Coded Hexadecimal and Binary-Coded Octal numbers

A1.1 Review of number systems Octal numbers or hexadecimal numbers are unusual to a human observer. A way to electrical representation of decimal numbers is the BCD code = Binary-Coded Decimal. Each decimal digit is replaced by the corresponding binary 4 bit number. Bit combinations 1010…1111 are forbidden. The conversions BCD Decimal are direct and similar to BCH Hexadecimal conversions. The conversions BCD Binary are NOT direct (in contrast with BCH Binary and BCO Binary who are direct) Zeros to complete the group of k bits Separators: “,” or” “ Decimal point Binary-Coded Decimal numbers

A1.1 Review of number systems Conversion between decimal and r-radix numbers Performed in decimal arithmetic. (A1.1) r-radix ->decimal Examples decimal -> r-radix Integer part Fraction part

A1.1 Review of number systems Integer decimal to r-radix conversion Examples: Dec.->Bin.Dec.->Hex.

A1.1 Review of number systems Fraction decimal to r-radix conversion Ex: Dec.->Bin. Dec.->Hex.

A1.1 Review of number systems Signed (Bipolar) integer binary numbers Sign bitMagnitude Sign bit To change the sign: Complement the sign bit. Complement all bits. Complement all bits and add 1 LSB. Examples: Signed magnitude: ’ complement: Excess: ’ complement: