Principles & Applications

Slides:



Advertisements
Similar presentations
Abdullah Said Alkalbani University of Buraimi
Advertisements

Date of Birth Design Problem
Counters and Registers
Looking Inside the Black Box
CSE 370 Sample Final Exam Questions. 1) Logic Minimization CD AB F = Σm(0,6,7,8,9,11,15) + d(1,13)
Register Transfer and Microoperations Part2
6.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 Data Encryption Standard (DES)
Principles & Applications Seven-Segment Displays
Chapter 1 The Study of Body Function Image PowerPoint
Fast Algorithms for Finding Nearest Common Ancestors Dov Harel and Robert Endre Tarjan Fast Algorithms for Finding Nearest Common Ancestors SIAM J. COMPUT.
Binary Numbers.
Binary Numbers.
Binary Numbers.
8 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
15 October 2013Birkbeck College, U. London1 Introduction to Computer Systems Lecturer: Steve Maybank Department of Computer Science and Information Systems.
1 Floating Point Representation and Arithmetic (see Patterson Chapter 4)
A Simple ALU Binary Logic.
B261 Systems Architecture
Number Systems. Common Number Systems SystemBaseSymbols Used by humans? Used in computers? Decimal100, 1, … 9YesNo Binary20, 1NoYes Octal80, 1, … 7No.
Monika Gope Lecturer IICT, KUET
Princess Sumaya University
Truth Tables & Logic Expressions
Discrete Mathematical Structures: Theory and Applications
Digital Systems Introduction Binary Quantities and Variables
Logic Gates. Transistors as Switches ¡V BB voltage controls whether the transistor conducts in a common base configuration. ¡Logic circuits can be built.
Binary Values Chapter 2. Why Binary? Electrical devices are most reliable when they are built with 2 states that are hard to confuse: gate open / gate.
Basic Electronics Ninth Edition Basic Electronics Ninth Edition ©2002 The McGraw-Hill Companies Grob Schultz.
Binary Values and Number Systems
Number Systems  binary, octal, and hexadecimal numbers  why used  conversions, including to/from decimal  negative binary numbers  floating point.
FIGURE 17-1 Binary-to-decimal conversion. Dale R. Patrick Electricity and Electronics: A Survey, 5e Copyright ©2002 by Pearson Education, Inc. Upper Saddle.
Chapter 4 The Von Neumann Model
Chapter 4 The Von Neumann Model
Lecture no 6. Two's Complement Given a negative number (N), represented using the Two's Complement representation (N*), the magnitude of the number (P)
Number Systems Digital Logic By: Safwan Mawlood
CS1022 Computer Programming & Principles
Binary Lesson 4 Hexadecimal and Binary Practice. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Binary Lesson 7 Review of Binary and Hexadecimal.
Binary Lesson 3 Hexadecimal. Counting to 15 Base Base Base 16 Base Base Base 16 Two Ten (Hex) Two Ten (Hex)
Combinational Circuits
Digital Logic & Design Lecture No. 3. Number System Conversion Conversion between binary and octal can be carried out by inspection.  Each octal digit.
ELECTRONICS TECHNOLOGY Digital Devices I Karnaugh Maps
Binary and other number bases. Base Ten This is what we are accustomed to. Digits go from 0 – 9 Headings are represented by powers of ten ThousandsHundredsTensOnes=
and M-ary Quadrature Amplitude Modulation (M-QAM)
CS 1 Introduction CS 1 Part 11. Hardware 1.Central Processing Unit (CPU) 2.Main Memory 3.Secondary Memory / Storage 4.Input Devices 5.Output Devices CS.
1/15/2015 Slide # 1 Binary, Octal and Hex Numbers Copyright Thaddeus Konar Introduction to Binary, Octal and Hexadecimal Numbers Thaddeus Konar.
Number Systems Decimal Binary Denary Octal Hexadecimal Click the mouse or Press the space bar to Continue.
Finite State Machines Finite state machines with output
System Digital Encoder, Decoder, and Contoh Penerapanya.
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
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
Number Systems What is the Standard Base we
Number Systems and Codes
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Principles & Applications
Digital Electronics Principles & Applications Fifth Edition Chapter 2 Numbers We Use in Digital Electronics ©1999 Glencoe/McGraw-Hill Roger L. Tokheim.
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 System conversions
Principles & Applications
Digital Electronics Ms. Deepa Mehta.
Chapter 1 Number System RGGP, Narwana.
Chapter 2 Number Systems.
Numeral systems (radix)
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Information Representation
Chapter 2 Number Systems.
Course Code 114 Introduction to Computer Science
Presentation transcript:

Principles & Applications Digital Electronics Principles & Applications Seventh Edition Roger L. Tokheim Chapter 2 Numbers We Use in Digital Electronics ©2008 The McGraw-Hill Companies, Inc. All rights reserved.

INTRODUCTION Counting in Decimal and Binary Place Value Binary to Decimal Conversion Decimal to Binary Conversion Electronic Translators Hexadecimal Numbers Octal Numbers Bits, Bytes and Words

Counting in Decimal and Binary Number System - Code using symbols that refer to a number of items. Decimal Number System - Uses ten symbols (base 10 system) Binary System - Uses two symbols (base 2 system)

QUIZ 1. The __________ (binary, octal) number system uses only the symbols 0 and 1 in counting. binary decimal 2. The __________ (decimal, hexadecimal) number system uses the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. 3. The __________ (binary, decimal) number system is also called the base 2 system because it uses only two symbols to represent numbers. binary

Place Value Numeric value of symbols in different positions. Example - Place value in binary system: Place Value 8s 4s 2s 1s Binary Yes Yes No No Number 1 1 RESULT: Binary 1100 = decimal 8 + 4 + 0 + 0 = decimal 12

Binary to Decimal Conversion Convert Binary Number 110011 to a Decimal Number: Binary 1 1 0 0 1 1 Decimal 32 + 16 + 0 + 0 + 2 + 1 = 51

QUIZ 9 Binary 1001 = 15 Binary 1111 = 2 Binary 0010 = Convert the following binary numbers into decimal numbers: 9 Binary 1001 = 15 Binary 1111 = 2 Binary 0010 =

Decimal to Binary Conversion Divide by 2 Process Decimal # 13 ÷ 2 = 6 remainder 1 6 ÷ 2 = 3 remainder 0 3 ÷ 2 = 1 remainder 1 Divide-by-2 Process Stops When Quotient Reaches 0 1 ÷ 2 = 0 remainder 1 1 1 1

QUIZ Convert the following decimal numbers into binary: Decimal 11 = 1011 0100 Decimal 4 = 10001 Decimal 17 =

Electronic Translators Devices that convert from decimal to binary numbers and from binary to decimal numbers. Encoders - translates from decimal to binary Decoders - translates from binary to decimal

Electronic Encoder – Decimal to Binary Binary output Decimal input 0 1 1 1 0 1 0 1 0 0 1 1 0 0 0 0 Decimal to Binary Encoder 3 7 5 Encoders are available in IC form. This encoder translates from decimal input to binary (BCD) output.

Electronic Decoding – Binary to Decimal Binary input Decimal output 0 0 1 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 1 Binary-to- 7-Segment Decoder/ Driver Electronic decoders are available in IC form. This decoder translates from binary to decimal. Decimals are shown on an 7-segment LED display. This decoder also drives the 7-segment display.

QUIZ 1. The general name for an electronic device that translates from binary to decimal is a(n) __________. decoder 2. The general name for an electronic device that translates from decimal to binary is a(n) __________. encoder 3. An electronic device called a(n) __________ (decoder, encoder) would probably be located between the keypad of a calculator and its processing circuitry to translate from decimal to machine language (binary). encoder

Hexadecimal Number System Uses 16 symbols - Base 16 System 0-9, A, B, C, D, E, F Decimal 1 9 10 15 16 Binary 0001 1001 1010 1111 10000 Hexadecimal 1 9 A F 10

Hexadecimal and Binary Conversions Hexadecimal to Binary Conversion Hexadecimal C 3 Binary 1100 0011 Binary to Hexadecimal Conversion Binary 1110 1010 Hexadecimal E A

Decimal to Hexadecimal Conversion Divide by 16 Process Decimal # 47 ÷ 16 = 2 remainder 15 Divide-by-2 Process Stops When Quotient Reaches 0 2 ÷ 16 = 0 remainder 2 2 F

Hexadecimal to Decimal Conversion Convert hexadecimal number 2DB to a decimal number 256s 16s 1s Place Value 2 D B Hexadecimal (256 x 2) (16 x 13) (1 x 11) 512 + 208 + 11 = 731 Decimal

QUIZ Convert Hexadecimal number A6 to Binary A6 = Convert Hexadecimal number 16 to Decimal 16 = 22 (Decimal) Convert Decimal 63 to Hexadecimal 63 = 3F (Hexadecimal)

Uses 8 symbols - Base 8 System Octal Numbers Uses 8 symbols - Base 8 System 0, 1, 2, 3, 4, 5, 6, 7 Decimal 1 6 7 8 9 Binary 001 110 111 001 000 001 001 Octal 1 6 7 10 11

QUIZ The octal number 7 equals ______ in binary. 111 2. The octal number 11 equals ______ in binary. 001 001 3. The decimal number 23 equals ______ in binary. 010 111 4. The decimal number 23 equals ______ in octal. 27 5. The octal number 37 equals ______ in binary. 011 111 6. The octal number 37 equals ______ in decimal. 31

Practical Suggestion on Number System Conversions Use a scientific calculator Most scientific calculators have DEC, BIN, OCT, and HEX modes and can either convert between codes or perform arithmetic in different number systems. Most scientific calculators also have other functions that are valuable in digital electronics such as AND, OR, NOT, XOR, and XNOR logic functions.

Groupings of Binary Digits Bit 1-bit (0 or 1) Nibble 4-bits (such as 1101) Byte 8-bits (such as 1100 0111) Word 16-bits (common definition) Double-word 32-bits Quad-word 64-bits

QUIZ A 4-bit grouping of binary digits is called a _____ (byte, nibble). nibble 2. An byte refers to an a(n) _____ (8, 64)-bit group of binary digits. 8 3. A single binary digit (such as a 0 or 1) is called a _____ (bit, nibble). bit 4. A common definition for a word in computer jargon is a _____ (1, 16)-bit group of binary digits. 16

REVIEW Counting in Decimal and Binary Place Value Binary to Decimal Conversion Decimal to Binary Conversion Electronic Translators Hexadecimal Numbers Octal Numbers Bits, Bytes and Words