What is a byte? What is it? How would you use it?

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

Calculating in Other Bases
DATA REPRESENTATION CONVERSION.
Level ISA3: Information Representation
Binary Expression Numbers & Text CS 105 Binary Representation At the fundamental hardware level, a modern computer can only distinguish between two values,
1 Number Systems. 2 Numbers Each number system is associated with a base or radix – The decimal number system is said to be of base or radix 10 A number.
The Binary Number System
Binary Number Systems.
The Binary Number System
(2.1) Fundamentals  Terms for magnitudes – logarithms and logarithmic graphs  Digital representations – Binary numbers – Text – Analog information 
Numbering Systems CS208.
Numeration Systems Introduction to Binary, Octal, and Hexadecimal.
Computer Systems Chapter 1 Pages Hardware-physical pieces Key hardware components in a computer system: The physical parts. – Central processing.
Fundamentals of IT UNIT-I OnlyforIPMCA. DIGITAL SIGNALS & LOGIC GATES Signals and data are classified as analog or digital. Analog refers to something.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
HOW COMPUTERS MANIPULATE DATA Chapter 1 Coming up: Analog vs. Digital.
Data Representation in Computer Systems. 2 Objectives Understand the fundamentals of numerical data representation and manipulation in digital computers.
CCE-EDUSAT SESSION FOR COMPUTER FUNDAMENTALS Date: Session III Topic: Number Systems Faculty: Anita Kanavalli Department of CSE M S Ramaiah.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
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.
Chapter 2 Data Representation.
EEL 3801C EEL 3801 Part I Computing Basics. EEL 3801C Data Representation Digital computers are binary in nature. They operate only on 0’s and 1’s. Everything.
Octal to Decimal Hexadecimal DecimalOctal Binary.
DECIMALBINARY a) b) c) d) e) f) Revision Exercise DECIMALBINARY a) b) c)
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Data Representation (in computer system). Data Representation How do computers represent data? b The computers are digital Recognize.
Number Representation Lecture Topics How are numeric data items actually stored in computer memory? How much space (memory locations) is.
Computer Number System
Number Systems. Topics  The Decimal Number System  The Binary Number System  Converting from Binary to Decimal  Converting from Decimal to Binary.
CS151 Introduction to Digital Design Chapter 1: Digital Systems and Information Lecture 2 1Created by: Ms.Amany AlSaleh.
The Hexadecimal System is base 16. It is a shorthand method for representing the 8-bit bytes that are stored in the computer system. This system was chosen.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
Prepared By: Norakmar Binti Mohd Nadzari CHAPTER 2 ARITHMETIC AND LOGIC UNIT.
Unit 1 Introduction Number Systems and Conversion.
Digital Design Chapter One Digital Systems and Binary Numbers
Number Systems and Codes
Octal to Decimal Decimal Octal Binary Hexadecimal.
Number Systems and Binary Arithmetic
Digital Electronics INTRODUCTION ANALOG VS DIGITAL NUMBER SYSTEMS.
Positional Notation A positional or place-value notation is a numeral system in which each position is related to the next by a constant multiplier, called.
Integer Real Numbers Character Boolean Memory Address CPU Data Types
Lecture 3: Binary values and number systems
CHAPTER 1 : INTRODUCTION
Number Systems.
Convert Decimal to Binary
CSE 102 Introduction to Computer Engineering
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Introduction to IT By: Muhammed s. anwar.
Number Systems and Codes
Numbering System TODAY AND TOMORROW 11th Edition
Binary / Hex Binary and Hex The number systems of Computer Science.
Numbering Systems and Arithmetic operations on Hex, binary, and octal
Digital Logic Design (ECEg3141) 2. Number systems, operations & codes 1.
Digital Electronics and Microprocessors
Number Systems Lecture 2.
Digital Logic Design (CSNB163)
Number Systems.
Data Representation and Organization
Chapter Four Data Representation in Computers By Bezawit E.
Chapter 2 Number Systems.
Numeral systems (radix)
Chapter 2 Number Systems.
Hexadecimal.
Chapter 2 Number Systems.
Information Representation
Networks & I/O Devices.
Chapter 2 Number Systems.
Presentation transcript:

What is a byte? What is it? How would you use it? How does it apply to computers?

Binary, Decimal, Hexadecimal,& Octal Goofy video Numbers Systems Binary, Decimal, Hexadecimal,& Octal Goofy video

Common Bases Base 2 1010 0001 Base 8 735 Base 10 129 Base 16 BC94E

Positional Notation So how can we express the numbers in different bases? Positional notation is writing out each symbol and the calculation that represents that position. For example: BASE TEN is our number system. Think of the number 56,423 broken down in base 10 positional notation. The base 10 number 56,423 becomes: (5 x 104) + (6 x 103) + (4 x 102) + (2 x 101) + (3 x 100) 10000 1000 100 10 1 104 103 102 101

Base 2 - BINARY IF… BASE 10 multiplies a number 0-9 by 10position and then adds the numbers together Then… Base 2 multiplies a number _______ by _____position and then adds the numbers together BASE 2 number system is called the binary number system. Computers use binary numbers to communicate because a 0 or 1 is simply and on or off. One binary digit is referred to as bit. A byte contains 8 bits.

Base 2 - BINARY BASE 2 multiplies a number from 0-1 by 2position and then adds the numbers together So let’s look at a typical base 2 number. For example 0010 0111 becomes:   0 x 27 + 0 x 26 + 1 x 25 + 0 x 24 + 0 x 23 + 1 x 22 + 1 x 21 + 1 x 20 = 0 + 0 + 1 x 32 + 0 + 0 + 1 x 4 + 1 x 2 + 1 x 1= 32 + 4 + 2 + 1 =39 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20

Base 2 - BINARY 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20   GO to the netschool page and click on the BINARY game. Practice your binary numbers. See how high you can score…

Base 8 - Octal The BASE 8 or OCTAL NUMBER SYSTEM is based on 8 numbers 0-7. Let’s look at the octal number 362 converting to decimal form. 0 x 83 + 3 x 82 + 6 x 81 + 2 x 80 = 0 x 512 + 3 x 64 + 6 x 8 + 2 x 1 = 0 + 192+ 48 + 2 = 242 4096 512 64 8 1 84 83 82 81 80

Base 16 - Hexadecimal The HEXADECIMAL NUMBER SYSTEM is based on 16 numbers 0-9 and A-F. Notice that the letters A - F are used in hex to represent the digits 10 – 15. BASE 16 multiplies a number 0-9 & A-F by 16position and then adds the numbers together. D3C216 = D x 163 + 3 x 162 + C x 161 + 2 x 160 = 53248 + 768 + 192 + 2 = 54210 65536 4096 256 16 1 164 163 162 161 160

CONVERSIONS: You can convert numbers between decimal and binary with two possible techniques: the ladder technique or positional notation technique. Start with a decimal number. For example 39 using the ladder technique: 39/2 = 19 remainder 1 19/2 = 9 remainder 1 9/2 = 4 remainder 1 4/2 = 2 remainder 0 2/2 = 1 remainder 0 1/2 = 0 remainder 1 You continue to divide the result until you get 0. The remainder numbers are what represent the binary numbers. So 39 in binary form = 100111. The first remainder you get becomes the first bit.

CONVERSIONS: The other technique is called the positional notation technique. It looks at the base 2 values and pulls out the largest value from the decimal number and then finds the other combination of numbers going from largest to smallest. For example 39 using the positional notation technique: First you look for the largest base 2 position less than 39. For 39 the largest number is 32 or 25. Then the largest number less than 39-32 = 7 which is 4 or 22. Then look for the largest number less than 7-4 = 3 which is 2 or 21. And finally the largest number less than 3-2 = 1 which is 1 or 20. 39=25+22+21+20 or 00100111 128 64 32 16 8 4 2 1 27 26 25 24 23 22 21 20

Data Representation Now computers store, present, and help us modify several different types of data: Numbers Text Images and graphics Audio Video All of this data is stored in the computer as binary digits. 

Analog and Digital Data Signal Analog signal is a continuous signal which represents physical measurements. Digital signals are discrete time signals generated by digital modulation. Applications Thermometer PCs, PDAs Bandwidth Analog signal processing can be done in real time and consumes less bandwidth. There is no guarantee that digital signal processing can be done in real time and consumes more bandwidth to carry out the same information. Memory Stored in the form of wave signal Stored in the form of binary bit Power Analog instrument draws large power Digital instrument draws only negligible power Cost Low cost and portable Cost is high and not easily portable While Analog is cheaper it has more errors and size limitations.

Numeric Representation - Integers Remember bit - binary digit, a 0 or 1 byte - a series of 8 bits, 10010101 The largest positive integer that can be represented with one byte is 11111111 (25510). So we have to use multiple bytes to store larger integers. What about negative integers? Most computers use two’s compliment. (see bwagner’s presentation of two’s compliment) Addition of different bases needed