Книга: Advanced PIC Microcontroller Projects in C
1.19 Multiplication of Binary Numbers
Разделы на этой странице:
1.19 Multiplication of Binary Numbers
Multiplication of two binary numbers is similar to the multiplication of two decimal numbers. The four possibilities are:
0 ? 0 = 0
0 ? 1 = 0
1 ? 0 = 0
1 ? 1 = 1
Some examples follow.
Example 1.27
Multiply the two binary numbers 0110 and 0010.
Solution 1.27
Multiplying the numbers:
0110
or 1100
0010
----
0000
0110
0000
0000
-------
001100
In this example 4 bits are needed to show the final result.
Example 1.28
Multiply binary numbers 1001 and 1010.
Solution 1.28
Multiplying the numbers:
1001
1010
----
0000
1001
0000
1001
-------
1011010
In this example 7 bits are required to show the final result.
Оглавление статьи/книги
- 1.1 Introduction
- 1.2 Microcontroller Systems
- 1.3 Microcontroller Features
- 1.4 Microcontroller Architectures
- 1.5 Number Systems
- 1.6 Converting Binary Numbers into Decimal
- 1.7 Converting Decimal Numbers into Binary
- 1.8 Converting Binary Numbers into Hexadecimal
- 1.9 Converting Hexadecimal Numbers into Binary
- 1.10 Converting Hexadecimal Numbers into Decimal
- 1.11 Converting Decimal Numbers into Hexadecimal
- 1.12 Converting Octal Numbers into Decimal
- 1.13 Converting Decimal Numbers into Octal
- 1.14 Converting Octal Numbers into Binary
- 1.15 Converting Binary Numbers into Octal
- 1.16 Negative Numbers
- 1.17 Adding Binary Numbers
- 1.18 Subtracting Binary Numbers
- 1.19 Multiplication of Binary Numbers
- 1.20 Division of Binary Numbers
- 1.21 Floating Point Numbers
- 1.22 Converting a Floating Point Number into Decimal
- 1.23 BCD Numbers
- 1.24 Summary
- 1.25 Exercises
Похожие страницы
- 1.6 Converting Binary Numbers into Decimal
- 1.7 Converting Decimal Numbers into Binary
- 1.9 Converting Hexadecimal Numbers into Binary
- 1.10 Converting Hexadecimal Numbers into Decimal
- 1.11 Converting Decimal Numbers into Hexadecimal
- 1.12 Converting Octal Numbers into Decimal
- 1.13 Converting Decimal Numbers into Octal
- 1.14 Converting Octal Numbers into Binary
- 1.15 Converting Binary Numbers into Octal
- 1.16 Negative Numbers
- 1.17 Adding Binary Numbers
- 1.18 Subtracting Binary Numbers