Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The necessity and advantages of coding  The variety of coding systems You will learn: 2.

Slides:



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

HEXADECIMAL NUMBERS Code
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
ECE 331 – Digital System Design
Chapter 1 Binary Systems 1-1. Digital Systems
Digital Fundamentals Floyd Chapter 2 Tenth Edition
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
CS2100 Computer Organisation
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
Digital Fundamentals Floyd Chapter 2 Tenth Edition
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Overflow Signed binary is in fixed range -2 n-1  2 n-1 If the answer for addition/subtraction more than the.
Number System and Codes
Data Representation – Chapter 3 Sections 3-2, 3-3, 3-4.
1.6 Signed Binary Numbers.
Number Systems and Codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
ACOE1611 Data Representation and Numbering Systems Dr. Costas Kyriacou and Dr. Konstantinos Tatas.
EKT 121 / 4 ELEKTRONIK DIGIT 1 CHAPTER 1 : INTRODUCTION.
Digital Systems and Logic Design
Binary Arithmetic & Data representation
Computer Structure & Architecture 7c - Data Representation.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
The Digital Codes.
Morgan Kaufmann Publishers
1 Digital Systems and Binary Numbers EE 208 – Logic Design Chapter 1 Sohaib Majzoub.
EE2174: Digital Logic and Lab Professor Shiyan Hu Department of Electrical and Computer Engineering Michigan Technological University CHAPTER 2 Number.
Digital Logic Design Lecture 3 Complements, Number Codes and Registers.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
CS151 Introduction to Digital Design
Logic Design Dr. Yosry A. Azzam. Binary systems Chapter 1.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Number systems & Binary codes MODULE 1 Digital Logic Design Ch1-2 Outline of Chapter 1  1.1 Digital Systems  1.2 Binary Numbers  1.3 Number-base Conversions.
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
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.
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Summer 2012ETE Digital Electronics1 Binary Arithmetic of Signed Binary Numbers.
Chapter 1: Digital Computers and Information Illustration at beginning of each Chapter Base 10 Binary Base 2 Octal Base 8 Hex bas
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Chap 1. Digital Computers and Information Fall 2003 Sang-Hoon Oh Mokwon Univ.
Number Systems and Digital Codes
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
Computer Math CPS120 Introduction to Computer Science Lecture 4.
Tutorial: ITI1100 Dewan Tanvir Ahmed SITE, UofO
ECE 301 – Digital Electronics Representation of Negative Numbers, Binary Arithmetic of Negative Numbers, and Binary Codes (Lecture #11) The slides included.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
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.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  The base of numbers  Conversion between number bases  Arithmetic operations on different bases You will learn:
Chapter 1: Binary Systems
NUMBER SYSTEMS AND CODES. CS Digital LogicNumber Systems and Codes2 Outline Number systems –Number notations –Arithmetic –Base conversions –Signed.
Module –I Codes: Weighted and non-weighted codes
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Introduction to Digital Electronics Lecture 2: Number Systems.
Overview 1-1 Information Representation
ECE DIGITAL LOGIC LECTURE 3: DIGITAL COMPUTER AND NUMBER SYSTEMS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/19/2016.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Computer Math CPS120 Introduction to Computer Science Lecture 7.
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.
COMPUTER ORGANIZATION 4 TH LECTURE. ASCII Code  ASCII ( American Standard Code for Information Interchange).  Input and output devices that communicate.
CS2100 Computer Organisation
Lecture No. 4 Number Systems
3.1 Denary, Binary and Hexadecimal Number Systems
CHAPTER 1 : INTRODUCTION
Digital Logic & Design Lecture 03.
ECE 331 – Digital System Design
Presentation transcript:

Assoc. Prof. Dr. Ahmet Turan ÖZCERİT

 The necessity and advantages of coding  The variety of coding systems You will learn: 2

He/She can justify the need of coding 3  Coding can be defined as the integrity of strict rules between two clusters  In other words, representing any member of a cluster by a code  The advantage of coding  The simplicity of arithmetic operations  Helps to discover errors  Helps to recover from errors  Better performance for memory operations  Better understanding of data operations  Coding can be defined as the integrity of strict rules between two clusters  In other words, representing any member of a cluster by a code  The advantage of coding  The simplicity of arithmetic operations  Helps to discover errors  Helps to recover from errors  Better performance for memory operations  Better understanding of data operations

He/She can justify the need of coding 4  Numeric Codes  1,2,3,4,5,6….  Examples: BCD, , , +3Code, Gray and Parity  Alphanumeric Codes  1,2,3,A,B,C,+,%,&,/, (, ) ……  Examples: ASCII, Unicode  Numeric Codes  1,2,3,4,5,6….  Examples: BCD, , , +3Code, Gray and Parity  Alphanumeric Codes  1,2,3,A,B,C,+,%,&,/, (, ) ……  Examples: ASCII, Unicode

He/She can justify the need of coding 5  BCD Coding : Binary Coded Decimal  The decimal numbers are represented as 4-bit binary numbers  BCD Coding : Binary Coded Decimal  The decimal numbers are represented as 4-bit binary numbers Digit BCD Code ….… Examples BCD Code

He/She can justify the need of coding 6  Example-1: Convert ( ) BCD into decimal  > 9, 0011-> 3, 0110-> 6  Example-2: Convert ( ) BCD into decimal  > 1, 1000-> 8, 0101-> 5, 0100->4  Example-1: Convert ( ) BCD into decimal  > 9, 0011-> 3, 0110-> 6  Example-2: Convert ( ) BCD into decimal  > 1, 1000-> 8, 0101-> 5, 0100->4

He/She can justify the need of coding 7     Decimal code Examples Decimal code

He/She can justify the need of coding 8 Decimal code Examples Decimal code

He/She can justify the need of coding 9 The primary advantage of +3 coding over non-biased coding is that a decimal number can be nines' complemented (for subtraction) as easily as a binary number can be ones' complemented; just invert all bits. In addition, when the sum of two +3 digits is greater than 9, the carry bit of a four bit adder will be set high. This works because, when adding two numbers that are greater than or equal to zero, an "excess" value of six results in the sum. Since a four bit integer can only hold values 0 to 15, an excess of six means that any sum over nine will overflow. 4wXM7_M 0: : : : : : : : : : 1100

He/She can justify the need of coding 10  Gray coding has no radix weight  Gray code cannot be used in arithmetic operations  It reduces error in control signals since it is based on columns  Gray code can be converted easily into binary and vice versa  Gray coding has no radix weight  Gray code cannot be used in arithmetic operations  It reduces error in control signals since it is based on columns  Gray code can be converted easily into binary and vice versa

He/She can justify the need of coding 11

12

13

He/She can justify the need of coding sensors Binary coded: 111  110  mis-aligned sensors mis-aligned sensors Gray coded: 111  101

He/She can justify the need of coding 15 Computers also handle textual data. Character set frequently used: alphabets: ‘A’ … ‘Z’, ‘a’ … ‘z’ digits:‘0’ … ‘9’ special symbols: ‘$’, ‘.’, ‘*’, etc. non-printable:NULL, BELL, CR, etc. Examples – ASCII (8 bits), Unicode (8-bit, 16-bit, and 32-bit)

He/She can justify the need of coding 16 ASCII  American Standard Code for Information Interchange  7 bits, plus a parity bit for error detection  Odd or even parity  8-bit extended ASCII: code pages for different languages

He/She can justify the need of coding 17 Parity bit – Even parity: additional bit added to make total number of 1’s even. – Odd parity: additional bit added to make total number of 1’s odd. Example of odd parity on ASCII values. Parity bits

He/She can justify the need of coding 18 Parity bit can detect odd number of errors but not even number of errors. – Example: Assume odd parity,  (detected)  (not detected) Parity bits can also be applied to a block of data. Column-wise parity Row-wise parity

19