01011001 01100101 01100001 01110010 00100000 00111000 00100000 01000010 01101001 01101110 01100001...
TRANSCRIPT
01011001 01100101 01100001 01110010 00100000 00111000 00100000 01000010 01101001 01101110 01100001 01110010
01111001
• LO1. To learn the purpose of binary• LO2. To recognise binary bits.• LO3. To convert decimal to binary
and binary to decimal
Starter
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
• Discuss–What is binary?
Page 1 of your workbook
Still confused.
Computers are not human. They run on electricity, that means they have to use electricity to represent information.
Electricity has two statesON or OFF.
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
Electric Switch
Think of a light switch. • It is either ON or OFF– ON = light on – OFF = light off
On a computer the computerSaves the information as a single number.
1 = There is power 0 = There is no power
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
Page 1 of your workbook
bit of this bit of that!!!
Computers save lots and lots of these 1 (ON) and 0 (OFF) numbers.
We have to group them: one ON and OFF together are called a ‘bit’. This stands for
binary digit
Refresh. A bit is made up of a 1 and an 0
Grouping
• If we have one bit we can have two values. 1 or 0
• How many values can we have if we join two bits together. – 00– 01– 10– 11
• You can see that if we put two bits together we can pick 4 different values.
• We can keep grouping bits to make more and more values
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
Page 2 of your workbook
• How many different values can be made with 3 bits?
• extension.:1 bit = 21
2 bit = 22
2 bit = 23
2 bit = 24
How many values can you have with 5 bits.
000001010011100101110111
Extension:
25 = 32 values
Grouping further!
• The smallest unit in binary is the bit.
• Four bits together are called one nibble.
• Eight bits are called one byte.
• 1024 bytes are called one kilobyte (kb)
• And there is more……..
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
Binary to decimal
In decimal if we have the number 7 we can lay it out in a table: Each is a power of 10
In binary we have a different table. Each is a power of 2.
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
1000 100s 10’s units
7
128 64 32 16 8 4 2 1
0 0 0 0 0 1 1 1
Note: the is 8 bits which is a Byte
Another ExampleThe number 127
In binary
The number 255
In binary
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
1000 100s 10’s units
1 2 7
128 64 32 16 8 4 2 1
0 1 1 1 1 1 1 1
1000 100s 10’s units
2 5 5
128 64 32 16 8 4 2 11 1 1 1 1 1 1 1
Pupils to pretend to be a Byte
• Pupils to be given the signs. • Competition to see who can
make the binary number first.
• Teacher will say a number between 1-255
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert decimal to binary and binary to decimal
Binary to decimalIn binary
Changing binary to decimal. 0*128 + 0*64 + 0*32 + 0*16 + 0*8 + 1*4 + 1*2 + 1*1 = 7
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert binary to decimal
128 64 32 16 8 4 2 1
0 0 0 0 0 1 1 1
128 64 32 16 8 4 2 1
0 1 1 0 0 0 0 1
Changing binary to decimal. 0*128 + 1*64 + 1*32 + 0*16 + 0*8 + 0*4 + 0*2 + 1*1 = 97
Activity.
• Binary worksheet. • Work your way through the
worksheet.• Don’t be afraid to ask the
person next to you.
LO1. To learn the purpose of binary
LO2. To recognise binary bits.
LO3. To convert binary to decimal