Chapter 02
Chapter 02
ELEVENTH EDITION
GLOBAL EDITION
CHAPTER 2
Number Systems,
Operations, and
Codes
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-1 Decimal Numbers
• Most people today use decimal representation to count. In the decimal
system there are 10 digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9
These digits can represent any value, for example: 754
Important note: any number in power of zero is 1, even zero in power of zero is 1:
The value is formed by the sum of each digit, multiplied by the base (in this case it is 10
because there are 10 digits in decimal system) in power of digit position (counting from
zero):
Position of each digit is very important! for example if you place "7" to the
end: 547
it will be another value:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Ex: Express the number 480.52 as the sum of values of each digit.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-2 Binary Numbers
• Computers are not as smart as humans are (or not yet), it's easy to make an electronic
machine with two states: on and off, or 1 and 0.
• Computers use binary system, binary system uses 2 digits: And thus the base is 2.
• Each digit in a binary number is called a BIT, 4 bits form a NIBBLE, 8 bits form a
BYTE, two bytes form a WORD, two words form a DOUBLE WORD (rarely used):
There is a convention to add "b" in the end of a binary number, this way we can
determine that 101b is a binary number with decimal value of 5.
The binary number 10100101b equals to decimal value of 165:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
TABLE 2–1
In general, with n
bits you can count
up to a number
equal to 2n-1
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
FIGURE 2-1 Illustration of a simple binary counting application.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
TABLE 2–2 Binary weights.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-3 Converting from Binary to Decimal
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-4 Converting from Decimal to Binary
Division-by-two method...
(0.125)10 = ( ? )2 (0.625)10 = ( ? )2
0.125x2 = 0.250 0.625x2 = 1.250
(0.001) 2 (0.101) 2
0.250x2 = 0.5
0.250x2 = 0.5
0.5x2 =1
0.5x2 =1
Problem: Convert to the decimal number 139 to binary.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-5 Addition and Subtraction in Binary
Numbers
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Multiplication and Division in Binary Numbers
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Complements of Binary Numbers
Finding the 1’s Complement
Binary
Number
1’s
Complement
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Complements of Binary Numbers
Finding the 2’s Complement
The 2’s complement of a binary number is found by adding 1 to LSB of the 1’s
complement.
2’s complement = (1’s complement) + 1
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
FIGURE 2-3 Example of obtaining the 2’s complement of a negative binary
number.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Addition and Subtraction in Binary Numbers
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Signed Numbers
• The Sign Bit
The left-most bit in a signed binary number is the sign bit, which tells you
whether the number is positive or negative.
A 0 sign bit indicates a positive number and a 1 sign bit indicates a
negative number.
For example, the decimal number +25 is expressed as an 8-bit signed
binary number using the sign-magnitude form as
0 0011001
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Signed Numbers
• There is no way to say for sure whether the hexadecimal byte 0FFh is positive or
negative, it can represent both decimal value "255" and "- 1".
• 8 bits can be used to create 256 combinations (including zero), so we simply presume
that first 128 combinations (0..127) will represent positive numbers and next 128
combinations (128..256) will represent negative numbers.
• In order to get "- 5", we should subtract 5 from the number of combinations (256), so
we'll get: 256 - 5 = 251.
• Using this complex way to represent negative numbers has some meaning, in math
when you add "- 5" to "5" you should get zero.
• This is what happens when processor adds two bytes 5
and 251, the result gets over 255, because of the
overflow processor gets zero!
• When combinations 128..256 are used the high bit is
always 1, so this maybe used to determine the sign of a
number.
• The same principle is used for words (16 bit values), 16
bits create 65536 combinations, first 32768 combinations
(0..32767) are used to represent positive numbers, and
next 32768 combinations (32767..65535) represent
negative numbers.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Signed Numbers --- 2’s Complement
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal System
• Hexadecimal System uses 16 digits:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.
• And thus the base is 16.
• Hexadecimal numbers are compact and easy to read. It is
very easy to convert numbers from binary system to
hexadecimal system and vice-versa, every nibble (4 bits)
can be converted to a hexadecimal digit using this table:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
TABLE 2–3
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-8 Hexadecimal System
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Addition and Subtraction in HexNumbers
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Converting from Decimal System to Any Other
• In order to convert from decimal system, to any other system, it is required to
divide the decimal value by the base of the desired system, each time you
should remember the result and keep the remainder, the divide process
continues until the result is zero.
• The remainders are then used to represent a value in that system.
• Let's convert the value of 39 (base 10) to Hexadecimal System (base 16):
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Converting from Decimal System to Any Other
• As you see we got this hexadecimal
number: 27h.
• All remainders were below 10 in the
above example, so we do not use any
letters.
• Here is another more complex
example:
• Let's convert decimal number 43868
to hexadecimal form.
• The result is 0AB5Ch, we are using
the above table to convert remainders
over 9 to corresponding letters.
• Using the same principle we can
convert to binary form (using 2 as the
divider), or convert to hexadecimal
number, and then convert it to binary
number using the above table:
• As you see we got this binary
number: 1010101101011100b
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal Number Systems
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal Number Systems
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal Subtraction-Method 1
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal Subtraction
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Hexadecimal Subtraction-Method 2
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-9 Octal Numbers
The octal numbers are used less frequently than hexadecimal in conjunction
with computers and microprocessors to express binary quantities for input and
output purposes. The octal number system is composed of eight digits (0..7)
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Octal Numbers
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-10 Binary Coded Decimal (BCD)
Binary coded decimal (BCD) is a way to express each of the decimal digits with
a binary code.
a) 3 5 b) 9 8
c) 1 7 0 d) 2 4 6 9
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-10 Binary Coded Decimal (BCD)
BCD Addition:
Step 1: Add the two BCD numbers, using the rules for binary addition.
Step 2: If a 4-bit sum is equal to or less than 9, it is a valid BCD number.
Step 3: If a 4-bit sum is greater than 9, or if a carry out of the 4-bit group is
generated, it is an invalid result. Add 6 (0110) to the 4-bit sum in order to skip
six invalid states and return the code 8421. If a carry result is added, simply
add carry to the next 4 group.
Examples:
0011 3 1000 0110 86
+ 0100 +4 + 0001 0011 +13
0111 7 1001 1001 99
1001 9
+ 0100 +4
1101 Invalid BCD Number (>9) 13
+ 0110 Add 6
1 0011 13
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-10 Binary Coded Decimal (BCD)
BCD Addition:
Example:
0001 0110 16
+ 0001 0101 + 15
0010 1011 Right group is invalid (>9), left group is valid. 31
+0110 Add 6 to invalid code. Add carry (1) to next group
0011 0001 Valid BCD number (31)
0110 0111 67
+ 0101 0011 + 53
1011 1010 Both groups are invalid (>9) 120
+ 0110 0110 Add 6
1 0010 0000 120
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-11 Digital Codes
Gray Codes
The Gray code is unweighted and is not an arithmetic code; that is, there are
no specific weights assigned to the bit positions. The important feature of the
gray code is that it exhibits only a single bit change from one code word to the
next in sequence.
[Link] most significant bit (left-most) in the Gray code is the same as the
corresponding MSB in the binary number.
[Link] from left to right, add each adjacent pair of binary code bits to get the
next Gray code bit. Discard carries.
[Link] most significant bit (left-most) in he Gray code is the same as the
corresponding bit in the Gray code.
[Link] each binary code bit generated to the Gray code bit in the next adjacent
position. Discard carries.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
ASCII
It is a universally accepted alphanumeric code used in most computers and other
electronic equipment.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
2-12 Error Codes
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Error Codes
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Error Codes
Modulo-2 Operations
Modulo-2 addition is the same as binary addition
with the carries discarded as shown in Table 2-
9. This particular table describes the modulo-2
operation also known as exclusive-OR and can
be implemented with a logic gate.
•A simple rule for modulo-2 is that the output is
1 if the inputs are different; otherwise, it is 0.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
FIGURE 2-8
The CRC process.
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Examples
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
What is the weight of 7 in each of the following numbers?
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Express each of the following decimal numbers as a power of ten.
Solution
Example
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert the following binary numbers to decimal
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert the following binary numbers to decimal
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert each binary number to decimal
Solution
(a) 110011.11 = 1 25 + 1 24 + 1 21 + 1 20 + 1 21 + 1 22
= 32 + 16 + 2 + 1 + 0.5 + 0.25 = 51.75
(b) 101010.01 = 1 25 + 1 23 + 1 21 + 1 22 = 32 + 8 + 2 + 0.25
= 42.25
(c) 1000001.111 = 1 26 + 1 20 + 1 21 + 1 22 + 1 23
= 64 + 1 + 0.5 + 0.25 + 0.125 = 65.875
(d) 1111000.101 = 1 26 + 1 25 + 1 24 + 1 23 + 1 21 + 1 23
= 64 + 32 + 16 + 8 + 0.5 + 0.125 = 120.625
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
What is the highest decimal number that can be represented by each of the
following numbers of binary digits (bits)?
Solution
(a) 22 1 = 3 (11)2 (b) 23 1 = 7
(c) 24 1 = 15 (1111)2 (d) 25 1 = 31
(e) 26 1 = 63 (f) 27 1 = 127
(g) 28 1 = 255 (h) 29 1 = 511
(i) 210 1 = 1023 (j) 211 1 = 2047
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
How many bits are required to represent the following decimal numbers?
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert each decimal number to binary by using the sum-of-weights method.
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert each decimal fraction to binary using repeated multiplication by 2.
Solution
(a) 0.76 2 = 1.52 1 (MSB) (b) 0.456 2 = 0.912 0 (MSB)
0.52 2 = 1.04 1 0.912 2 = 1.824 1
0.04 2 = 0.08 0 0.824 2 = 0.648 1
0.08 2 = 0.16 0 0.648 2 = 1.296 1
0.16 2 = 0.32 0 0.296 2 = 0.592 0
0.32 2 = 0.64 0 continue if more accuracy is desired
continue if more accuracy is desired 0.01110
0.110000
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Add the binary numbers
a.10 + 10 b. 10 + 11 c. 100 + 11
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Use direct subtraction on the following binary numbers:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Perform the following binary multiplications:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Determine the 1’s complement of each binary number:
Solution
(a) The 1’s complement of 100 is 011.
(b) The 1’s complement of 111 is 000.
(c) The 1’s complement of 1100 is 0011.
(d) The 1’s complement of 10111011 is 01000100.
(e) The 1’s complement of 1001010 is 0110101.
(f) The 1’s complement of 10101010 is 01010101
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Determine the 2’s complement of each binary number:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Express each decimal number in binary as an 8-bit number in the 2’s
complement form:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Determine the decimal value of each signed binary number in the sign-
magnitude form:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Determine the decimal value of each signed binary number in the 2’s
complement form:
Solution
(a) 10011001 = (1100111) = 103
(b) 01110100 = +(1110100) = +116
(c) 10111111 = (1000001) = 65
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example
Convert each hexadecimal number to binary:
Solution
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Convert each binary number to hexadecimal:
e. 10101100 f. 10111011
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Convert each hexadecimal number to decimal:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
(a) 148 = 1 81 + 4 80 = 8 + 4 = 12
(b) 538 = 5 81 + 3 80 = 40 + 3 = 43
(c) 678 = 6 81 + 7 80 = 48 + 7 = 55
(d) 1748 = 1 82 + 7 81 + 4 80 = 64 + 56 + 4 = 124
(e) 6358 = 6 82 + 3 81 + 5 80 = 384 + 24 + 5 = 413
(f) 2548 = 2 82 + 5 81 + 4 80 = 128 + 40 + 4 = 172
(g) 26738 = 2 83 + 6 82 + 7 81 + 3 80 = 1024 + 384 + 56 + 3 = 1467
(h) 77778 = 7 83 + 7 82 + 7 81 + 7 80 = 3584 + 448 + 56 + 7 = 4095
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
(a) 100 = 48
(b) 110 = 68
(c) 1100 = 148
(d) 1111 = 178
(e) 11001 = 318
(f) 11110 = 368
(g) 110011 = 638
(h) 101010 = 528
(i) 10101111 = 2578
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Convert each of the BCD numbers to decimal:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Add the following BCD numbers:
c. 1001 1000 + 1001 0111 d. 0101 0110 0001 + 0111 0000 1000
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
(c) 1 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 0 + 1 + 1 + 1 + 0 Binary
1 0 0 0 1 1 0 0 1 1 0 0 1 Gray
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
(c) 1 1 0 0 0 0 1 0 0 0 1 Gray
1 0 0 0 0 0 1 1 1 1 0 Binary
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Solution:
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Example:
Attach the proper even parity bit to each of the following bytes of data:
Solution:
(a) 1 10100100
(b) 0 00001001
(c) 1 11111110
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved
Digital Fundamentals, Eleventh Edition, Global Edition Copyright © 2016 by Pearson Education, Ltd.
Thomas L. Floyd All Rights Reserved