Computer Science Binary. Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That.

Slides:



Advertisements
Similar presentations
Computer Basics Binary Bits & Bytes
Advertisements

Technology ICT Option: Data Representation. Data Representation In our everyday lives, we communicate with each other using analogue data. This data takes.
1 Chapter 2 The Digital World. 2 Digital Data Representation.
Computer Hardware.
Computer Architecture. Central Processing Unit (CPU)- micro processor The Personal Computer.
 The central processing unit (CPU) interprets and executes instructions.  The “brains” of the computer.  The speed of the processor is how fast it.
Main Memory Lecture 2 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
Processing Data.
Binary and Hexadecimal Numbers
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Unit 3—Part A Computer Memory
Number Systems & Logic Gates Day 1
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Bits and Bytes.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Bits and Bytes in a computers memory Inside the computer are millions of electronic switches. These are grouped together in bundles of 8. A switch can.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Computer Terms. Computer A machine designed to run programs and store information that you create.
Computer Terminology Chapter 2 CIT History of Computers First known device used to compute was the Abacus 3000 BC 1617 John Napier created a crude.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Chapter 2 Computer Hardware
Copyright © 2003 by Prentice Hall Module 5 Central Processing Unit 1. Binary representation of data 2. The components of the CPU 3. CPU and Instruction.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Data Representation A series of eight bits is called a byte. A byte can be used to represent a number or a character. As you’ll see in the following table,
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Computer Hardware Information Technology Week 5 and 6
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Bits & Bytes Created by Chris McAbee For AAMU AGB199 Extra Credit Created from information copied and pasted from
Technology: The Digital Information Age 1. The Digital Paradigm Convergence Solid State Electronics Human-Machine Interface Paul E. Ceruzzi.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
What is a computer? A computer is a device that:
COMPUTER MAINTENANCE REPAIR & TROUBLESHOOTING Powered by DeSiaMore1.
The Hexadecimal Number System and Memory Addressing ISAT 121.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Bits and Bytes IGCSE. A binary number is either a 0 or a 1 and is known as a 'bit' or b inary dig it. However, the CPU cannot deal with just one bit at.
 Bits & Bytes Bits & Bytes  Units of data Units of data  Storage devices Storage devices  Storage Types Storage Types  Secondary Storage Secondary.
Introduction to Computers Rabie A. Ramadan, PhD. 2 About my self Rabie A. Ramadan My website and publications
CSCI-100 Introduction to Computing Hardware Part I.
GCSE ICT Storing data - Internal memory, backing storage, and measuring memory.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Computers - The Journey Inside continues…
Introduction to Computers Rabie A. Ramadan, PhD. 2 Class Information Website ses/2011/summer/intro/
Basic Computer Organization Rashedul Hasan.. Five basic operation No matter what shape, size, cost and speed of computer we are talking about, all computer.
Computer Basics.
M204 - Data Representation
ASCII AND EBCDIC CODES By : madam aisha.
A+ Computer Repair Lesson 3: Number System. Objectives Define binary, decimal, octal, and hexadecimal numbering systems. Define binary, decimal, octal,
Computer Basics Just How Does a Computer Work?. A computer is made up of many parts.
Millions of electronic pulses move through your computer every second. Computers are capable of processing thousands of functions in the time it takes.
Understanding Computers
Computers Inside & Out. How have computers affected your life? How has technology affected your life?
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
~How PC Parts Work~ (30 MARKS). List 4 External components you can see on the PC in front of you and describe the basic function of each one. 1) DVD Drive.
Understanding Binary Understanding Computers. Understanding Computers L3 – Understanding Binary Learning Objectives All will Understand why all data is.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Binary and Hard Disk PEOPLE Program
Understanding binary Understanding Computers.
3 – Boolean Logic and Logic Gates 4 – Binary Numbers
What is Binary? Binary is a two-digit (Base-2) numerical system, which computers use to process and store data. The reason computers use the binary system.
BITS & BYTES.
Machine Architecture and Number Systems
Binary and Hexadecimal Numbers
Bits, Bytes, and Storage.
BITS & BYTES.
Machine Architecture and Number Systems
Chapter Four Data Representation in Computers By Bezawit E.
Information Technology Department
Technology 3 Bits & Bytes.
UNIT – 3 & 4. Data Representation and Internal
Presentation transcript:

Computer Science Binary

Binary Code Remember the power supply that is inside your computer and how it sends electricity to all of the components? That electricity is what creates an on signal. The memory chips inside your computer are divided into thousands of tiny compartments called bits. Each bit has an electronic switch or gate. On means the gate is open and letting electricity go through. The computer reads on or open switches as a number 1. Closed gates are off because the electricity is blocked and cannot get through. The computer reads off bits as 0. It is by grouping these bits together to form a series of 1/0 commands, that data is formed. Eight bits are grouped together to form a byte. In this group of eight, there are 256 possible combinations of 1/0. The grouping of 1/0 within a byte is called Binary Code.

Here's an example of the Binary Code in action: When you type the letter A on your keyboard, electrical signals are sent from the keyboard to the CPU. The CPU turns the signals into binary code. Then, the computer reads the code and sends it on to the monitor to display the letter A.

KB MB GB You may have seen these abbreviations many times before. Do you know what they mean? KB = kilobyte = about 1,000 (one thousand) bytes, (1024 or 2^10) MB = megabyte = about 1,000,000 (one million) bytes, (1,048,576 or 2^20) GB= gigabyte = about 1,000,000,000 (one billion) bytes (1,073,741,824 or 2^30)

Storage As you can see, these abbreviations stand for a specific number of bytes. And each byte holds 8 bits capable of forming 256 combinations of 1/0. Wow! The number that comes before one of these abbreviations represents the computer's memory capacity. For example, if a computer has 64MB of RAM that means that the computer can handle 64,000,000 (64 million) bytes of RAM (that's 64,000,000 microscopic 8- bit panels). Hard disk space is also measured in bytes. So, a 15GB hard drive has 15,000,000,000 (15 billion) bytes for storing memory.

INPUT Look at your keyboard. Each character key is represented by a number that is held in a single byte. Remember how the letter A is sent to the CPU to be translated into binary code? The numerical value of the uppercase letter A is 65. That number 65 is represented in one byte - a combination of 1 and 0 or on and off switches.

Translating –The computer cannot understand letters, so it translates them into numbers that are represented by patterns of on and off. –To get an idea of how much on/off data a computer can store, just imagine pressing one key one billion times! How long would it take?

Timing is Key –If you pressed the key 5 times per second, it would take you over 6 years of continuously typing to reach 1 billion keystrokes equal to 1GB of memory! –And many computers today can store over 20GB of memory on their hard disks! Incredible! So, the next time your computer is taking a long time to load a web page, think of how fast it really is going !

Translation Con't How to translate binary numbers to decimal numbers In order to translate binary numbers into decimal numbers we must understand the concept of place value. We will use the decimal number system to make sure that we are very clear on this concept. Take a look at the example below.

Decimal to Binary We will now take a look at the number 9876 in order to understand place value we will have to break this number into its digits: 9, 8, 7 and 6. In order to get the true value of the 9 digit we have to multiply it by 1000 because the 4 th digit represents the number of thousands. How do we know that the 4 th digit represents the thousands? Recall that we mentioned that the decimal number system has ten symbols and the number of thousands is found in the 4 th digit.

Binary to Decimal Lets begin by looking at the fourth digit again; in this case it is 1. Recall that to determine the value of a digit we take that digit and multiply it by the number of symbols in the number system raised to the power of the location of the digit. So to determine the value of the 4 th digit we would perform the following calculation: 1 x 2 3 = 1 x 8 = 8. We would now repeat this process for the other three digits, then add all of these results to find the translation of the binary number.

Binary Code The binary system that computers use to store and process information is a base 2 system. It needs only two symbols, 0 and 1. In fact, "binary" comes from the Latin word for two. Compare this to the decimal system you use. The decimal system is a base 10 system. ("Decimal" comes from the Latin word for ten.) It has 10 symbols (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). So how do you count in a binary system? How do you represent numbers like 103? In decimal (base 10) numbers, you have a 1s place, a 10s place, a 100s place, and so on, to represent value.

The binary system has places or columns too. Only because you're in base 2, instead of each place being 10 times greater than the place before it, each place is only double (2 times) the one before it.

Binary Addition Adding Binary Numbers You know what is, right? Well in Binary it is not 2, its 10 (one and zero) Adding binary numbers is pretty easy. The key is carrying the 1, just like you do in decimal (base 10) system addition. Know how you carry a 1 over to the next place column every time two decimal numbers in a place column add up to 10 or more? Adding two binary numbers is just like that too. You carry a 1 over to the next place column every time you add in a place column— leaving a 0 in that place column

ASCII ASCII—An Alphabet For Computers Bits, the 0s and 1s of binary code, can be used in many different ways to represent information. To make it easier for computers to communicate with each other, a standard language has been created: ASCII (American Standard Code for Information Interchange). ASCII is an 8-bit code. It uses eight bits to represent a letter, number, or punctuation mark. For instance, a lower case "a" is represented by The word "cat" would be:

Binary ASCII table A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Binary and ASCII websites rintable_charactershttp://en.wikipedia.org/wiki/ASCII#ASCII_p rintable_characters /docs/ascii.htmlhttp:// /docs/ascii.html rces/TJI/flash/counter.swfhttp://www97.intel.com/DISCOVER/Resou rces/TJI/flash/counter.swf