Codes Octal Power Hexadecimal ASCII BCD Code

Slides:



Advertisements
Similar presentations
How to Convert Decimal Numbers to Binary EXAMPLES.
Advertisements

Number Systems and Codes
Computer Codes Rohit Khokher. Computer Codes Data types NumericNonnumeric IntegerRealAlphabet A, B, C, …,Z a, b, c,…,z Digits 0,…,9 Special Characters.
Lecture - 2 Number systems and computer data formats
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
Numbers. Number Conversion Convert – Binary number to decimal numbers – Octal numbers to decimal numbers – Hexadecimal to decimal numbers Convert – Decimal.
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.
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Number Systems and Codes In PLC
 Binary Binary  Binary Number System Binary Number System  Binary to Decimal Binary to Decimal  Decimal to Binary Decimal to Binary  Octal and Hexadecimal.
COMPUTER FUNDAMENTALS David Samuel Bhatti
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
Data Storage Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information Technology Islamic.
Hexadecimal and ASCII Lesson Objective: Understand the purpose of ASCII and how to use it. Lesson Outcome: Convert between Hexadecimal and ASCII Convert.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Bits, Bytes, KiloBytes, MegaBytes, GigaBytes & TeraBytes.
Number Systems.
Chapter 3 Representing Numbers and Text in Binary Information Technology in Theory By Pelin Aksoy and Laura DeNardis.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
NUMBER SYSTEM AND COMPUTER CODES Chapter 2. Prelude Fingers, sticks, and other things for counting were not enough! Counting large numbers Count in groups.
1 Pertemuan 2 Network Math. Discussion Topics Binary presentation of data Bits and bytes Base 10 number system Base 2 number system Converting decimal.
Conversion of Number System Conversion Among Bases The possibilities: Hexadecimal DecimalOctal Binary
Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 2 Number Systems and Codes Binary to Decimal Conversions.
Binary Number System & Logic Operations. The focus of the last lecture was on the microprocessor During that lecture we learnt about the function of the.
Number systems, Operations, and Codes
Numbering System Base Conversion. Number systems Decimal – 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Binary – 0, 1 Octal – 0, 1, 2, 3, 4, 5, 6, 7 Hexadecimal system.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
CPS120: Introduction to Computer Science Computer Math: Converting to Decimal.
Positional Notation 642 in base 10 positional notation is:
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Chapter 2 Data Representation.
Data Representation, Number Systems and Base Conversions
Octal to Decimal Hexadecimal DecimalOctal Binary.
Working with 8-bit bytes and hexadecimal
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 Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
Presentation on Number System
Computer Number System
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
Characters and Strings
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
ABFC... Home page Introduction Binary number system Hexadecimal number system Binary coded decimal Objectives Octal number system Click.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
Cis303a_chapt03_exam1_answer.ppt CIS303A: System Architecture Exam 1: Chapter 3 Answer List the characters (digits) for the following bases. 1) Decimal:
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.
Fall’ 2014 Lesson - 1 Number System & Program Design CSE 101.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Chapter 5 NUMBER REPRESENTATION AND ARITHMETIC CIRCUITS.
Ch2 Number systems and codes
Programmable Logic Controller
Number Systems and Codes
Octal to Decimal Decimal Octal Binary Hexadecimal.
Discrete Mathematics Numbering System.
Number Systems.
Base ‘b’ number for i = 0 to n – 1 for an n digit quantity
CSE 102 Introduction to Computer Engineering
Location in course textbook
Data Storage Introduction to computer, 2nd semester, 2010/2011
Chapter 4 Number Systems.
Numbering System TODAY AND TOMORROW 11th Edition
There are 10 types of people of people in this world…
Chapter 2: Number Systems
Chapter Four Data Representation in Computers By Bezawit E.
Hexadecimal.
Remember the 10 types of people of people in this world…
1. Number Systems Chapt. 2.
Presentation transcript:

Codes Octal Power Hexadecimal ASCII BCD Code 83 82 81 80 83 82 81 80 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 A B C D E F

Code conversions Similar to Dec-to Binary: Start dividing by 8 Decimal to Octal Similar to Dec-to Binary: Start dividing by 8 and build Octal figures from Remainders: 24010=3608 8 240 30 3 6

Code conversions Binary –to-Octal 3 bits of binary could provide weight of 810, that is equivalent to Octal;i.e: Bits: b2 b1 b0 Wts: 4 2 1 Bin: 1 1 1 710 and Octal range 0-7 Example: 100111010= 100 111 010 Octal Values: 4 7 2

Octal Conversion  binary: Octal: 011 010 1102 3268  3 2 6  256 128 64 32 16 8 4 2 1 3 x 82 + 2 x 81 + 6 x 80

Binary Addition 1110 1410 10111110 110 012510 1001 1110 101011 110110

Octal Addition 3458 +2368 =6038 Justification….. 3458=22910 and 2368=15810 22910+15810 = 38710 and 6038=3+6x64=38710

BCD Addition 1000 + 1001 =0001 0111

Byte Most computers handle and store binary data and information in groups of eight bits, so a special name is given to a string of 8 bits..Byte. A Byte therefore always consists of eight bits data. A 32 bits data has 4 Bytes of data and similarly 128 bits of data has 16 Bytes.

Questions What is the largest decimal value that can be represented in a binary using two bytes? How many bytes are needed to represent the decimal value of 846,569 in BCD?

Assignment 1 Convert binary into decimals: 10110 10001101 100100001001 Convert decimal into Binary: 37 14 189

Assignment 1 What is the largest decimal value that can be represented by an eight-bit binary number? Convert each Octal into Binary: 743 256 1204