









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










is possible to count in numbering systems other than the decimal system, we shall consider the system of most interest in electronics. That is the binary system, which uses only the two digits 0 and 1.
the preceding topic for counting in other systems. The first number in counting is 1, of course. Since we can use no digit higher than 1, we must go to two digits and write 10 for the second binary number. Then comes 11, and after that we must go to three digits and write 100.
numbering system. It is called natural because it follows the general counting method used in the decimal, octal, and other numbering systems. As you will see later in the lesson, the natural binary system is only one of a number of methods for representing numbers by using only the digits 0 and 1.
Decimal Octal Binary
0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 10 1000 9 11 1001 10 12 1010 11 13 1011 12 14 1100 13 15 1101 14 16 1110 15 17 1111 16 20 10000 17 21 10001 18 22 10010 19 23 10011
Decimal Octal Binary Hex
0 0 0000 0 1 1 0001 1 2 2 0010 2 3 3 0011 3 4 4 0100 4 5 5 0101 5 6 6 0110 6 7 7 0111 7 8 10 1000 8 9 11 1001 9 10 12 1010 A 11 13 1011 B 12 14 1100 C 13 15 1101 D 14 16 1110 E 15 17 1111 F 16 20 0001 0000 10 17 21 0001 0001 11 18 22 0001 0010 12 19 23 0001 0011 13
Binary Addition
1 0 1 0
(carry)
1
1 1 0 1
Example:
Subtract binary number 101 from 1011
Binary Subtraction
1 0 1 1
0 1 1 0
0 1
2s Complement - Conversions
Convert decimal
to binary 1s
complement
Add 1
1s
complement
Add 1
2s complement notation makes it possible to
add and subtract signed numbers
Adding/Subtracting in 2s Complement
(- 1)
(- 3)
1 1 1 1
1 1 1 01
(+1)
(- 2)
0 0 0 1
1 1 1 0
(Decimal) 2s Complement
2s complement
2s complement