Chapter 1 Number System RGGP, Narwana.

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

System Digital Encoder, Decoder, and Contoh Penerapanya.
NUMBERS DESCRIBE THE SYSTEM
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Electronics Technology Seven-Segment Displays
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Simple Data Type Representation and conversion of numbers
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Chapter 3 Data Representation
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Number Systems Spring Semester 2013Programming and Data Structure1.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
NUMBER SYSTEM.
Number systems, Operations, and Codes
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.
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):
Principles & Applications
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.
Introduction to Digital Electronics Lecture 2: Number Systems.
Digital Electronics Principles & Applications Fifth Edition Chapter 2 Numbers We Use in Digital Electronics ©1999 Glencoe/McGraw-Hill Roger L. Tokheim.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Dr. Nermin Hamza. Agenda Signed Numbers Properties of Switching Algebra.
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.
COMPUTER ARITHMETIC Binary Coded Decimal Presented By Chung Wai Chow.
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Chapter 1 Introduction Digital Systems Digital systems: computation, data processing, control, communication, measurement - Reliable, Integration.
Programmable Logic Controller
Unit 1 Introduction Number Systems and Conversion.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Octal to Decimal Decimal Octal Binary Hexadecimal.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Combinational Circuits
Introduction The term digital is derived from the way computers perform operation, by counting digits. Application of digital technology: television, communication.
Digital Electronics Number Systems and Codes
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
CSE 102 Introduction to Computer Engineering
Number Systems Lab session 1 Xuan Guo.
Chapter 3 Data Representation
Number Systems.
Principles & Applications Seven-Segment Displays
Chapter 1 Number Systems, Number Representations, and Codes
SYEN 3330 Digital Systems Chapter 1 SYEN 3330 Digital Systems.
BEE1244 Digital System and Electronics BEE1244 Digital System and Electronic Chapter 2 Number Systems.
Digital Electronics Ms. Deepa Mehta.
MMNSS COLLEGE,KOTTIYAM DEPARTMENT OF PHYSICS
Chapter 4 Number Systems.
Digital Logic & Design Lecture 03.
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Systems and Binary Numbers
2’s Complement form 1’s complement form 2’s complement form
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Chapter 1 Introduction.
Presentation transcript:

Chapter 1 Number System RGGP, Narwana

CHAPTER 1 PREVIEW Counting in Decimal and Binary Place Value Binary to Decimal Conversion Decimal to Binary Conversion Electronic Translators Hexadecimal Numbers Octal Numbers

COUNTING IN DECIMAL AND BINARY Number System - Code using symbols that refer to a number of items. Decimal Number System - Uses ten symbols (base 10 system) Binary System - Uses two symbols (base 2 system)

Introduction to Numbering Systems We are all familiar with the decimal number system (Base 10). Some other number systems that we will work with are: Binary  Base 2 Octal  Base 8 Hexadecimal  Base 16

PLACE VALUE Numeric value of symbols in different positions. Example - Place value in binary system: Place Value 8s 4s 2s 1s Binary Yes Yes No No Number 1 1 RESULT: Binary 1100 = decimal 8 + 4 + 0 + 0 = decimal 12

BINARY TO DECIMAL CONVERSION Convert Binary Number 110011 to a Decimal Number: Binary 1 1 0 0 1 1 Decimal 32 + 16 + 0 + 0 + 2 + 1 = 51

TEST 9 Binary 1001 = 15 Binary 1111 = 2 Binary 0010 = Convert the following binary numbers into decimal numbers: 9 Binary 1001 = 15 Binary 1111 = 2 Binary 0010 =

DECIMAL TO BINARY CONVERSION Divide by 2 Process Decimal # 13 ÷ 2 = 6 remainder 1 6 ÷ 2 = 3 remainder 0 3 ÷ 2 = 1 remainder 1 1 ÷ 2 = 0 remainder 1 1 1 1

Convert the following decimal numbers into binary: TEST Convert the following decimal numbers into binary: 1011 Decimal 11 = 0100 Decimal 4 = 10001 Decimal 17 =

HEXADECIMAL NUMBER SYSTEM Uses 16 symbols -Base 16 System 0-9, A, B, C, D, E, F Decimal 1 9 10 15 16 Binary 0001 1001 1010 1111 10000 Hexadecimal 1 9 A F 10

HEXADECIMAL AND BINARY CONVERSIONS Hexadecimal to Binary Conversion Hexadecimal C 3 Binary 1100 0011 Binary to Hexadecimal Conversion Binary 1110 1010 Hexadecimal E A

DECIMAL TO HEXADECIMAL CONVERSION Divide by 16 Process Decimal # 47 ÷ 16 = 2 remainder 15 2 ÷ 16 = 0 remainder 2 2 F

HEXADECIMAL TO DECIMAL CONVERSION Convert hexadecimal number 2DB to a decimal number 256s 16s 1s Place Value 2 D B Hexadecimal (256 x 2) (16 x 13) (1 x 11) 512 + 208 + 11 = 731 Decimal

TEST Convert Hexadecimal number A6 to Binary A6 = Convert Hexadecimal number 16 to Decimal 16 = 22 (Decimal) Convert Decimal 63 to Hexadecimal 63 = 3F (Hexadecimal)

Uses 8 symbols -Base 8 System OCTAL NUMBERS Uses 8 symbols -Base 8 System 0, 1, 2, 3, 4, 5, 6, 7 Decimal 1 6 7 8 9 Binary 001 110 111 001 000 001 001 Octal 1 6 7 10 11

Binary-Coded Decimal (BCD) Digit Bit pattern 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 Four bits per digit Note: the following bit patterns are not used: 1010 1011 1100 1101 1110 1111

Example 709310 = ? (in BCD) 7 0 9 3 0111 0000 1001 0011

ASCII Features 7-bit code 8th bit is unused (or used for a parity bit) 27 = 128 codes Two general types of codes: 95 are “Graphic” codes (displayable on a console) 33 are “Control” codes (control features of the console or communications channel)

ASCII Chart

Addition (decimal)

Addition (binary)

Addition (binary)

Addition (binary)

Multiplication (decimal)

Multiplication (binary)

Multiplication (binary) It’s interesting to note that binary multiplication is a sequence of shifts and adds of the first term (depending on the bits in the second term. 110100 is missing here because the corresponding bit in the second terms is 0.

Methods for representing signed ints. signed magnitude 1’s complement (diminished radix complement) 2’s complement (radix complement)

Signed magnitude Ex. 4-bit signed magnitude 1 bit for sign 3 bits for magnitude

1’s Complement 1’s complement of N is defined as (2n -1)-N. If n=4 have (2n -1) being 1 0000 - 1 = 1111 So for n=4 would subtract any 4-bit binary number from 1111. This is just inverting each bit. Example: 1’s compliment of 1011001 is 0100110

2’s complement The 2’s complement is defined as 2n-N Can be done by subtraction of N from 2n or adding 1 to the 1’s complement of a number. For 6 = 0110 The 1’s complement is 1001 The 2’s complement is 1010

Operation with 2’s complement Add 4 and -6 Will use the 2’s complement of -6 or 1010 4 0100 -6 1010 1110 And taking the 2’s complement of 1110 get 0001 + 1 = 0010

ELECTRONIC TRANSLATORS Devices that convert from decimal to binary numbers and from binary to decimal numbers. Encoders - translates from decimal to binary Decoders - translates from binary to decimal

ELECTRONIC ENCODER - DECIMAL TO BINARY Binary output Decimal input 0 1 1 1 0 1 0 1 0 0 1 1 0 0 0 0 Decimal to Binary Encoder 3 7 5 Encoders are available in IC form. This encoder translates from decimal input to binary (BCD) output.

ELECTRONIC DECODING: BINARY TO DECIMAL Binary input Decimal output 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 Binary-to- 7-Segment Decoder/ Driver Electronic decoders are available in IC form. This decoder translates from binary to decimal. Decimals are shown on an 7-segment LED display. This decoder also drives the 7-segment display.