Candidates should be able to:

Slides:



Advertisements
Similar presentations
Base 10 Denary Decimal
Advertisements

Candidates should be able to:
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #3 NUMBER SYSTEMS, OPERATION & CODES (PART 2)
Information Processing Session 5B Binary Arithmetic Slide
Chapter 4.2 Binary numbers: Arithmetic
Binary numbers. 1 Humans count using decimal numbers (base 10) We use 10 units: 0, 1, 2, 3, 4, 5, 6, 7, 8 and (5.
 A binary number is a number that includes only ones and zeroes.  The number could be of any length  The following are all examples of binary numbers.
Binary Aim: Explain binary and binary units Objective 1: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Objective.
Number Systems and Codes In PLC
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Binary and Hexadecimal Numbers
A-Level Computing Data representation. Objectives Know how data can be represented in a computer system Understand the need for various forms of representation.
Binary Arithmetic In today’s lesson we will look at: a reminder of how binary works adding binary numbers overflow complements negative numbers and subtraction.
Chapter 4: Representation of data in computer systems: Number OCR Computing for GCSE © Hodder Education 2011.
BR 8/99 Binary Numbers Again Recall than N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to 255.
Conversions Denary to Binary Method 1
Data Representation Conversion 24/04/2017.
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Number Bases and Representation. Denary Number System (Base 10) Our number system uses 10 digits (0-9) As you move from right to left each number is worth.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
Addition and Substraction
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems.
A)Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa b)Add two 8-bit binary integers and explain overflow errors which.
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
1 4. Computer Maths and Logic 4.1 Number Systems.
Topic 14.1 Extended Hexadecimal  Decimal is base 10 and uses 10 digits (0,1,2,3,4,5,6,7,8,9).  Binary is base 2 and uses 2 digits (0,1).  Computers.
GCSE Computing#BristolMet Session Objectives#8 MUST add two 8-bit binary integers SHOULD explain overflow errors COULD provide solutions to limit overflow.
BINARY Toby Wilson. LEARNING OBJECTIVES  Be able to convert binary to denary  Be able to convert denary into binary  Be able to explain how computers.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Introduction to Number Representation A451 GCSE Computing.
The Hexadecimal Number System Representation of Data in Computer Systems.
Two’s Complement The language of machines, part II.
Starter Using the mini whiteboards record your answers: 1) Name 2 different Character Sets 2) Convert the Hex number 9E into denary 3) Convert the binary.
STARTER – CRACK THE CODE
WHAT IS BINARY? Binary is a number system that only uses two digits: 1 and 0. Any information that processed by a computer it is put into sequence of.
Unit 2.6 Data Representation Lesson 1 ‒ Numbers
Binary, Denary, Hexadecimal Conversion Binary Addition
Binary and Hexadecimal
Lec 3: Data Representation
3.1 Denary, Binary and Hexadecimal Number Systems
Lesson Objectives Aims
Binary numbers: Week 7 Lesson 1
Denary to Binary Numbers & Binary to Denary
…to GCSE Level with Python Sue Sentance
Lesson objectives Understand how computers represent and manipulate numbers [unsigned integers, signed integers (sign and magnitude, Two’s complement)
5Th Class Maths Additon & Subtraction.
Addition and Substraction
Lesson Objectives Aims You should be able to: Convert Denary to Binary
Number Column Addition and Subtraction for Decimals
Teaching Computing to GCSE
Lesson Objectives To understand how to add 4 and 8 bit binary numbers together To understand what is meant by the term “Overflow” ALL students will add.
Follow-up question Factorize x2 + 2x – 15. Solution
Teaching Computing to GCSE
Data Representation Conversion 05/12/2018.
Data Hexadecimal.
Topic 3: Data Hexadecimal.
(return of the…) Data blast
Binary  Name: Class: .
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
LO1 – Understand Computer Hardware
Binary It’s all 0’s and 1’s.
Sum means find the answer by Addition.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.2 Signed Integers.
Binary.
Theory: 2.6 – Data Representation
Two’s Complement & Binary Arithmetic
Section 6 Primitive Data Types
Presentation transcript:

Candidates should be able to: Convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa Add two 8-bit binary integers and explain overflow errors which may occur Convert positive denary whole numbers (0-255) into 2-digit hexadecimal numbers and vice versa. Convert between binary and Hex equivalents of the same number Explain the use of Hex numbers to represent binary numbers

Starter Have a go at converting denary to binary numbers on the booklet provided

Adding binary numbers together FEW RULES:

Adding Binary http://courses.cs.vt.edu/csonline/NumberSystems/Lessons/AddingTwoBinaryNumbers/index.html This clip shows you how binary numbers can be added together.

Adding binary numbers together 00011101 + 10011011

Adding binary numbers together Step 1: Start off by putting the numbers in the top 2 rows in a 4 row table. 3rd row will hold any carry overs 4th row will contain the answer

Adding binary numbers together Step 2: Add the column on the right together From the rules above we know that 1+1 = 10

Adding binary numbers together Step 2: Put a 0 on the bottom row & we carry a 1 over into column 7

Adding binary numbers together Step 3: Column 7 Add the 3 rows together 0+1+1 = 10

Adding binary numbers together Step 3: Column 7 Put 0 at bottom of column 7 Carry the 1 to row 3 of column 6

Adding binary numbers together Step 4: Column 6 1+0+1 = 10

Adding binary numbers together Step 4: Column 6 Put 0 down Carry 1 over to column 5

Adding binary numbers together Step 5: Column 5 1+1+1 = 11

Adding binary numbers together Step 5: Column 5 Put 1 down in column 5 Carry 1 over to row 3 column 4

Adding binary numbers together Step 6: Column 4 1+1+1 = 11

Adding binary numbers together Step 6: Column 4 Put 1 down in column 4 Carry 1 over into column 3

Adding binary numbers together Step 7: Column 3 0+0+1

Adding binary numbers together Step 7: Column 3 Put 1 down in column 3 row 4 Carry 0 to column 2

Adding binary numbers together Step 8: Column 2 0+0+0=0

Adding binary numbers together Step 8: Column 2 Put 0 down in column 2 row 4 Carry 0 into column 1 row 3

Adding binary numbers together Step 9: Column 1 0+1+0 = 1

Adding binary numbers together Step 9: Column 1 Put 1 down in column 1 row 4 Nothing to carry over

Adding binary numbers together RESULTS:

Overflow Errors The last binary add was straightforward. HOWEVER what would happen if the sum in column 1 had been 1+1? The carried 1 would have nowhere to go and would be lost. The problem is called overflow and causes the wrong answer.

Overflow Errors To “solve” this problem what normally happens is a flag in the CPU (processor) The software that has caused the error MUST check to see if this flag has been set - & if so it has to handle the problem.

Hexadecimal Numbers Hexadecimal is the name given to numbers using base 16 Decimal numbers 10 – 15 are represented using letter A – F 16 values so base 16

Hexadecimal Used in computing as it is a much shorter way of representing a byte of data. Binary data = 8 digits, Hexadecimal data = 2 digits E.G. 11111111 = FF Largest byte value is 255 and hexadecimal can represent up to that number

Hexadecimal

http://templehouse.me.uk/gcsecomputing/BinaryHexConversion.html