ASCII
ASCII
Y10-02-P11: ASCII
Learning objectives
In this lesson you will learn to:
For more information about this topic and additional student activities
see Topic 2 of the student book.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
ASCII
One way to encode binary to store text is to use ASCII.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Why is it necessary?
A A
1101 1000 1000 1000
If one group used the encoding on the right, and another group the encoding on
the left, then they would not be able to communicate.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Bit patterns
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Patterns
Whilst you are not expected to memorise the ASCII table, there are a
couple of patterns that will help you to generate the codes.
The capital letter alphabet starts at denary 65 and the lower case
alphabet starts at denary 97.
The upper and lower case alphabets have matching binary patterns.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Finding patterns
What do you add to the code for ‘A’ to find the code for ‘a’?
What do you subtract from the code for ‘g’ to find the code for ‘G’?
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Deriving characters
It is possible to derive the ASCII value of a character if you know
the ASCII value of another.
Worked example:
The binary code for ‘A’ is 0100 0001.
You need the ASCII value for ‘E’.
From ‘A’ to ‘E’ is 4 characters, so add 4 (in binary) to the
value for ‘A’.
So the binary value for ‘E’ is 0100 0101.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
Limitations
ASCII represents 128 unique characters.
Are there any missing that you can think of?
ASCII is suitable for English (and languages that use the same
characters), but it cannot represent languages that have additional
different characters.
French, German, Cyrillic, and Mandarin are examples of the
hundreds of languages that do not fit into ASCII.
For these languages Unicode was created. The first version is able
to represent 120,000 characters.
≠×÷©®™¥
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.
Y10-02-P11: ASCII
• The logical organisation of the ASCII table allows you to work this out
by counting between the characters.
Outline the shortcomings of ASCII and understand how encoding systems
that use more bits overcome them.
• 7 bits only give 128 possible values. For more characters, more bits
need to be used.
© Pearson Education Ltd 2020. Copying permitted for purchasing institution only.