What happens when you press a key on the keyboard? How does the computer know what to display when all it can read are zeroes and ones?
The computer knows an assigned number for every key! The assigned numbers are called ASCII Code, which stands for American Standard Code for Information Interchange. For this lesson, we will only use the codes that stand for the capital letters of the alphabet. The letter A is assigned the number 65, and each letter goes up by one until Z, which is 90. We will also need to use a SPACE, and the SPACE BAR key on the computer is assigned the number 32. Here's a table to show the values:
If you type the letters for LA JOYA , the ASCII code would be 76,65,32,74,79,89,65
Remember how we converted Base Ten to Base Two (if you forgot, go to Understanding Binary Code)? Now convert the code numbers to binary for the processor to read.
Place value of the binary switches
Now, try to convert your name to ASCII, then to binary, using the worksheet. Print the page and turn it in to Mr. H
Want to know all of the ASCII values? View them at http://www.jimprice.com/ascii-0-127.jpg
Curious? See if you can find out what hexadecimal (HEX) code is.
September 30, 2009