D75P 34R – HNC Computer Architecture Week 1 Introduction to Binary Storage © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless.

Slides:



Advertisements
Similar presentations
Introduction to Computers Part II
Advertisements

DH2T 34 – HNC Computer Architecture 1 Week 2 Introduction to the Hexadecimal Number System © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen.
Data Representation COE 202 Digital Logic Design Dr. Aiman El-Maleh
D75P 34 – HNC Computer Architecture Week 4 Reading and writing to RAM. © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except where.
The Binary Numbering Systems
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
DATA REPRESENTATION Y. Colette Lemard February
Data Types in Java Data is the information that a program has to work with. Data is of different types. The type of a piece of data tells Java what can.
Binary Representation Introduction to Computer Science and Programming I Chris Schmidt.
Information Processing Session 5B Binary Arithmetic Slide
Chapter 1 Data Storage. 2 Chapter 1: Data Storage 1.1 Bits and Their Storage 1.2 Main Memory 1.3 Mass Storage 1.4 Representing Information as Bit Patterns.
Binary Conversion In today’s lesson we will link together the binary and algorithm topics by looking at how to get the computer to: convert binary to decimal.
1 12/08/03SW Abingdon and Witney College Binary Converting to and from decimal.
Binary “There are 10 types of people in the world… those that understand binary and those that don’t.”
Binary Arithmetic Math For Computers.
© 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.
Numbers and number systems
Positional Number Systems
Copyright © Cengage Learning. All rights reserved. CHAPTER 2 THE LOGIC OF COMPOUND STATEMENTS THE LOGIC OF COMPOUND STATEMENTS.
Computing Higher - Unit 1… Computer Systems 1 Higher Computing Unit 1 – Topic 1 Data Representation.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Binary Logic.
Binary Logic Lets think about the Binary!. What is Binary? Computers use binary as it’s a lot simpler! Each CPU is made up of millions of transistors.
Logic and Digital System Design - CS 303
D75P 34R HNC Computer Architecture 1 Week 9 The Processor, Busses and Peripherals © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College.
NUMBER REPRESENTATION CHAPTER 3 – part 3. ONE’S COMPLEMENT REPRESENTATION CHAPTER 3 – part 3.
IT253: Computer Organization
Data Representation.
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except.
D75P 34R - HNC Computer Architecture Week 6 Boolean Logic © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated.
COMP 1321 Digital Infrastructure Richard Henson University of Worcester October 2013.
CISC1100: Binary Numbers Fall 2014, Dr. Zhang 1. Numeral System 2  A way for expressing numbers, using symbols in a consistent manner.  " 11 " can be.
D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless.
Introduction to Digital Media. What is it? Digital media is what computers use to; Store, transmit, receive and manipulate data Raw data are numbers,
Data Representation Conversion 24/04/2017.
How a Computer Processes Information. Java – Numbering Systems OBJECTIVE - Introduction to Numbering Systems and their relation to Computer Problems Review.
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
Candidates should be able to:
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.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
D75P 34R - HNC Computer Architecture Week 4 Signed Integers © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise.
Georgia Institute of Technology Introduction to Programming Part 3 Barb Ericson Georgia Institute of Technology May 2006.
D75P 34R - HNC Computer Architecture Week 7 A Mini Test! © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Activity 1 Research / Revise how RAM stores DATA 5 minutes 1 0.
BINARY SYSTEMS ENGR. KASHIF SHAHZAD 1. BINARY NUMBERS 1/2 Internally, information in digital systems is of binary form groups of bits (i.e. binary numbers)
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
Understanding Computers
DATA Unit 2 Topic 2. Different Types of Data ASCII code: ASCII - The American Standard Code for Information Interchange is a standard seven-bit code that.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Department of Computer Science Georgia State University
Understanding binary Understanding Computers.
Introduction to Computers
Data Representation in Computer Systems
COMP 1321 Digital Infrastructure
Representation of data in computer systems
COMPUTING FUNDAMENTALS
Chapter 1 Data Storage.
Topic 3: Data Binary Arithmetic.
Ch2: Data Representation
Theory of Computation Turing Machines.
Data Representation Conversion 05/12/2018.
COMP 1321 Digital Infrastructure
Boolean Logic Boolean Logic is considered to be the basic of digital electronics. We know that a computer’s most basic operation is based on digital electronics.
Data Binary Conversion.
Understanding Binary Numbers.
Binary.
Theory: 2.6 – Data Representation
Two’s Complement & Binary Arithmetic
Presentation transcript:

D75P 34R – HNC Computer Architecture Week 1 Introduction to Binary Storage © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated Roman Centurion courtesy of RomTech, used under licence Binary program courtesy of Manchester University, with permission Prepared 1/9/04

Definition computer noun [C or U] an electronic machine which is used for storing, organizing and finding words, numbers and pictures, for doing calculations and for controlling other machines: a personal/home computer All our customer orders are handled by computer. We've put all our records on computer. Is she computer-literate (= does she know how to use a computer)? computer software/hardware computer graphics a computer program From Cambridge English Dictionary…

Computers have no subjective judgement, cannot hold opinions or be swayed by human argument! They can only make logical decisions based on whether something is true/false, high/low, on/off etc. They can only make discrete decisions.

Computer circuits are formed from millions of tiny switches – nowadays these are made from transistors and capacitors (early computers used valves or metal plates). Everything a computer stores or manipulates must therefore be reduced to a series of switches, which are either ON -- 1or OFF- - 0

Because computers can only recognise two states, this gives us the term “binary” – from the Latin bi-, meaning “two”. Each switch is called a “bit” – from the terms binary and digit. They can accomplish quite a lot with just two states, though – combinations of binary digits can be used to represent ….

Numbers….. … Letters … Colours … …and many other things besides!

To begin, we will see how to store simple integer numbers in a binary format. If we begin with one switch, or bit, we can count up to 1. The switch can either be OFF- representing 0 – or ON, representing 1. If we want to count higher than 1, we have to add an extra bit….

Two switches, or bits, enable us to count up to 3. Zero - One - Two - Three - Working from the right, the first bit represents lots of 1, or 2 0. The second bit represents lots of 2, or 2 1. If we added a third bit on the left, it would represent lots of 4, or 2 2.

We can build up a table of bits, and what each one is worth, depending on it’s place in the row If all the bits were set to 1 in the 10-bit storage above, the whole number would be worth 1023 – i.e ! Another way of calculating this would be – (2 10 – 1), or (1024 – 1), = 1023.

What are the valves doing? To work out what a binary value is worth in base 10, or denary, we can start with the table we just saw – And line up the digits in the correct places…..

Our number is worth = What is the value of this one?

You will also be required to convert numbers in a denary base – base 10 – to binary. The question will tell you how many bits of storage to use. Example – convert 935 to binary using 12 bit storage Note that although there are 12 bits, the leftmost bit is worth 2 to the power of 11. That’s because the powers “start” from 0. 0 – 11 gives us twelve values!

Our original number was 935. We can get one “lot” of 512 out of that, leaving (935 – 512) = 423… 423 gives us enough to make 1 lot of 256, leaving 167 over…. From 167 we can take 128, leaving 39… There’s not enough to make a 64, but we’ll get 32, leaving 7…. The remaining 7 will make a 4, a 2 and a 1.

Now we fill in the remaining spaces with zeroes, which do not affect the value in any way. Our number, 935, would be stored in binary as You may sometimes see this written as to denote that this is a binary, or base 2, number.

…and the Romans did not use number bases at all! So although they were good at building, painting and administration, they never developed complex mathematical systems as the Greeks and Arabs did. The denary numbers we normally use are written in base 10. But this was not always the case! The Ancient Babylonians used a sexagesimal, or 60, number base…. …the ancient Egyptians used 12s….

Work out the number 211 in 8-bit storage The answer is What is the highest integer number that would fit in 8 bits? What do you think would happen if we tried to store a number bigger than that?

This is part of a program written for one of the first electronic computers, the Manchester Mark 1, in In those days all programming was done in binary. This was very tedious and prone to lots of errors!

The average modern processor uses about 55 million transistors and capacitors to store and manipulate binary values. Modern computing on a 32-bit platform can handle integers up to 4,294,967,295 i.e. (2 32 – 1). The latest 64-bit AMD processors can go up to 18,446,744,073,709,551,615!

Summary.  Computers can only recognise two states.  A switch, or bit, cannot be between states.  The time delay for transition between states is negligible.  Anything stored or manipulated by computers must be held as some combination of 1s and 0s.  To store simple integers, computers use a binary or base 2 format.  They can store values up to (2 number of bits – 1).