Bits and Bytes.

Slides:



Advertisements
Similar presentations
Information Representation
Advertisements

Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
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.
A-Level Computing#BristolMet Session Objectives#8 express numbers in binary, octal and hexadecimal explain the use of code to represent a character set.
Representing Data, Pictures, Time, and Size in Computer
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.
Processing Data.
Data Representation (in computer system) Computer Fundamental CIM2460 Bavy LI.
Computer Fluency Binary Systems. Humans Decimal Numbers (base 10) Decimal Numbers (base 10) Sign-Magnitude (-324) Sign-Magnitude (-324) Decimal Fractions.
Data Storage. SIGN AND MAGNITUDE Storing and representing numbers.
CODING SYSTEMS CODING SYSTEMS CODING SYSTEMS. CHARACTERS CHARACTERS digits: 0 – 9 (numeric characters) letters: alphabetic characters punctuation marks:
9/15/09 - L3 CodesCopyright Joanne DeGroat, ECE, OSU1 Codes.
CHARACTERS Data Representation. Using binary to represent characters Computers can only process binary numbers (1’s and 0’s) so a system was developed.
/4 Binary Code & CPUs Digital Signals
Binary Numbers and ASCII and EDCDIC Mrs. Cueni. Data Representation  Human speech is analog because it uses continuous signals (waves) that vary in strength.
Introduction to Number Representation F451 Year 10 Computing Binary Numbers Binary Numbers Sign/Magnitude Sign/Magnitude 2s Complement 2s Complement Binary.
Bits & Bytes: How Computers Represent Data
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Chapter 4: Representation of data in computer systems: Characters OCR Computing for GCSE © Hodder Education 2011.
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Computer Math CPS120: Data Representation. Representing Data The computer knows the type of data stored in a particular location from the context in which.
Chapter 2 Computer Hardware
Binary Arithmetic & Data representation
Binary Code.
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.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
1 3 Computing System Fundamentals 3.5 Data Representation.
Computer System Basics 1 Number Systems & Text Representation Computer Forensics BACS 371.
Bits & Bytes A bit is the smallest amount of memory used to store information. A bit is represented by either a “0” or a “1”. “Bit” is a contraction of.
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.
Binary System Presented by Mr. Wilhelmi Internal Representation of Data Input Input  Data that is put into the computer for processing Data Data  The.
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Signed Integers The highest bit indicates the sign. 1 = negative, 0 = positive.
Agenda Character representation Numerical Conversions ASCII EBCDIC
Technology in Action Chapter 6 Behind the Scenes: A Closer Look at System Hardware.
The Computer System.
Binary 101 Gads Hill School. Aim To strengthen understanding of how computers use the binary number system to store information.
HNC COMPUTING - COMPUTER PLATFORMS 1 Micro Teach Binary.
Nguyen Le CS147.  2.4 Signed Integer Representation  – Signed Magnitude  – Complement Systems  – Unsigned Versus Signed Numbers.
Lesson 6 Binary Understand what Binary Code means and apply this knowledge Understand how data is represented using bit systems and be able to change decimal.
Understanding Computers
Binary a. express numbers in binary, binary-coded decimal (BCD), octal and hexadecimal;
Data Representation. In our everyday lives, we communicate with each other using analogue data. This data takes the form of: Sound Images Letters Numbers.
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.
Lecture Coding Schemes. Representing Data English language uses 26 symbols to represent an idea Different sets of bit patterns have been designed to represent.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Understanding binary Understanding Computers.
Unit 2.6 Data Representation Lesson 2 ‒ Characters
Chapter 3 - Binary Numbering System
Lesson Objectives Aims You should be able to:
Binary Numbers and ASCII and EDCDIC
Data Transfer ASCII FILES.
Bits & Bytes How Computers Represent Data
Information Support and Services
Data Encoding Characters.
Coding Schemes and Number Systems
Representing Characters
Data Representation Question: Characters
Plan Attendance Files Posted on Campus Cruiser Homework Reminder
How Computers Store Data
Learning Intention I will learn how computers store text.
Option: Data Representation
Electronic Memory.
FIGURE 1-1 Examples of Voltage Ranges and Waveforms for Binary Signals
Option: Data Representation
Presentation transcript:

Bits and Bytes

Electronic Data and Instructions Data and instructions are represented electronically Computers recognize digital signals Binary system Bit Byte Our voices recognize analog signals Continuous signals Computers only recognize digital signals Electrical On/off state The binary system consists of two digits – 0 and 1 Each 0 or 1 is called a bit – short for binary digit Bits are combined into groups of eight bits called bytes Smallest character = bit; eight bits = 1 byte or one character

Binary Coding Scheme Two state system Three types of schemes Off/on electrical states Characters represented by 0s and 1s Three types of schemes ASCII - American Standard Code for Information Exchange EBCDIC - Extended Binary Coded Decimal Interchange Code Unicode Knowing this information helps understand what takes place when data entered into computer – why it takes “so long” for the data to get transformed… Three basic schemes of coding: ASCII – primarily desktop; EBCDIC – primarily mainframe and super; Unicode – to handle languages with large numbers of characters

Data Storage in Computers an analogue quantity is one that can take any value in a range (eg the speed of my car) a digital quantity is one that can take only specific values in a range (eg my fine in Turkish Liras) a computer’s storage is a mass of tiny switches (operated electronically, not by hand) each switch can be on or off – nothing in between therefore a group of switches can represent only a finite number of values therefore data in computers is digital, not analogue

Decimal Numbers in a decimal number, each column tells how many times a particular power of 10 occurs in that number 3518 = 3 of 103 (1000) + 5 of 102 (100) + 1 of 101 (10) + 8 of 100 (1) we call the 10 possible column values digits

Binary Numbers in a decimal number, each column tells how many times a particular power of 10 occurs in that number 3518 = 3 of 103 (1000) + 5 of 102 (100) + 1 of 101 (10) + 8 of 100 (1) we call the 10 possible column values digits in a binary number, each column tells how many times a particular power of 2 occurs in that number 1011 = 1 of 23 (8) + 0 of 22 (4) + 1 of 21 (2) + 1 of 20 (1) we call the 2 possible column values bits (BInary digiTs)

Computers use binary numbers remember, computers store data in collections of switches that can be either off or on a bit, like a switch, has only 2 possible states (0 and 1) therefore a collection of switches can be seen as representing a binary number . . . off on off on on on off on (switches) = 0 1 0 1 1 1 0 1 (binary) = 93 (decimal) these are just 3 different representations of the same number

Bits and Bytes Measure storage and RAM in units of Bytes 8 bits per Byte one Byte per character eg chair = 5 bytes “K” Kilobyte (103) bytes “Meg” Megabyte (106) bytes “Gig” Gigabyte (109) bytes What is next multiple up?

Storing characters text in the computer is also stored using on/off switches using one byte (8 switches) we can encode 256 possible characters, which is generally considered to be sufficient for most applications any coding scheme is more or less arbitrary there are various coding schemes, with 2 dominant ones . . . ASCII – e.g. A, B, C is 65, 66, 67 EBCDIC – e.g. A, B, C is 193, 194, 195 Switch - either on or off state

ASCII Conversion Table Not complete but covers all the characters we are interested in…

ASCII Coding Exercise Code the following: Decipher the following: Hi fun Decipher the following: 01000001 01000101011110000110000101101101