• No results found

1.2.3.A BinaryNumberSystem.pptx

N/A
N/A
Protected

Academic year: 2020

Share "1.2.3.A BinaryNumberSystem.pptx"

Copied!
18
0
0

Loading.... (view fulltext now)

Full text

(1)

The Binary Number System and

Conversions

© 2014 Project Lead The Way, Inc. Digital Electronics

(2)

Bridging the Digital Divide

0010

0

0101011

1010 1

01

0

100101101

011011 1101 010 00101101

0010

0

0101011

011011 1101 00101101

0010

0

10

01

0

100101101

1101 010 00101101

01

01

01

1

011011 1101 00101 10010 10010 Binary-to-Decimal Conversion Decimal-to-Binary Conversion

(3)

Decimal ‒to‒ Binary Conversion

The Process : Successive Division

a) Divide the Decimal Number by 2; the remainder is the LSB of

Binary Number .

b) If the quotient is zero, the conversion is complete; else repeat step (a) using the quotient as the Decimal Number. The new remainder is the next most significant bit of the Binary Number.

Example:

Convert the decimal number 610 into its binary equivalent.

 610 = 1102

3 Bit t Significan Most 1 r 0 1 2 1 r 1 3 2 Bit t Significan Least 0 r 3 6 2     

(4)

Dec → Binary : Example #1

Example:

(5)

Dec → Binary : Example #1

Example:

Convert the decimal number 2610 into its binary equivalent.

Solution:

 2610 = 110102

5 LSB 0 r 13 26

2  

MSB 1 r 0 1

2  

1 r 6 13 2  0 r 3 6 2  1 r 1 3 2 

(6)

Dec → Binary : Example #2

Example:

(7)

Dec → Binary : Example #2

Example:

Convert the decimal number 4110 into its binary equivalent.

Solution:

 4110 = 1010012

7 LSB 1 r 20 41

2  

0 r 10 20 2  0 r 5 10 2  1 r 2 5 2  MSB 1 r 0 1

2  

0 r 1 2 2 

(8)

Dec → Binary : More Examples

a) 13

10

= ?

b) 22

10

= ?

c) 43

10

= ?

(9)

Dec → Binary : More Examples

a) 13

10

= ?

b) 22

10

= ?

c) 43

10

= ?

d) 158

10

= ?

1 1 0 1

2

1 0 1 1 0

2

1 0 1 0 1 1

2

1 0 0 1 1 1 1 0

2

(10)

Binary ‒to‒ Decimal Process

The Process : Weighted Multiplication

a) Multiply each bit of the Binary Number by it corresponding bit-weighting factor (i.e. Bit-0→20=1; Bit-1→21=2; Bit-2→22=4; etc).

b) Sum up all the products in step (a) to get the Decimal Number. Example:

Convert the decimal number 01102 into its decimal equivalent.

 0110 2 = 6 10

0

1

1

0

23 22 21 20

8 4 2 1

0 + 4 + 2 + 0 =

6

Bit-Weighting Factors

(11)

Binary → Dec : Example #1

Example:

Convert the binary number 100102 into its decimal equivalent.

(12)

Binary → Dec : Example #1

Example:

Convert the binary number 100102 into its decimal equivalent.

1

0

0

1

0

24 23 22 21 20

16 8 4 2 1

16 + 0 + 0 + 2 + 0 =

18

10

(13)

Binary → Dec : Example #2

Example:

Convert the binary number 01101012 into its decimal equivalent.

(14)

Binary → Dec : Example #2

Example:

Convert the binary number 01101012 into its decimal equivalent.

0

1

1

0

1

0

1

26 25 24 23 22 21 20

64 32 16 8 4 2 1

0 + 32 + 16 + 0 + 4 + 0 + 1 =

53

10

(15)

Binary → Dec : More Examples

a) 0110

2

= ?

b) 11010

2

= ?

c) 0110101

2

= ?

d) 11010011

2

= ?

(16)

Binary → Dec : More Examples

a) 0110

2

= ?

b) 11010

2

= ?

c) 0110101

2

= ?

d) 11010011

= ?

6

10

26

10

53

10

(17)

Summary & Review

Base

10

DECIMAL

Base

2

BINARY

Successive

Division

a) Divide the Decimal Number by 2; the remainder is the LSB of Binary Number .

b) If the Quotient Zero, the conversion is complete; else repeat step (a) using the Quotient as the Decimal Number. The new remainder is the next most significant bit of the Binary Number.

a) Multiply each bit of the Binary Number by it corresponding bit-weighting factor (i.e. Bit-0→20=1; Bit-1→21=2; Bit-2→22=4; etc).

b) Sum up all the products in step (a) to get the Decimal Number. Weighted

Multiplication

Base

10

DECIMAL

Base

2

BINARY

(18)

Image Resources

Microsoft, Inc. (2008). Clip Art. Retrieved March 15, 2008 from

References

Related documents

National Conference on Technical Vocational Education, Training and Skills Development: A Roadmap for Empowerment (Dec. 2008): Ministry of Human Resource Development, Department

hypergeometric functions by employing the generalized Gauss’s second summation the- orem, Bailey’s summation theorem and Kummer’s summation theorem obtained earlier by Lavoie,

Quality: We measure quality (Q in our formal model) by observing the average number of citations received by a scientist for all the papers he or she published in a given

As consequence, this paper contains a study on the effect of the rotor bar number on the torque (average and quality) of five-phase induction machines under different supply

All the figures and tables should be labeled (Times New Roman 11) and included in list of figures and list of tables respectively.

4.1 The Select Committee is asked to consider the proposed development of the Customer Service Function, the recommended service delivery option and the investment required8. It

In this study, it is aimed to develop the Science Education Peer Comparison Scale (SEPCS) in order to measure the comparison of Science Education students'

For the feature ranking and selection procedures, it is not surprising that CAD score is the most relevant fea- ture for the combined strategy, as it is a complete screening strategy