Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers...

25
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective 2: Add two 8-bit binary integers and explain overflow errors which may occur Objective 3: Define the terms bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte

Transcript of Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers...

Page 1: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAim: Explain binary and binary units

Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa

Objective 2: Add two 8-bit binary integers and explain overflow errors which may occur

Objective 3: Define the terms bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte

Page 2: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

talk to the hands!

BinaryWhat is a denary number?

234

Why Base 10?

Page 3: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryWhat is a binary number?

Binary is the universal

language of computers

1s248163264128

1100110100101010111101010100101110

10101111010101010101001011000101000

10001111100011010001000101001011101

Why Base 2?

Page 4: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryConverting denary to binary

234

1s248163264128

0 0 01

234-128=106

1

106-64=42

1

42-32=10

1 1

10-8=2

Page 5: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryConverting denary to binary - EXERCISE

Convert the following to 8 bit binary:

1634128132

00010000001000101000000010000100

4725511127

00101111111111110000101101111111

Page 6: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryConverting denary to binary – Online Game

http://forums.cisco.com/CertCom/game/binary_game_page.htm

Page 7: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary

Adding 8 bit binary numbers

00101010 + 01101101

10 1 0 1 0 1 0

00

1 0 1 1 0 11 1 1 1 10

10

10

1

THREE RULES!0 + 0 = 00 + 1 = 11 + 1 = 0 (carry 1)

151109

42DEC

Page 8: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary

Adding 8 bit binary numbers

10010110 + 10011011

00 0 1 0 1 1 0

11

0 1 1 0 1 110

110

OVERFLOW!ERROROVERFLOW!ERROR

010

11

101 305

155150DEC

Page 9: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary - EXERCISE

00010010 + 01000011 =

10000101 + 00111110 =

00101010 + 01101101 = 10010110 + 10001101 =

Page 10: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary - EXERCISE

00010010 + 01000011 =

1

0 0 1 0 0 1 0

0

0

0 0 0 0 1 1

10

1

101010

Page 11: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary - EXERCISE

1000010 + 00111110 =

0

0 0 0 0 0 1 0

0

1

1 1 1 1 1 0

00

1

11 0

1

0

1

0

1

0

1

Page 12: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary - EXERCISE

00101010 + 01101101 =

1

0 1 0 1 0 1 0

0

0

1 0 1 1 0 1

111 10

1

10

1

0

1

Page 13: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAdding binary to binary - EXERCISE

10010110 + 10001101 =

0

0 0 1 0 1 1 0

1

1

0 0 1 1 0 1

110

1

10 0

1

0

1

01

OVERFLOW!

Page 14: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryTools to Help

Page 15: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a bit?

A bit can either be a 1 or 0

Page 16: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a byte?

A byte is 8 bits

Page 17: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

A nibble is 4 bits

A nibble is half a byte

What is a nibble?

This is a mouseThis is a mouseThis is a mouseThis is a mouseThis This is a mouseThis is a mouseThis is a mouseThis is a mouseThis is a mouse

Page 18: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

A kilobyte is 1024 bytes

What is a Kilobyte (KB)?

x 1024

Why not 1000?

Page 19: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a Megabyte (MB)?

A megabyte is 1024 kilobytes

Page 20: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a Gigabyte (GB)?

A gigabyte is 1024 megabytes

Page 21: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a Terabyte (TB)?

A terabyte is 1024 gigabytes

Page 22: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits

What is a Petabyte (PB)?

A petabyte is 1024 terabytes

Page 23: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryUnits - EXERCISE

Arrange the following in size order:

BITBYTE

NIBBLE

KILOBYTE

MEGABYTEGIGABYTE

TERABYTEPETABYTE

Page 24: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

BinaryAim: Explain binary and binary units

Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa

Objective 2: Add two 8-bit binary integers and explain overflow errors which may occur

Objective 3: Define the terms bit, nibble, byte, kilobyte, megabyte, gigabyte, terabyte

Page 25: Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.

Binary and HexadecimalWeb Resources

LESSON FILEShttp://edmundo.ecis.org/downloads/

CISCO BINARY GAME http://forums.cisco.com/CertCom/game/binary_game_page.htm

BINARY UNITShttp://www.teach-ict.com/gcse_new/computer%20systems/storage_units/miniweb/index.htm