Professional Documents
Culture Documents
CH - 1 Number Systems and Codes
CH - 1 Number Systems and Codes
HỌC PHẦN
ĐIỆN TỬ SỐ
Giảng viên: TS. NGUYỄN HỮU CHÂN THÀNH
Chapter 1 – Number Systems and Codes
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Upper Saddle River, New Jersey 07458 • All rights reserved
1-1 Binary to Decimal Conversion
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
Chapter 1 Objectives
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-1 Binary to Decimal Conversion
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-1 Binary to Decimal Conversion
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-1 Binary to Decimal Conversion
• Another example:
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-2 Decimal to Binary Conversion
Repeated
Division
Divide the decimal
number by 2.
Write the remainder
after each division
until a quotient of
zero is obtained.
The first remainder
is the LSB.
The last is the MSB.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-2 Decimal to Binary Conversion
Repeated
Division
This flowchart
describes the
process and can
be used to convert
from decimal to
any other number
system.
22
1-3 Hexadecimal Number System
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System
Relationships between
hexadecimal, decimal,
and binary numbers.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Hex to Decimal
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Decimal to Hex
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Decimal to Hex
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Decimal to Hex
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Hex to Binary
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Binary to Hex
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Decimal to Hex to Binary
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System
To perform conversions
between hex & binary, it
is necessary to know the
four-bit binary numbers
(0000 - 1111), and their
equivalent hex digits.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-3 Hexadecimal Number System – Counting in Hex
Example:
38,39,3A,3B,3C,3D,3E,3F,40,41,42
When there is a 9 in a digit position, it
becomes an A when it is incremented.
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-4 BCD Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-4 BCD Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-4 BCD Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-4 BCD Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-4 BCD Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
Problems
40
Problems
41
Problems
42
Problems
43
1-5 The Gray Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-5 The Gray Code
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-5 The Gray Code
An eight-position,
three-bit shaft
encoder
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
Problems
47
1-6 Putting It All Together
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-7 The Byte, Nibble, and Word
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
Problems
50
1-8 Alphanumeric Codes
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-8 Alphanumeric Codes
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-9 Parity Method for Error Detection
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-9 Parity Method for Error Detection
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-9 Parity Method for Error Detection
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-9 Parity Method for Error Detection
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-9 Parity Method for Error Detection
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
Problems
58
Problems
59
Problems
60
1-10 Applications
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
1-10 Applications
Digital Systems: Principles and Applications, 11/e Copyright © 2011, 2007, 2004, 2001, 1998 by Pearson Education, Inc.
Ronald J. Tocci, Neal S. Widmer, Gregory L. Moss Upper Saddle River, New Jersey 07458 • All rights reserved
END
Problems
64
Problems
65
Problems
66
Problems
67
Problems
68
Problems
69