Chapter 1
Chapter 1
Chapter 1
CHAPTER 1
INTRODUCTION
NUMBER SYSTEMS AND CONVERSION
This chapter in the book includes:
Objectives
Study Guide
1.1 Digital Systems and Switching Circuits
1.2 Number Systems and Conversion
1.3 Binary Arithmetic
1.4 Representation of Negative Numbers
1.5 Binary Codes
Problems
Binary
1011.112 = 1x23 + 0x22 + 1x21 + 1x20 + 1x2-1 + 1x2-2
= 8 + 0 + 2 + 1 + 1/2 + 1/4
= 11.7510
Conversion (a)
Conversion (b)
©2010 Cengage Learning
EXAMPLE: Convert 0.710 to binary.
Conversion (c)
©2010 Cengage Learning
EXAMPLE: Convert 231.34 to base 7.
Conversion (d)
©2010 Cengage Learning
Binary Hexadecimal
Conversion
Equation (1-1)
Addition
0–0=0
0–1=1 and borrow 1 from the next column
1–0=1
1–1=0
Subtraction (a)
Subtraction (b)
0x0=0
0x1=0
1x0=0
1x1=1
Multiplication (a)
Multiplication (b)
©2010 Cengage Learning
When doing binary multiplication, a common way to avoid
carries greater than 1 is to add in the partial products one at
a time as illustrated by the following example:
1111 multiplicand
1101 multiplier
1111 1st partial product
0000 2nd partial product
(01111) sum of first two partial products
1111 3rd partial product
(1001011) sum after adding 3rd partial product
1111 4th partial product
11000011 final product (sum after adding 4th
partial product)
Multiplication (c)
©2010 Cengage Learning
Binary Division
Binary division is similar to decimal division, except it
is much easier because the only two possible quotient
digits are 0 and 1.
We start division by comparing the divisor with the
upper bits of the dividend.
If we cannot subtract without getting a negative result,
we move one place to the right and try again.
If we can subtract, we place a 1 for the quotient above
the number we subtracted from and append the next
dividend bit to the end of the difference and repeat this
process with this modified difference until we run out
of bits in the dividend.
Binary Division
2’s Complement: N* = 2n - N
Ex: – 510 = 24 – 5 = 16 – 5 = 1110 = 10112
8-4-2-1
Decimal 6-3-1-1 Excess-3 2-out-of-5 Gray
Code
Digit Code Code Code Code
(BCD)
0 0000 0000 0011 00011 0000
1 0001 0001 0100 00101 0001
2 0010 0011 0101 00110 0011
3 0011 0100 0110 01001 0010
4 0100 0101 0111 01010 0110
5 0101 0111 1000 01100 1110
6 0110 1000 1001 10001 1010
7 0111 1001 1010 10010 1011
8 1000 1011 1011 10100 1001
9 1001 1100 1100 11000 1000