Digital Systems Number Systems and Codes Wen-Hung Liao, Ph.D.

Slides:



Advertisements
Similar presentations
KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
Advertisements

Number Systems and Codes
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
ENGIN112 L4: Number Codes and Registers ENGIN 112 Intro to Electrical and Computer Engineering Lecture 4 Number Codes and Registers.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
CS 151 Digital Systems Design Lecture 4 Number Codes and Registers.
EECC341 - Shaaban #1 Lec # 3 Winter Binary Multiplication Multiplication is achieved by adding a list of shifted multiplicands according.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Number System and Codes
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.
Lesson 2 0x Coding ASCII Code.
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
Number Systems.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Programmable Logic Controllers
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
CSC212 – Computer Organization and Design
Digital Systems and Logic Design
Digital Electronics Chapter 1 Binary Systems Digital Electronics Galore! Digital Cameras Digital Versatile Disks (DVD) Digital Computers Digital Televisions.
Chap. 3 Data Representation
Chapter 3 Data Representation
Morgan Kaufmann Publishers
Chapter 2 – Number Systems and Codes Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights.
CS151 Introduction to Digital Design
Number systems: binary, decimal, hexadecimal and octal. Conversion between various number systems Number systems: binary, decimal, hexadecimal and octal.
Number System. Popular number systems Decimal. (Base 10). The system that we humans are most familiar with. Binary. (Base 2). Octal. (Base 8). Hexadecimal.
Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 2 Number Systems and Codes Binary to Decimal Conversions.
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.
1 Chapter 2 Number Systems, Operations, and Codes.
Number Systems and Codes
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC
CSCE 211: Digital Logic Design Chin-Tser Huang University of South Carolina.
Codes Octal Power Hexadecimal ASCII BCD Code
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Signed Binary Numbers Arithmetic Subtraction – In 2’s-complement form: Example: 1.Take the 2’s complement of the subtrahend (including the sign bit) and.
Digital Fundamentals Tenth Edition Floyd Chapter 2 © 2008 Pearson Education.
MECH1500 Chapter 3.
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
WEEK #11 FUNCTIONS OF COMBINATIONAL LOGIC (PART 4)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
AGBell – EECT by Andrew G. Bell (260) Lecture 2.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
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.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Ch2 Number systems and codes
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.
N 3-1 Data Types  Binary information is stored in memory or processor registers  Registers contain either data or control information l Data are numbers.
1. Binary, Decimal, Hexadecimal and Octal. 2. Conversion between various number systems. Number Systems:
Number Systems and Codes
Discrete Mathematics Numbering System.
Unit 18: Computational Thinking
By: Jonathan O. Cabriana
Introduction to Chapter 2
Number Systems.
2 Number Systems and Codes Edited by Jerry Bernardini.
Number Systems and Codes
Digital Systems: Number Systems and Codes
Digital Logic & Design Lecture 05
Chapter 2 Number Systems.
Number Systems Rayat Shikshan Sanstha’s
Number Systems Rayat Shikshan Sanstha’s
Chap. 2 Number Systems and Codes
Chapter 2 Number Systems.
Presentation transcript:

Digital Systems Number Systems and Codes Wen-Hung Liao, Ph.D.

Objectives Convert a number from one number system (decimal, binary, octal, hexadecimal) to its equivalent in one of the other number systems. Cite the advantages of the octal and hexadecimal number systems. Count in octal and hexadecimal. Represent decimal numbers using the BCD code; cite the pros and cons of using BCD. Understand the difference between BCD and straight binary. Understand the purpose of alphanumeric codes such as the ASCII code. Explain the parity method for error detection. Determine the parity bit to be attached to a digital data string

Binary-to-Decimal Conversions Example 1: Example 2:

Decimal-to-Binary Conversions Method one: reverse the process of binary-to- decimal conversion. Method two: repeated division Example: 37 10=

Octal Number System The octal number system has a base of eight. Eight possible digits: 0,1,2,3,4,5,6,7 Octal point Octal-to-decimal conversion: Decimal-to-octal conversion: Octal-to-binary conversion Binary-to-octal conversion Octal system can be used as a “ shorthand ” for expressing large binary numbers.

Hexadecimal Number System The hexadecimal number system has a base of 16. Sixteen possible digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Hex-to-decimal conversion Decimal-to-hex conversion Hex-to-binary conversion Binary-to-hex conversion

BCD Code Binary-Coded-Decimal versus straight binary coding. 0  0000, 1  0001, 2  0010, 3  0011, 4  0100, 5  0101, 6  0110, 7  0111, 8  1000, 9  (decimal)  (BCD)

Alphanumeric Codes ASCII code: American Standard Code for Information Interchange The ASCII code is a 7 bit code, so it has 2^7=128 possible code groups. Refer to Table 2-4.

Parity Method for Error Detection Whenever information is transmitted from one device to another device, errors can occur due to noise. Parity method can be used to detect error. A parity bit is an extra bit that is attached to a code group that is being transferred. In even-parity method, the value of the parity bit is chosen so that the total # of 1s in the code group (including the parity bit) is an even number. In odd-parity method, the value of the parity bit is chosen so that the total # of 1s in the code group (including the parity bit) is an odd number.

Example ASCII ‘ C ’ : Even-parity method: Odd-parity method: The parity bit is issued to detect any single-bit errors that occur during the transmission