Binary Number System
Binary Number System
Digital Electronics
Binary-to-Decimal Conversion
Example: Convert the decimal number 610 into its binary equivalent.
3 2 6 1 2 3 0 2 1 r 0 Least Significan t Bit r 1 r 1 Most Significan t Bit
3
610 = 1102
2610 = 110102
10 2 20
5 2 10 2 2 5 1 2 2 0 2 1
r 0
r 0 r 1 r 0 r 1 MSB
7
4110 = 1010012
0
23
8 0 +
1
22
4 4 +
1
21
2 2 +
0
20
1 0
Bit-Weighting Factors
0110 2 = 6 10
610
10
11
Solution:
1
24
16
0
23
8
0
22
4
1
21
2
0
20
1
16
1810
100102 = 1810
12
13
Solution:
0
26
64
1
25
32
1
24
16
0
23
8
1
22
4
0
21
2
1
20
1
32
16
5310
01101012 = 5310
14
Weighted Multiplication
a) Multiply each bit of the Binary Number by it corresponding bit-weighting factor (i.e. Bit-020=1; Bit-121=2; Bit-222=4; etc). b) Sum up all the products in step (a) to get the Decimal Number.
17
Image Resources
Microsoft, Inc. (2008). Clip Art. Retrieved March 15, 2008 from http://office.microsoft.com/en-us/clipart/default.aspx
18