binary review. lets review the binary system binary symbols (o / i) represent electrical impulses....

19
Binary Review

Upload: edward-roger

Post on 31-Mar-2015

220 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Binary Review

Page 2: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

LET’S REVIEW THE BINARY SYSTEM

Binary symbols (O / I) represent electrical impulses.

Sends Electricity Receives

Page 3: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

BITS & BYTES

The symbols O and I are considered a “bit”.

8 bits = 1 byte

Page 4: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

LOOK AT THE KEYBOARD

• Notice the different keys.

• How many keys are there?

• What about function keys?

• Upper case/ lower case.

Page 5: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

HOW MANY BITS?

Using only O & I how many are needed to represent ever key?

Let’s try a combination of 2:

OO

OI

II

IO

OK, four keys can be represented.

Page 6: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Let’s try a combination of 3:

OOO

OOI

OIO

IOO

III

IIO

IOI

OIIOK, not enough with three.

How many bits are needed?

Page 7: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

How many bits are needed?

We need a total of eight (8) symbols or bits to represent every key on the keyboard.

8 Bits = 1 Byte

Page 8: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

ASCii Code

The ASCii code assigns a numerical code to each letter. Here is an example:

A = 65 B = 66C = 67

Page 9: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Binary Code

How do the numbers from the ASCii code translate to Binary?

Let’s go back to kindergarten……

Page 10: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Let’s analyze the number …

5281What does this number mean?

The 1 has a place value.The 8 has a place value.The 2 has a place value.The 5 has a place value.

Page 11: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

1000 100 10 1

5 2 8 1

Calculate:

5 x 1000 = 5000

2 x 100 = 200

8 x 10 = 80

1 x 1 = 1

Page 12: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Binary

This technique is also used in binary system.

In the decimal system we use 10 symbols to represent each number.

The binary system is based on 2 (O / I).

Any number can be represented by a series of O/I.

Page 13: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Convert Binary to Alpha/Numeric –

STEP 1: Set up place values.

STEP 2: Add up all place values containing I.

STEP 3: Look up translator (ASCii) number on table to identify key value pressed.

Binary Math Steps

Page 14: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Convert to Binary to Alpha/Numeric

0 0 1 0 1 0 0 1

2 symbol eight place value.Add all the 1s: 32

8 141

128 64 32 16 8 4 2 1 STEP 1

STEP 2

Page 15: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Convert to Binary to Alpha/Numeric

STEP 3

Translator (ASCii) # 41 = )

Page 16: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Decimal to Binary

Let’s translate the #50 to binary code:

128 64 32 16 8 4 2 1

0 0 1 1 0 0 1 0

50- 32- 16- 2

___

0

Page 17: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Convert Alpha/Numeric to Binary

Now let’s try to other way….

STEP 1: Get translator number by looking up key value on ASCii chart.

STEP 2: Set up place values.

STEP 3: Starting on left with place value 128, place an I in every

Value that will divide into the ASCii number.

STEP 4: Check it! Add up all place values containing I. The number

should equal your ASCii number.

Page 18: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

Decimal to Binary Practice

Convert the following key to binary:

Z = AACii (Translator) #

90

Trick: Even #’s end in O and odd #’s end in I.

STEP 1

Page 19: Binary Review. LETS REVIEW THE BINARY SYSTEM Binary symbols (O / I) represent electrical impulses. SendsElectricity Receives

128 64 32 16 8 4 2 1

STEP 2

Decimal to Binary Practice

STEP 3

0 1 0 1 1 0 1 0

STEP 4 6416 8 2= 90

Z = 90 =