Behind the scenes in your computer

Slides:



Advertisements
Similar presentations
Looking Inside the Black Box
Advertisements

Data Storage A Module of the CYC Course – Computer Basics
Bits and Bytes And why we have to care in VB!. All computer storage is organized into bytes Think of each byte as a little storage bin Each byte is made.
STORAGE MEDIA & STORAGE DEVICES BASIC TERMS: Recording or saving data future use. Store/Save device that holds the data or information. Storage Media.
Network, Local, and Portable Storage Media Computer Literacy for Education Majors.
Lecture # 2 Computer Hardware Computers are all around! Grocery store Schools Libraries Bank Mail Malls We interact with computers everyday! We interact.
Number Systems Digital Logic By: Safwan Mawlood
Nat 4/5 Computing Science Lesson 1: Binary
Vocabulary Electronic pulses Transistors Decimal numbers
CS 1 Introduction CS 1 Part 11. Hardware 1.Central Processing Unit (CPU) 2.Main Memory 3.Secondary Memory / Storage 4.Input Devices 5.Output Devices CS.
NUMBER SYSTEMS The BASE of a number system Determines the number of digits available In our number system we use 10 digits: 0-9 The base in our system.
Binary, Hexadecimal, and Base 10.
Information Representation
 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.
Binary and Hexadecimal Numbers
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
Chapter 1-C,D Computers and Digital Basics.
Unit 3—Part A Computer Memory
Binary and Decimal Numbers
CREATED BY, MS. JENNIFER DUKE BITS, BYTES, AND UNITS OF MEASUREMENT.
Communications Technology 2104 Mercedes Lahey. Bit 1. bit=From a shortening of the words “binary digit” 2. the basic unit of information for computers.
Bits & Bytes: How Computers Represent Data
Data and Program Representation
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
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.
Data Representation and Storage Lecture 5. Representations A number value can be represented in many ways: 5 Five V IIIII Cinq Hold up my hand.
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.
What do computers know?  All they really know is on or off.  Kind of like a light switch  Computers aren’t nearly as smart as you are!
Text and Graphics September 26, Unit 3.
Lecture Binary and Hexadecimal Numbers. How Machines Think Computers handle two types of information: –Instructions –Data The "words" of a machine language.
Computer Confluence 7/e © 2006 Prentice-Hall, Inc.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Unit 2—Part A Computer Memory Computer Technology (S1 Obj 2-3)
Introduction to Programming Instructor: Yong Tang Brookhaven National Laboratory Working on accelerator control (BNL Phone #)
Data Representation Bits, Bytes, Binary, Hexadecimal.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
CS 111 – Sept. 1 Intro to data representation Binary numbers –Convert binary  decimal –Convert decimal  binary Text –ASCII and Unicode Commitment: –For.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Computers - The Journey Inside continues…
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
2.1.4 Data Representation Units.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
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.
CC111 Lec#2 The System Unit The System Unit: Processing and Memory Lecture 2 Binary System.
Computer Graphics HARDWARE. Computers  Computers are automatic, electronic machines that –accept data & instructions from a user (INPUT) –store the data.
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Binary and Hard Disk PEOPLE Program
Understanding binary Understanding Computers.
3.1 Denary, Binary and Hexadecimal Number Systems
Storage Hardware This icon indicates the slide contains activities created in Flash. These activities are not editable. For more detailed instructions,
Computer Memory Digital Literacy.
Bits & Bytes How Computers Represent Data
Introduction to Computers
Information Support and Services
EPSII 59:006 Spring 2004.
Unit 2 Computer Memory Computer Technology (S1 Obj 2-3)
Unit 3—Part A Computer Memory
Data Representation Numbers
Computers & Programming Languages
Main memory and mass storage
Unit 3—Part A Computer Memory
Binary and Hexadecimal Numbers
Bits, Bytes, and Storage.
How Computers Store Data
Information Technology Department
Presentation transcript:

Behind the scenes in your computer Bits and Bytes Behind the scenes in your computer

All computer storage is organized into bytes Think of each byte as a little storage bin Each byte is made up of 8 bits Each bit is an electronic circuit that is either on or off (off = 0, on = 1) A specific sequence of 0’s and 1’s in a byte is called a bit pattern

So, how many bytes are in your computer? Common Prefixes Kilo 103 1,000 Thousand Mega 106 1,000,000 Million Giga 109 1,000,000,000 Billion Tera 1012 1,000,000,000,000 Trillion Typical Capacities: RAM: 1, 2, 4, 6 or 8 GB Diskette: 1.44 MB Flash drive: 2, 4, 8, 16, 32, 64, 128 GB CD: 800 MB DVD: 4.7 GB Hard Drive: 500 GB – 2 TB

Converting Between Units To Convert … From To Action KB Bytes Multiply by 1,000 (move decimal point 3 places right) MB Multiply by 1,000,000 (move decimal point 6 places right) GB Multiply by 1,000,000,000 (move decimal point 9 places right) Divide by 1,000 (move decimal point 3 places left) Divide by 1,000,000 (move decimal point 6 places left) Divide by 1,000,000,000 (move decimal point 9 places left) Example 1: 5200 KB = ? MB 5200 × 1000 = 5,200,000 bytes 5,200,000 /1,000,000 = 5.2 MB Example 2: 7.5 GB = ? KB 7.5 × 1,000,000,000 = 7,500,000,000 bytes 7,500,000,000 / 1000 = 7,500,000 KB

You Try: 3.2 MB = ? Bytes 6.4 GB = ? MB 57,000 Bytes = ? KB 25,000 KB = ? MB

What kinds of information do you store on your computer? numerical values (binary number system) text/character data (ASCII or Unicode) program instructions (machine language) images (jpg, gif, tiff, bmp, wmf, etc.) video (mp4, mov, avi, wmv, etc.) music (mp3, wav, wma, au, etc.)

“Kathy Ames” is text It would be stored like this using ASCII codes 01001011 01100001 01110100 01101000 01111001 00100000 00100001 01101101 01100101 01010011 It would be stored like this using ASCII codes

Numerical values needed for arithmetic are stored using a different scheme The numerical value 40 would be stored like this using the binary number system. 00101000 (note that “bit” stands for “binary digit”)

How do binary numbers work? Decimal Number System Binary Number System Base 10 Base 2 10 digits (0,1,2,3,4,5,6,7,8,9) 2 digits (0,1) Positional values based on powers of 10 Positional values based on powers of 2 Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number 8-bit binary number

Converting from Binary to Decimal What is the decimal value of the bit pattern 01101010 ? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Simple! Just add up the positional values where the 1’s appear: 64 + 32 + 8 + 2 = 106 So, we say that 011010102 = 106 decimal

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Simple! Just think about money and consider positional values as bills and 151 “dollars” as the amount we must make. Then “count change” from largest “denomination” to smallest until total value of change is accumulated.

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128 + 16 = 144

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128 + 16 = 144

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128 + 16 + 4 = 148

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128 + 16 + 4 + 2 = 150

Converting from Decimal to Binary How can we represent the decimal value 151 in binary? Positional Values 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20 Binary Number Running Total: 128 + 16 + 4 + 2 + 1 = 151 So, 151 decimal = 100101112

So What is Hexadecimal? (often called “hex”) A base 16 number system 16 possible digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Positional values are powers of 16 Mainly used is as “short hand” for binary 1 hex digit = 4 binary digits

Hex Digits Dec Value 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 0010 0011 0100 0101 0110 0111 Dec Value 8 9 10 11 12 13 14 15 Hex Digit A B C D E F 4-bit binary 1000 1001 1010 1011 1100 1101 1110 1111

Converting from Hex to Decimal What is the decimal value of hex 3B? Positional Values 16 1 161 160 Hex Number 3 B Simple! 3 × 16 + B × 1 = 3 × 16 + 11 × 1 = 48 + 11 = 59 So, we say that 3B hex = 59 decimal

Converting from Hex to Decimal What is the decimal value of hex E4? Positional Values 16 1 161 160 Hex Number E 4 Simple! E × 16 + 4 × 1 = 14 × 16 + 4 × 1 = 224 + 4 = 228 So, we say that E4 hex = 228 decimal

Let’s take another look at Hex 3B Dec Value 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 0010 0011 0100 0101 0110 0111 Dec Value 8 9 10 11 12 13 14 15 Hex Digit A B C D E F 4-bit binary 1000 1001 1010 1011 1100 1101 1110 1111 So Hex 3B = 00111011 Binary First Digit Second Digit 3 B 0011 1011 (And note that 00111011 Binary = 32 + 16 + 8 + 2 + 1 = 59 Decimal)

Let’s take another look at Hex E4 Dec Value 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 0010 0011 0100 0101 0110 0111 Dec Value 8 9 10 11 12 13 14 15 Hex Digit A B C D E F 4-bit binary 1000 1001 1010 1011 1100 1101 1110 1111 So Hex E4 = 11100100 Binary First Digit Second Digit E 4 1110 0100 (And note that 11100100 Binary = 128 + 64 + 32 + 4 = 228 Decimal)

What about converting Binary 10100010 to Hex? Dec Value 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 0010 0011 0100 0101 0110 0111 Dec Value 8 9 10 11 12 13 14 15 Hex Digit A B C D E F 4-bit binary 1000 1001 1010 1011 1100 1101 1110 1111 First Digit Second Digit 1010 0010

What about converting Binary 10100010 to Hex? Dec Value 1 2 3 4 5 6 7 Hex Digit 4-bit binary 0000 0001 0010 0011 0100 0101 0110 0111 Dec Value 8 9 10 11 12 13 14 15 Hex Digit A B C D E F 4-bit binary 1000 1001 1010 1011 1100 1101 1110 1111 First Digit Second Digit 1010 0010 A 2 So 10100010 Binary = A2 Hex

Verify that Binary 10100010 and Hex A2 have the same Decimal values Binary 10100010 = 128 + 32 + 2 = 162 Hex A2 = A × 16 + 2 × 1 = 10 × 16 + 2 × 1 = 160 + 2 = 162

You try: Convert 210 Decimal to: Binary: Hex: Convert 2D Hex to: Decimal: Convert 10001100 Binary to: