Introduction To Digital Logic
Introduction To Digital Logic
The Decimal Number System: The Decimal Number System uses base 10 and represented by arranging the
10 symbols i.e. 0 through 9, where these symbols were known as digits. The position of each symbol in a
given sequence has a certain numerical weight. It makes use of a Decimal point. The decimal number
system is thus represented as a weighted sum representation of symbols. Table 1.1 represents the weight
associated with the symbol in decimal numbering system.
The left most digit, which has the highest weight, is called the most significant digit, and the right most
digit, which has the least weight, is called the least significant digit.
Equivalent
weight in …. 16 8 4 2 1 • 0.5 0.25 0.125 ….
decimal
Binary Binary
…. 24 23 22 21 20 2-1 2-2 2-3 ….
Powers point
Table1.2 represents the weight associated in binary numbering system.
in
decimal … 4096 512 64 8 1 • 0.125 0.015625 … …
Equivale
nt weight
Octal
… 84 83 82 81 80 8-1 8-2 … …
point
Table 1.4: Weights associated with the position in Octal numbering system.
Example: 710.16 (8) = 7 x 82 + 1 x 81 + 0 x 80 + 1 x 8-1 + 6 x 8-2
Different Number Systems and Conversions
Binary, (base 2)
Binary has only two values 0 and 1. If larger values than 1 are needed, extra columns are added to the left.
Each column value is now twice the value of the column to its right. For example the decimal value three is
written 11 in binary (1 two + 1 one).
Octal, (base 8)
Octal has eight values 0 to 7. If larger values than 7 are needed, extra columns are added to the left. Each
column value is now 8 times the value of the column to its right. For example the decimal value twenty-
seven is written 33 in octal (3 eights + 3 ones).
Hexadecimal, (base 16)
Hexadecimal has sixteen values 0 to 15, but to keep all these values in a single column, the 16 values (0 to
15) are written as 0 to F, using the letters A to F to represent numbers 10 to 15, so avoiding the use of a
second column. Again, if higher values than 15 (F in hexadecimal) are needed, extra columns to the left are
used. Each column value is sixteen times that of the column to its right. For example the decimal value
sixty-
eight is written as 44 in hexadecimal (4 sixteens +
ones).
Each digit in the number is multiplied by the system radix raised to a power depending on its position
relative to the radix point. This is called the EXPONENT.
Using this system, a binary register that is n bits wide can hold 2n values.
Therefore an 8 bit register can hold 28 values = 256 values (0 to 255)
A 4 bit register can hold 24 values = 16 values (0 to 15)
For Example: Write the binary equivalent of 29.625 (10) and 45 (10).