0% found this document useful (0 votes)
135 views14 pages

Cfe2 D 35 Binary Code Powerpoint Ver 1

This document discusses binary code, including why it is used by computers, how it represents data using only zeros and ones, how binary numbers work in a base-2 system compared to our base-10 decimal system, and how computer circuits use binary code to represent "on" and "off" states using electric pulses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views14 pages

Cfe2 D 35 Binary Code Powerpoint Ver 1

This document discusses binary code, including why it is used by computers, how it represents data using only zeros and ones, how binary numbers work in a base-2 system compared to our base-10 decimal system, and how computer circuits use binary code to represent "on" and "off" states using electric pulses.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

Aim

• I can understand binary code and why it is used.


Binary Numbers
Binary numbers look like this…
Binary Numbers or Binary Code
Binary numbers or binary code are used
by computers and digital devices to talk to
each other. It is used to give commands to
the computer or a way to enter data
(information).

We use the alphabet to write letters or words


to communicate. Computers use binary
code.
Binary Alphabet (Uppercase Letters)
This is the binary alphabet. Instead of A 01000001 N 01001110
writing the letter “A”, computers B 01000010 O 01001111
would write 01000001. C 01000011 P 01010000
Binary numbers are always eight
D 01000100 Q 01010001
digits long and are only made up of E 01000101 R 01010010
zeros or ones. F 01000110 S 01010011
G 01000111 T 01010100
H 01001000 U 01010101
I 01001001 V 01010110
J 01001010 W 01010111
K 01001011 X 01011000
L 01001100 Y 01011001
M 01001101 Z 01011010
How Does Binary Work?
Firstly, you need to understand our number system.
Our number system is called Base 10.

This means that we can use any of these ten numbers to create any numbers we
need.

0 1 2 3 4 5 6 7 8 9
Base 10
As soon as we get to the number 10, we need to add another digit onto the left of
our current digit.

For example : 10

We need to add a 1 onto the 0 to make 10.


As there are 10 numbers in our number system, every time we make a new
column, it has to be 10 times greater than the number before.
This Is Using 10 Symbols
…but what if we only had 2 symbols to work with?

Base 2 (binary) is the same as Base 10…

…except that every number to the left is only


2 times bigger, rather than 10 times bigger
than the number before it.
Counting in Binary
x128 x64 x32 x16 x8 x4 x2 x1
1 0 0 1 1 0 1 1
= 155

A binary sequence like this would equal 155.

Can you use the table to work out why?


Counting in Binary
x128 x64 x32 x16 x8 x4 x2 x1
1 0 0 1 1 0 1 1

You need to use multiplication… …and addition.

1 x 128 = 128 1x8= 8 128 + 0 + 0 + 16 + 8 + 0 + 2 + 1

0 x 64 = 0 0x4= 0

0 x 32 = 0 1x2= 2 154
152
144
155
128
1 x 16 = 16 1x1= 1
Computer Circuits

Electricity
All computers
is needed
have circuits
for computers
that allow
to work.
electricity
Binaryto pass
codethrough
tells thethem.
circuits when
to
A turn
microchip
the different
is a group
partsofoftiny
a computer
circuits that
on or
help
off.a computer
“On” wasorrepresented
other digital
by one
and
devices
“off”towas
work.
represented by zero.
Did You Know?
In the early days of computing, the only way to
enter data into a computer was by flicking
switches or by feeding in punched cards or
punched paper tape.

The first computer was created by Charles


Babbage in 1837. It was operated using punched
cards and tapes. He called it the ‘Analytical
Engine.’

Modern computers still read data in binary form


because it is much faster and more convenient to
read this from microchips.
Your Turn
A 01000001 N 01001110 Can you write words or messages
B 01000010 O 01001111 using the binary alphabet?
C 01000011 P 01010000
D 01000100 Q 01010001
E 01000101 R 01010010
F 01000110 S 01010011
G 01000111 T 01010100
H 01001000 U 01010101
I 01001001 V 01010110
J 01001010 W 01010111
K 01001011 X 01011000
L 01001100 Y 01011001
M 01001101 Z 01011010

You might also like