CHAPTER 1 - Number Systems, Codes and Applications
CHAPTER 1 - Number Systems, Codes and Applications
COMPUTER ARCHITECTURE I
TOPIC OUTLINE
1. Digital versus Analog
2. Digital Representations of Analog Quantities
3. Decimal Numbering System (Base 10)
4. Binary Numbering System (Base 2)
5. Decimal-to-Binary Conversion
6. Octal Numbering System (Base 8)
7. Octal Conversions
8. Hexadecimal Numbering System (Base 16)
9. Hexadecimal Conversions
10. Binary-Coded-Decimal System
11. Comparison of Numbering Systems
12. The ASCII Code
13. Applications of the Numbering Systems
LEARNING OUTCOMES
Upon completion of this chapter, you should be able to do the following:
Determine the weighting factor for each digit position in the decimal, binary,
octal, and hexadecimal numbering systems.
Convert any number in one of the four number systems (decimal, binary, octal,
and hexadecimal) to its equivalent value in any of the remaining three numbering
systems.
Digital vs Analog
Disadvantage
1. Almost all signals around you is in analog form.
Review Questions
1. Complete the following sentences with the word analog or digital:
Numbering System
Decimal Numbering System (Base 10)
Number Systems
Binary Numbering System (Base 2)
Digital electronics use the binary numbering system because it uses only the
digits 0 and 1, which can be represented simply in a digital system by two
distinct voltage levels, such as +5 V = 1 and 0 V = 0.
Number Systems
Octal Numbering System (Base 8)
The octal numbering system is a method of grouping binary numbers
in groups of three.
The eight allowable digits are 0, 1, 2, 3, 4, 5, 6, and 7.
The octal numbering system is used by manufacturers of computers
that utilize 3-bit codes to indicate instructions or operations to be
performed.
By using the octal representation instead of binary, the user can simplify
the task of entering or reading computer instructions and thus save
time.
Number Systems
Hexadecimal Numbering System (Base 16)
The hexadecimal numbering system, like the octal
system, is a method of grouping bits to simplify
entering and reading the instructions or data present in
digital computer systems.
Number Systems
Binary-Coded-Decimal System
The binary-coded-decimal (BCD) system is used to
represent each of the 10 decimal digits as a 4-bit binary
code. This code is useful for outputting to displays that are
always numeric (0 to 9), such as those found in digital
clocks or digital voltmeters.
To form a BCD number, simply convert each decimal digit
to its 4-bit binary
code.
Summary of
Number Systems
Coding Scheme
The ASCII Code
Most industry has settled on an
input/output (I/O) code called the
American Standard Code for
Information Interchange (ASCII). The
ASCII code uses 7 bits to represent all
the alphanumeric data used in
computer I/O. Seven bits will yield 128
different code combinations.