+ All Categories
Home > Documents > Digital Fundamentals

Digital Fundamentals

Date post: 25-Feb-2016
Category:
Upload: quana
View: 55 times
Download: 4 times
Share this document with a friend
Description:
Digital Fundamentals. CHAPTER 2 Number Systems, Operations, and Codes. Number Systems. Decimal Numbers . The decimal number system has ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 The decimal numbering system has a base of 10 with each position weighted by a factor of 10:. Binary Numbers . - PowerPoint PPT Presentation
51
Floyd Floyd Digital Fundamentals, 9/e Digital Fundamentals, 9/e Copyright ©2006 by Pearson Copyright ©2006 by Pearson Education, Inc. Education, Inc. Upper Saddle River, New Jersey Upper Saddle River, New Jersey 07458 07458 All rights reserved. All rights reserved. Slide 1 Digital Fundamentals Digital Fundamentals CHAPTER 2 CHAPTER 2 Number Systems, Operations, and Codes Number Systems, Operations, and Codes
Transcript
Page 1: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 1

Digital FundamentalsDigital Fundamentals

CHAPTER 2 CHAPTER 2 Number Systems, Operations, and CodesNumber Systems, Operations, and Codes

Page 2: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 2

Number SystemsNumber Systems

Page 3: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 3

Decimal Numbers Decimal Numbers

• The decimal number system has ten The decimal number system has ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9

• The decimal numbering system has a The decimal numbering system has a base of 10 with each position weighted by base of 10 with each position weighted by a factor of 10:a factor of 10:

Page 4: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 4

Binary Numbers Binary Numbers

• The binary number system has two digits: The binary number system has two digits: 0 and 10 and 1

• The binary numbering system has a base of 2 The binary numbering system has a base of 2 with each position weighted by a factor of 2:with each position weighted by a factor of 2:

Page 5: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 5

Decimal-to-Binary ConversionDecimal-to-Binary Conversion

Page 6: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 6

Decimal-to-Binary Conversion Decimal-to-Binary Conversion

• Sum-of-weights methodSum-of-weights method• Repeated division-by-2 methodRepeated division-by-2 method• Conversion of decimal fractions to Conversion of decimal fractions to

binarybinary

Page 7: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 7

Binary ArithmeticBinary Arithmetic

Page 8: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 8

Binary Arithmetic Binary Arithmetic

• Binary additionBinary addition• Binary subtractionBinary subtraction• Binary multiplicationBinary multiplication• Binary divisionBinary division

Page 9: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 9

Complements of Binary NumbersComplements of Binary Numbers

Page 10: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 10

Complements of Binary Numbers Complements of Binary Numbers

• 1’s complements1’s complements• 2’s complements2’s complements

Page 11: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 11

Complements of Binary Numbers Complements of Binary Numbers

• 1’s complement1’s complement

Page 12: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 12

Complements of Binary Numbers Complements of Binary Numbers

• 2’s complement2’s complement

Page 13: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 13

Signed NumbersSigned Numbers

Page 14: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 14

Signed Numbers Signed Numbers

• Signed-magnitude formSigned-magnitude form• 1’s and 2’s complement form1’s and 2’s complement form• Decimal value of signed numbersDecimal value of signed numbers• Range of valuesRange of values• Floating-point numbersFloating-point numbers

Page 15: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 15

Signed Numbers Signed Numbers

• Signed-magnitude form Signed-magnitude form – The sign bit is the left-most bit in a signed The sign bit is the left-most bit in a signed

binary numberbinary number– A 0 sign bit indicates a positive magnitudeA 0 sign bit indicates a positive magnitude– A 1 sign bit indicates a negative magnitudeA 1 sign bit indicates a negative magnitude

Page 16: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 16

Signed Numbers Signed Numbers

• 1’s complement form1’s complement form– A negative value is the 1’s complement of A negative value is the 1’s complement of

the corresponding positive valuethe corresponding positive value• 2’s complement form2’s complement form

– A negative value is the 2’s complement of A negative value is the 2’s complement of the corresponding positive valuethe corresponding positive value

Page 17: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 17

Signed Numbers Signed Numbers

• Decimal value of signed numbersDecimal value of signed numbers– Sign-magnitudeSign-magnitude– 1’s complement1’s complement– 2’s complement2’s complement

Page 18: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 18

Signed Numbers Signed Numbers

• Range of ValuesRange of Values2’s complement form:2’s complement form:

– – (2(2n n – – 11) to + (2) to + (2n – 1 n – 1 – – 1)1)

Page 19: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 19

Signed Numbers Signed Numbers

• Floating-point numbersFloating-point numbers– Single-precision (32 bits)Single-precision (32 bits)– Double-precision (64 bits)Double-precision (64 bits)– Extended-precision (80 bits)Extended-precision (80 bits)

Page 20: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 20

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

• AdditionAddition• SubtractionSubtraction• MultiplicationMultiplication• DivisionDivision

Page 21: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 21

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Addition of Signed NumbersAddition of Signed Numbers• The parts of an addition function are:The parts of an addition function are:

– AddendAddend– AugendAugend– SumSum

Numbers are always added two at a timeNumbers are always added two at a time..

Page 22: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 22

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Four conditions for adding numbers:Four conditions for adding numbers:• Both numbers are positive.Both numbers are positive.• A positive number that is larger than a A positive number that is larger than a

negative number.negative number.• A negative number that is larger than a A negative number that is larger than a

positive number.positive number.• Both numbers are negative.Both numbers are negative.

Page 23: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 23

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Signs for AdditionSigns for Addition• When both numbers are positive, the When both numbers are positive, the

sum is positive.sum is positive.• When the larger number is positive and When the larger number is positive and

the smaller is negative, the sum is the smaller is negative, the sum is positive. The carry is discarded.positive. The carry is discarded.

Page 24: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 24

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Signs for AdditionSigns for Addition• When the larger number is negative and When the larger number is negative and

the smaller is positive, the sum is the smaller is positive, the sum is negative (2’s complement form).negative (2’s complement form).

• When both numbers are negative, the When both numbers are negative, the sum is negative (2’s complement form). sum is negative (2’s complement form). The carry bit is discarded.The carry bit is discarded.

Page 25: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 25

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Subtraction of Signed NumbersSubtraction of Signed Numbers• The parts of a subtraction function are:The parts of a subtraction function are:

– SubtrahendSubtrahend– MinuendMinuend– DifferenceDifference

Subtraction is addition with the sign of the Subtraction is addition with the sign of the subtrahend changed.subtrahend changed.

Page 26: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 26

Arithmetic Operations with Signed Numbers Arithmetic Operations with Signed Numbers

SubtractionSubtraction• The sign of a positive or negative binary The sign of a positive or negative binary

number is changed by taking its 2’s number is changed by taking its 2’s complementcomplement

• To subtract two signed numbers, take To subtract two signed numbers, take the 2’s complement of the subtrahend the 2’s complement of the subtrahend and add. Discard any final carry bit.and add. Discard any final carry bit.

Page 27: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 27

Arithmetic Operations with Signed Numbers Arithmetic Operations with Signed Numbers

Multiplication of Signed NumbersMultiplication of Signed Numbers• The parts of a multiplication function are:The parts of a multiplication function are:

– MultiplicandMultiplicand– MultiplierMultiplier– ProductProduct

Multiplication is equivalent to adding a Multiplication is equivalent to adding a number to itself a number of times equal to number to itself a number of times equal to the multiplier.the multiplier.

Page 28: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 28

Arithmetic Operations with Signed Numbers Arithmetic Operations with Signed Numbers

There are two methods for multiplication:There are two methods for multiplication:• Direct additionDirect addition• Partial productsPartial products

The method of partial products is the most The method of partial products is the most commonly used.commonly used.

Page 29: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 29

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Multiplication of Signed NumbersMultiplication of Signed Numbers• If the signs are the same, the product is If the signs are the same, the product is

positive.positive.• If the signs are different, the product is If the signs are different, the product is

negative.negative.

Page 30: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 30

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Division of Signed NumbersDivision of Signed Numbers• The parts of a division operation are:The parts of a division operation are:

– DividendDividend– DivisorDivisor– QuotientQuotient

Division is equivalent to subtracting the Division is equivalent to subtracting the divisor from the dividend a number of divisor from the dividend a number of times equal to the quotient.times equal to the quotient.

Page 31: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 31

Arithmetic Operations with Signed NumbersArithmetic Operations with Signed Numbers

Division of Signed NumbersDivision of Signed Numbers• If the signs are the same, the quotient is If the signs are the same, the quotient is

positive.positive.• If the signs are different, the quotient is If the signs are different, the quotient is

negative.negative.

Page 32: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 32

Hexadecimal NumbersHexadecimal Numbers

Page 33: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 33

Hexadecimal Numbers Hexadecimal Numbers

• Decimal, binary, and hexadecimal Decimal, binary, and hexadecimal numbersnumbers

Page 34: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 34

Hexadecimal Numbers Hexadecimal Numbers

• Binary-to-hexadecimal conversionBinary-to-hexadecimal conversion• Hexadecimal-to-decimal conversionHexadecimal-to-decimal conversion• Decimal-to-hexadecimal conversionDecimal-to-hexadecimal conversion

Page 35: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 35

Hexadecimal NumbersHexadecimal Numbers

• Binary-to-hexadecimal conversionBinary-to-hexadecimal conversion1.1. Break the binary number into 4-bit Break the binary number into 4-bit

groupsgroups2.2. Replace each group with the Replace each group with the

hexadecimal equivalenthexadecimal equivalent

Page 36: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 36

Hexadecimal NumbersHexadecimal Numbers

• Hexadecimal-to-decimal conversionHexadecimal-to-decimal conversion1.1. Convert the hexadecimal to groups of 4-bit Convert the hexadecimal to groups of 4-bit

binarybinary2.2. Convert the binary to decimalConvert the binary to decimal

Page 37: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 37

Hexadecimal NumbersHexadecimal Numbers

• Decimal-to-hexadecimal conversionDecimal-to-hexadecimal conversion– Repeated division by 16Repeated division by 16

Page 38: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 38

Binary Coded Decimal (BCD)Binary Coded Decimal (BCD)

Page 39: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 39

Binary Coded Decimal (BCD) Binary Coded Decimal (BCD)

Decimal and BCD digitsDecimal and BCD digits

Page 40: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 40

Digital CodesDigital Codes

Page 41: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 41

Digital Codes Digital Codes

• Gray codeGray code• ASCII codeASCII code

Page 42: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 42

Digital Codes Digital Codes

• Gray codeGray code

Page 43: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 43

Digital Codes Digital Codes • ASCII code (control characters)ASCII code (control characters)

Page 44: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 44

Digital Codes Digital Codes • ASCII code (graphic symbols 20h – 3Fh)ASCII code (graphic symbols 20h – 3Fh)

Page 45: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 45

Digital Codes Digital Codes • ASCII code (graphic symbols 40h – 5Fh)ASCII code (graphic symbols 40h – 5Fh)

Page 46: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 46

Digital Codes Digital Codes • ASCII code (graphic symbols 60h – 7Fh)ASCII code (graphic symbols 60h – 7Fh)

Page 47: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 47

Digital Codes Digital Codes

Extended ASCII code (80h – FFh)Extended ASCII code (80h – FFh)• Non-English alphabetic charactersNon-English alphabetic characters• Currency symbolsCurrency symbols• Greek lettersGreek letters• Math symbolsMath symbols• Drawing charactersDrawing characters• Bar graphing charactersBar graphing characters• Shading charactersShading characters

Page 48: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 48

Error Detection and Correction CodesError Detection and Correction Codes

Page 49: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 49

Error Detection and Correction Codes Error Detection and Correction Codes

• Parity error codesParity error codes• Hamming error codesHamming error codes

Page 50: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 50

Error Detection and Correction Codes Error Detection and Correction Codes

• Parity error codesParity error codes

Page 51: Digital Fundamentals

FloydFloydDigital Fundamentals, 9/eDigital Fundamentals, 9/e

Copyright ©2006 by Pearson Education, Inc.Copyright ©2006 by Pearson Education, Inc.Upper Saddle River, New Jersey 07458Upper Saddle River, New Jersey 07458

All rights reserved.All rights reserved.Slide 51

Error Detection and Correction Codes Error Detection and Correction Codes

• Hamming error codesHamming error codes– Hamming code wordsHamming code words– Hex equivalent of the Hex equivalent of the

data bitsdata bits

00000000000000000011100001110011011 0011011 00111100011110010101001010100101101010110101100110110011011010001101001001011100101110011001001100101001010100101010101101010111000011100001110011011001101111000111100011111111111111

00112233445566778899AABBCCDDEEFF


Recommended