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
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
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:
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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)
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
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..
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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
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
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
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
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
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)
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
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
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
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
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)
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)
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)
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)
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
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
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
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
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