Hexadecimal Binary Made Easier. Quick Recap Two different systems – Computers use binary – Binary is hard to read What is 1010001010111011?? SystemBaseSymbols.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

ECE 331 – Digital System Design
DATA REPRESENTATION CONVERSION.
Hexadecimal In today’s lesson we will look at: the need for something other than binary how hexadecimal works how to convert between hexadecimal and binary.
Number SystemsNumber Systems Modified By: AM. Sihan (Hardware Engineering)
Information Processing
Chapter 4.2 Binary numbers: Arithmetic
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Converting Binary to Octal
Prepared By Rama Gaikwad 1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20,
+ CS 325: CS Hardware and Software Organization and Architecture Integers and Arithmetic.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Hexadecimal Number System
Chapter 16 Binary and Hexadecimal Numbers. §16.2 thru 16.3 – Addition and Subtraction of Binary Numbers Binary = Base 2 Addition and subtraction are similar.
Number Systems.
Bit Patterns – Day 2 Scott Baranick & Daniel Velasquez.
Fundamentals of IT UNIT-I OnlyforIPMCA. DIGITAL SIGNALS & LOGIC GATES Signals and data are classified as analog or digital. Analog refers to something.
DECIMAL BASE Based on power of 10 In the number 2,468 – from right to left -- the 8 represents the ones, the 6 represents the tens, the 4 represents the.
Week 2 Book Chapter 1 RGB Color codes. 2 2.Additive Color Mixing RGB The mixing of “ light ” Primary: Red, Green, Blue The complementary color “ White.
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.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
Supplemental Chapter Number Bases
1 DLD Lecture 18 Recap. 2 Recap °Number System/Inter-conversion, Complements °Boolean Algebra °More Logic Functions: NAND, NOR, XOR °Minimization with.
Computer Screen Colors1 Colors Colors can be made of mixtures of 3 primary colors. If the medium is illumination (like on the face of a CRT) the colors.
Number Systems CIT Network Math
Number systems, Operations, and Codes
Chapter1: Number Systems
Number Systems Prepared by Department of Preparatory year.
CMSC 104, Lecture 051 Binary / Hex Binary and Hex The number systems of Computer Science.
Number Base Conversions
Converting From decimal to Binary & Hexadecimal to Binary
Digital Electronics Octal & Hexadecimal Number Systems.
AP Computer Science A – Healdsburg High School 1 Unit 1 - Binary Numbers - Hexadecimal Numbers.
Chapter 2 Data Representation.
Working with 8-bit bytes and hexadecimal
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Data Representation Hexadecimal  Although computers work in binary it is sometimes inconvenient for humans to read everything in Binary. For example in.
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. Bits and Bytes.
Octal & Hexadecimal Number Systems
MODULE –I NUMBER SYSTEM Digital Design Amit Kumar Assistant Professor SCSE, Galgotias University, Greater Noida.
ITEC 1011 Introduction to Information Technologies 1. Number Systems Chapt. 2 Location in course textbook.
1. Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
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.
CMSC 1041 Binary / Hex Binary and Hex The number systems of Computer Science.
Number Systems. ASCII – American Standard Code for Information Interchange – Standard encoding scheme used to represent characters in binary format on.
What do you think this lesson is all about? Write your answer on a sticky note.
STARTER – CRACK THE CODE
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
WHY HEXADECIMAL?. Why bother with Hexadecimal? 1. Binary numbers are difficult for us to work with. 2. Hexadecimal can be used as “shorthand” for binary.
Coding Part 2. Weight of the Digit 3672 Thousands (10 3 )Hundreds (10 2 )Tens (10 1 )Units (1) = Weights Decimal Example (3672) 10 Binary.
Binary & Hex Review.
Number Systems.
Unit 18: Computational Thinking
Using the Windows Calculator for quick decimal to binary conversions
2.0 COMPUTER SYSTEM 2.2 Number System and Representation
Data Storage Introduction to computer, 2nd semester, 2010/2011
Binary Quiz UIN: ____________________
Hexadecimal Binary Made Easier.
Binary / Hex Binary and Hex The number systems of Computer Science.
Digital Electronics and Microprocessors
There are 10 types of people of people in this world…
Binary Lesson 3 Hexadecimal
Binary Lesson 3 Hexadecimal
Numeral systems (radix)
Binary Lesson 4 Hexadecimal and Binary Practice
Remember the 10 types of people of people in this world…
Binary & Hex Review.
Presentation transcript:

Hexadecimal Binary Made Easier

Quick Recap Two different systems – Computers use binary – Binary is hard to read What is ?? SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes

Middle Ground Need a system: – Easier to read – Converts easily to binary

Middle Ground Need a system: – Easier to read – Converts easily to binary Hexadecimal – base 16

Hexdecimal Base 16 – Each column is a power of 16: = 4096 * * * * 9 = = 8281 in decimal

13? How do we represent 13???

13? How do we represent 13??? – Use 0-9, A (10), B (11), C (12), D (13), E (14), F (15)

16 Values Each column needs 16 values 0-15 – Use 0-9, A (10), B (11), C (12), D (13), E (14), F (15) = 256 * * * 9 = = 489

Counting Equivalent values : = = C 16 DecimalBinaryHex DecimalBinaryHex A B C D E F DecimalBinaryHex

Conversion Among Bases The possibilities: Hexadecimal Decimal Binary

Hex & Binary Each hex digit = 16 possible values 4 binary digits = 16 possible values (2 4 ) 1 hex digit = 4 binary digits DecimalBinaryHex DecimalBinaryHex A B C D E F

Binary -> Hex Break binary value into groups of 4:

Binary -> Hex Break binary value into groups of 4: Replace each group with 1 hex digit BinaryHex A 1011B 1100C 1101D 1110E 1111F

Binary -> Hex Break binary value into groups of 4: D 1 6 Replace each group with 1 hex digit = 9D16 16 BinaryHexDecimal A B C D E F15

Hex -> Binary Replace each hex digit with 4 binary digits: Ex: F2 F F2 16 = BinaryHex A 1011B 1100C 1101D 1110E 1111F

Hex   Decimal Use a table Digits 0-F A = 10 B = 11 C = 12 D = 13 E = 14 F = 15

Hex   Decimal Use a table Digits 0-F A = 10 B = 11 C = 12 D = 13 E = 14 F = x x x 7 = = 455 1C7 16 =

Decimal   Hex Division / Multiplication methods: Current Value QuotientRemainder 455 ÷ ÷ (C)C7 1 ÷ C7

Summary Hex is a bridge: – Easier for us – Still just binary for computers SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Hex160-9ABCDEF No, but better than binary No, but easily translates to binary

Colors Monitors make colors by mixing red/green/blue light: Typical 24 bits : 8 bits for each color – 2 8 = 256 possible values

Colors Hex Colors – Each color stored as – 8 bits – 2 hex digits

Web Colors Website colors often written in hex #RRGGBB – Two digits for red, two for green, two for blue Black#000000(0,0,0) White#FFFFFF(255,255,255) Red#FF0000(255,0,0) Lime#00FF00(0,255,0) Blue#0000FF(0,0,255) Yellow#FFFF00(255,255,0) Cyan / Aqua#00FFFF(0,255,255)