Professional Documents
Culture Documents
Introduction and Number System Conversions-JHN
Introduction and Number System Conversions-JHN
Lecturer
❑ An analog quantity is one having continuous values. A digital quantity is one having a discrete set of
values.
❑ Each of the two digits in the binary system, 1 and 0, is called a bit
❑ In digital circuits, two different voltage levels are used to represent the two bits.
❑ Generally, 1 is represented by the higher voltage, which we will refer to as a HIGH, and a 0
is represented by the lower voltage level, which we will refer to as a LOW.
➢ Digital waveforms consist of voltage levels that are changing back and forth between the HIGH and LOW levels or states.
❑ A timing diagram is a graph of digital waveforms showing the actual time relationship of two or more waveforms
and how each waveform changes in relation to the others.
❑ The decimal system is composed of 10 numerals or symbols, 0 through 9, represents a certain quantity.
❑ The decimal system, also called the base-10 system, because it has 10 digits
❑ The decimal system is a positional-value system in which the value of a digit depends on its position.
❑ Positional value or weight, expressed as a power of 10.
❑ The most significant bit (MSB) is the leftmost bit (largest weight). The least significant bit (LSB) is the
rightmost bit (smallest weight).
27.35
= 2 × 10 + 7 × 1 + 3 × 0.1 + 5 × 0.01
❑ Almost every digital system uses the binary (base-2) number system.
❑ The binary system with its two digits is a base-two system (0 and 1).
❑ The binary system is also a positional-value system.
❑ Positional value or weight, expressed as a power of 2.
❑ In the binary system, the term binary digit is often abbreviated to the term bit.
❑ Places to the left of the binary point (counterpart of the decimal point) are positive powers of 2 and places
to the right are negative powers of 2.
There are four bits to the left of the binary point, representing
the integer part of the number, and three bits to the right of the
binary point, representing the fractional part.
The MSB has a weight of 23; the LSB has a weight of 2-3
➢ To find the equivalent in the decimal system, we simply take the sum of the products of each digit
value (0 or 1) and its positional value:
➢ A systematic method of converting whole numbers from decimal to binary is the repeated division-
by-2 process:
Example:
❑ The hexadecimal number system uses base 16. Thus, it has 16 possible
digit symbols.
❑ It uses the digits 0 through 9 plus the letters A, B, C, D, E, and F.
❑ The hexadecimal system is also a positional-value system.
❑ The digit positions are weighted as powers of 16.
❑ The most significant bit (MSB) is the leftmost bit (largest weight). The least
significant bit (LSB) is the rightmost bit (smallest weight).
➢ Reverse the process and replace each hexadecimal symbol with the appropriate four bits.
➢ To convert a hexadecimal number to its decimal equivalent is to multiply the decimal value of each
hexadecimal digit by its weight
➢ Then take the sum of these products.
➢ Repeated division of a decimal number by 16 will produce the equivalent hexadecimal number, formed by the
remainders of the divisions.
➢ Each successive division by 16 yields a remainder that becomes a digit in the equivalent hexadecimal number.
➢ When a quotient has a fractional part, the fractional part is multiplied by the divisor to get the remainder.
✓ The evaluation of an octal number in terms of its decimal equivalent is accomplished by multiplying each digit
by its weight and summing the products
➢ To convert an octal number to a binary number, simply replace each octal digit with the appropriate three bits.
✓ Another way is that - convert the decimal with integer and fractional part in binary and finally convert binary to
octal or hexadecimal.
Base‐r system
In general, a number expressed in a base‐r system has coefficients multiplied by powers of r.
An example of a base‐5 number is
(4021.2)5 = 4 × 53 + 0 × 52 + 2 × 51 + 1 × 50 + 2 × 5-1 = (511.4)10
Decimal (base 10) Binary (base 2) Octal (base 8) Hexadecimal (base 16)
00 0000 00 0
01 0001 01 1
02 0010 02 2
03 0011 03 3
04 0100 04 4
05 0101 05 5
06 0110 06 6
07 0111 07 7
08 1000 10 8
09 1001 11 9
10 1010 12 A
11 1011 13 B
12 1100 14 C
13 1101 15 D
14 1110 16 E
15 1111 17 F
❑ Most computer manuals use either octal or hexadecimal numbers to specify binary quantities
17. Binary Addition, Subtraction, Multiplication and Division
Example:
Example:
Example:
Example:
999999
- 546700
453299
Radix complement
The 10’s complement of decimal is obtained by adding 1 to the 9’s complement value.
❖ The 2’s complement of a binary number is found by adding 1 to the LSB of the 1’s complement.
1. Digital Systems Principles and Applications - Ronald J. Tocci (Section 2.1 to 2.3)
2. Digital Design – Morris Mano (Section 1.2 to 1.5)
3. Digital Fundamentals - Thomas L. Floyd (Section 2.1 to 2.5)
** Example math from these sections