Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
How Computers Represent Numbers Friday, Week 5. Binary Code A series of 1’s and 0’s Place value is in powers of 2.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
COMPUTER FUNDAMENTALS David Samuel Bhatti
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
COMT 222 Tools for a Digital World. Digital? What makes information Digital? If it helps:  When is information not analog? Answer:  A finite number.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Binary Code.
Computing Theory – F453 Number Systems. Data in a computer needs to be represented in a format the computer understands. This does not necessarily mean.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
©Contrinex JDC PPT_XF_BinHexDecASCII Encoding information J.-D. Chatelain.
Converting From decimal to Binary & Hexadecimal to Binary
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Springfield Technical Community College Center for Business and Technology.
Introduction to Number Representation A451 GCSE Computing.
Comp 335 – File Structures Hexadecimal Dumps Interpreting File Contents.
Computer Studies Today Chapter 19 1 Chapter 19. Computer Studies Today Chapter 19 2 »Information stored in a computer is in two states: –ON –OFF.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Numbering Systems and Conversion Understand How Computing Devices Work 1.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
STARTER – CRACK THE CODE
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Base 16 (hexadecimal) Uses the decimal digits and the first letters of the alphabet to encode 4 binary bits (16=2 4 ) abcdef or ABCDEF.
First Foray into Programming (the hard way). A reminder from last lesson: A machine code instruction has two parts:  Op-code  Operand An instruction.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
1.4 Representation of data in computer systems Character.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Some basic concepts underlying computer archi­tecture
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Understanding binary Understanding Computers.
Unit 18: Computational Thinking
CSCI 198: Lecture 4: Data Representation
Data Transfer ASCII FILES.
CSCI 161: Lecture 4: Data Representation
Information Support and Services
EPSII 59:006 Spring 2004.
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Denary to Binary Numbers & Binary to Denary
RFID - EN Encoding information Encoding information J.-D. Chatelain.
Data Encoding Characters.
Data Storage Introduction to computer, 2nd semester, 2010/2011
Binary Code  
Computers & Programming Languages
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Hexadecimal Conversions
Binary Lesson 3 Hexadecimal
Data Hexadecimal.
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Numeral systems (radix)
Learning Intention I will learn how computers store text.
Binary Lesson 4 Hexadecimal and Binary Practice
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Electronic Memory.
Computer Architecture CST 250
WJEC GCSE Computer Science
Binary.
Course Code 114 Introduction to Computer Science
Section 6 Primitive Data Types
Presentation transcript:

Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert Hexadecimal to Denary Key words: 8 bit byte, decimal, hexadecimal

Each place is called a BIT (Binary digIT) Bits and Bytes 128 64 32 16 8 4 2 1 0 1 0 0 0 0 0 1 8 Bits make one BYTE Each place is called a BIT (Binary digIT)

Question 0 1 0 0 0 0 0 1 What is a BIT?

Question How many bits are there in this byte? 0 0 0 1 0 0 0 1 Answer = 8

Question 0 1 0 0 0 0 0 1 How many bytes are there in a kilobyte? Answer = 1024

Converting from binary to decimal 8 4 2 1 0 0 1 1 =3 1 0 0 1 =9 =10 0 1 1 1 =7 1 0 1 0 0 1 0 1 =5 1 1 1 1 =15

Converting between decimal and binary 128 64 32 16 8 4 2 1 0 1 0 0 0 1 1 1 = 64 + 4 + 2 + 1 = 71 128 64 32 16 8 4 2 1 0 0 0 1 0 1 1 0 = 16 + 4 + 2 = 18

Converting between decimal and binary 128 64 32 16 8 4 2 1 0 0 1 0 0 0 1 1 = 32 + 2 + 1 = 35 0 0 1 1 0 0 1 0 = 32 + 16 + 2 = 50 0 1 1 0 0 0 1 1 = 64 +32 +2 +1 = 99

Binary and Hex digits ... 0 0 0 0 = 0 1 0 0 0 = 8 0 0 0 1 1 0 0 1 = 1 = 9 0 0 1 0 1 0 1 0 = A = 2 0 0 1 1 1 0 1 1 = 3 = B 0 1 0 0 1 1 0 0 = 4 = C 0 1 0 1 1 1 0 1 = 5 = D 1 1 1 0 0 1 1 0 = 6 = E 1 1 1 1 = F 0 1 1 1 = 7

Binary to hex conversion (For lazy people) 0 1 1 1 0 0 1 1 = 115 0 1 1 1 0 0 1 1 Written as: 7316 Or 73Hex 7 3 Assign a number to each of the nibbles ...

A = 01000001 How is data stored? Book Vs Computer A book stores data with ink and paper A computer stores data as electronic 0’s and 1’s A = 01000001 Remember from a previous lesson … 8 bit byes, kilobytes ..etc.

Converting between decimal and binary 10000s 1000s 100s 10s 1s 05565 0 5 5 6 5 128 64 32 16 8 4 2 1 0 1 0 0 0 0 0 1 = 64 + 1 = 65

What are the following binary numbers in decimal? What are the following binary numbers in Hexadecimal? 8 128 4 64 2 32 1 16 8 8 4 4 2 2 1 1 0 1 0 0 0 0 1 1 = 67 = 43Hex = 78 0 1 0 0 1 1 1 0 = 4EHex

How are letters, numbers and symbols held in the computer? NO! A = 1, B = 2, C = 3 … etc? All characters are held in a universally recognised coded called: ASCII Say Ass-Key A = 65, B = 66, C =67 … a = 97, b=98

ASCII ... A American S Standard C Code for I Information I Interchange

Worksheets!

Coverting Hex to Denary: 16 1 42Hex = 4 2 = 4 x 16 + 2 x 1 = 64 + 2 = 66 16 1 2AHex = 2 A = 2 x 16 + 10 x 1 = 32 + 10 = 42

Coverting Hex to Denary: 16 1 C5Hex = C 5 = 12 x 16 + 5 x 1 = 192 + 5 = 197 16 1 EAHex = E A = 14 x 16 + 10 x 1 = 224 + 10 = 234