Copyright 2007 Jim Martin1 Computer Communications Dr. Jim Martin

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

ICS312 Set 2 Representation of Numbers and Characters.
1 Chapter Overview Computer Communication The Computer Bus Objectives  Understand how a computer transmits and receives information.  Explain the principles.
Lesson 2 0x Coding ASCII Code.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Copyright 2006 Jim Martin1 Computer Communications Dr. Jim Martin
COMT 222 Tools for a Digital World. Digital? What makes information Digital? If it helps:  When is information not analog? Answer:  A finite number.
Abstraction – Number Systems and Data Representation.
Lecture 5.
Copyright Jim Martin Computers Inside and Out Dr Jim Martin
Representing text Each of different symbol on the text (alphabet letter) is assigned a unique bit patterns the text is then representing as.
Aloha Aloha What you see: What the computer sees: binary number columns binary number columns
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
Data Representation S2. This unit covers how the computer represents- Numbers Text Graphics Control.
Data Representation Int 2 Computing Unit 1 – Computer Systems St Kentigern’s Academy.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
BTEC national Unit 25 Data communication and Networks.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
Representing Data. Representing data u The basic unit of memory is the bit  A transistor that can hold either high or low voltage  Conceptually, a tiny.
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.
ICS312 Set 1 Representation of Numbers and Characters.
1 INFORMATION IN DIGITAL DEVICES. 2 Digital Devices Most computers today are composed of digital devices. –Process electrical signals. –Can only have.
Bits & Bytes Created by Chris McAbee For AAMU AGB199 Extra Credit Created from information copied and pasted from
Lecture 5. Topics Sec 1.4 Representing Information as Bit Patterns Representing Text Representing Text Representing Numeric Values Representing Numeric.
1 Lecture 2  Complement  Floating Point Number  Character Encoding.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
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.
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.
Aim: How can we express a large or small number?
THE BINARY NUMBER SYSTEM “There are only 10 types of people in this world: Those who understand BINARY and those who do not.”
Data Representation The storage of Text Numbers Graphics.
Binary Bracelets. Objectives Encode letters into binary Decode binary back to letters Relate the idea of storing initials on a bracelet to the idea of.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
OFF = 0 ON = 1 = 63 BINARY system
© 2008 Pearson Education, Inc. Prentice Hall Upper Saddle River, NJ Investigating High-Tech Crime By Michael Knetzger and Jeremy Muraski Connecting.
Data Storage © 2007 Pearson Addison-Wesley. All rights reserved.
2.1.4 Data Representation Units.
ISNE101 – Introduction to Information Systems & Network Engineering WEEK 2.
Serial Communication RS-232. In order to make two devices communicate, whether they are desktop computers, microcontrollers, or any other form of integrated.
09/06/ Data Representation ASCII, Binary Denary Conversion, Integer & Boolean data types.
 Computers are 2-state devices › Pulse – No pulse › On – Off  Represented by › 1 – 0  BINARY.
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.
Ch2 Number systems and codes
Copyright 2007 Jim Martin1 Internet and the WWW Dr. Jim Martin
© OCR 2016 Unit 2.6 Data Representation Lesson 1 ‒ Numbers.
Nat 4/5 Computing Science Data Representation Lesson 3: Storing Text
Text and Images Key Revision Points.
Binary Representation in Text
Binary and Hard Disk PEOPLE Program
Number Systems and Codes
UNIT 2 – CHAPTER 1 – LESSON 1 DIGITAL INFORMATION.
Exploring Computer Science – Lesson 2-5
Data Transfer ASCII FILES.
Information Support and Services
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.
Why use Binary? There are only four rules for addition in binary compared to 100 in decimal [0+0=0 ; 0+1=1 ; 1+0=1; 1+1=10]
Data Representation Numbers
Number Systems and Codes
Binary Data representation
Presenting information as bit patterns
Computers Inside and Out
How Computers Store Data
Learning Intention I will learn how computers store text.
Abstraction – Number Systems and Data Representation
Presentation transcript:

Copyright 2007 Jim Martin1 Computer Communications Dr. Jim Martin

Copyright 2007 Jim Martin2 Data Communications Internet Explorer, FireFox Access Link: Dialup, DSL, Cable Modemrouters Links

Copyright 2007 Jim Martin3 Data Communications How does a computer send data to another computer? 1.They need a physical connection (called a link). 2.Data is encoded and transmitted as energy. 3.Energy is decoded at the destination back into data. 4.Each form of energy has different properties which explains why some connections are high speed and other connections are slow

Copyright 2007 Jim Martin4 Data Communications Simplest approach - use varying voltages to represent 1s and 0s One common encoding use negative voltage for 1 and positive voltage for 0 In following figure, transmitter puts positive voltage on line for 0 and negative voltage on line for 1

Copyright 2007 Jim Martin5 Back to the binary number system Let’s say one computer transmits the message ‘hello’ to another computer. Each letter is mapped to a unique number in the range of 0 to 255. The mapping is called the ascii character set: Decimal Character 97 a 98 b …. 122 z Decimal Character … Decimal Character 65 A 66 B …. 90 Z

Copyright 2007 Jim Martin6 Back to binary When ‘hello’ gets sent, the following decimal numbers are sent: We have now seen the message ‘hello’ in two formats: ascii and decimal Remember what decimal format means: A decimal number is a number (e.g., 104) that has a number of digits with the value of each digit ranging from 0 to 9. Each digit represents some number of 1’s, 10’s, 100’s, … Example: 104 in decimal: (1 * 100) + (0 * 10) + (4 * 1) = 104

Copyright 2007 Jim Martin7 Back to the binary number system Binary numbers are a number system made up of 0's and 1's. In base-10, the weight of each digit is based on 10EXP#digit Digit# The magnitude of the first 8 places in binary notation are given by 2EXPdigit# (i.e., a base-2 number system and the digits are referred to as bits): Bit# Example: The number 10 interpreted in decimal is (1 * 10) + (0 * 1) = 10 (in decimal) The number 10 interpreted in binary is (1 * 2) + (0 * 1) = 2 (in decimal) Example The number 13 in decimal is (1 * 10) + (3 * 1) = 13 (in decimal) The number 13 in binary does not exist. Digits must by 1’s and 0’s To convert the decimal number 13 to binary: (1 * 8) + (1 * 4) + (1 * 2) + (1 * 1) = 13 More examples of converting between binary and decimal systems: 0x = 2 in decimal 0x = 8 in decimal 0x = 130 in decimal 0x = 255 in decimal

Copyright 2007 Jim Martin8 Data sent ‘over the wire’ The ascii message : hello In ascii format: hello In decimal format : In binary format: Each character requires 8 bits hello hello The least significant bit of the first character of the message is the first bit that is sent and the first bit that is received The most significant bit of the last character (the ‘o’) is the last bit that is sent and the last bit that is received

Copyright 2007 Jim Martin9 Data Calculations Each ascii character is a byte. A file that contains one million characters (letters, spaces, punctuation) would be 1,000,000 bytes large. If the hard drive in your computer can hold 1 Gigabyte of data, how many files (of 1,000,000 bytes) store ?

Copyright 2007 Jim Martin10 Data Calculations Each ascii character is a byte. A file that contains one million characters (letters, spaces, punctuation) would be 1,000,000 bytes large. If the hard drive in your computer can hold 1 Gigabyte of data, how many files (of 1,000,000 bytes) store ? Answer: / = 1000 files

Copyright 2007 Jim Martin11 Data Calculations Let’s say you send a 1,000,000 byte file to another computer. Your computer connects via some access connection to the Internet. How long does it take to transmit a 1,000,000 byte file over just your access link? Will receive 1,000,000 byte file Access Link: Dialup, DSL, Cable Internet Will SEND 1,000,000 byte file

Copyright 2007 Jim Martin12 Data Calculations An access link can send 56,000 bits per second How many bits in the file: 1,000,000 * 8 = 8,000,000 bits How long does it take to send 8,000,000 bits over the link? 8,000,000 bits / 56,000 bits/second = seconds Will receive 1,000,000 byte file Access Link: Dialup, DSL, Cable Internet Will SEND 1,000,000 byte file

Copyright 2007 Jim Martin13 Data Calculations How long does it take to send a 4.4 Gbyte DVD ?

Copyright 2007 Jim Martin14 Data Calculations How long does it take to send a 4.4 Gbyte DVD ? (4,400,000,000 * 8) bits / 56,000 bits/second = 628,571.4 seconds Which is 628,571.4 / 60 = minutes Which is / 60 = hours