Principles & Applications

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

Elektronika dan Instrumentasi: Elektronika Digital 3 – Enkoder, Dekoder, 7 segment Dari Dimas Firmanda Al Riza.
Digital Logic Design Week 7 Encoders, Decoders, Multiplexers, Demuxes.
Number Systems and Codes
System Digital Encoder, Decoder, and Contoh Penerapanya.
NUMBER SYSTEM. How to convert hexadecimal numbers to decimal numbers? 230 Working from right to left, MULTIPLY each position with 8 raised to the power.
Code Converters, Multiplexers and Demultiplexers
James Tam Beyond base 10: Non-decimal based number system What exactly is decimal? How do other number systems work (binary, octal and hex) How to convert.
Electronics Technology Seven-Segment Displays
BCD to 7-Segment Display
Number Systems and Arithmetic
© Copyright 2000 Indiana University Board of Trustees Proficiency Quiz Study Guide Note: The following slides are provided courtesy of Dr. Bob Orr (Computer.
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.
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 10 Arithmetic Circuits.
A Digital Timer Implementation using 7 Segment Displays.
Number Systems.
COMPUTER NUMBER SYSTEMS & DIGITAL DEVICES By: Sohaib Rehman.
1 Number SystemsLecture 8. 2 BINARY (BASE 2) numbers.
Functions of Combinational Logic
Supplemental Chapter Number Bases
Salisbury Numbers we use in Auto Shop Why do I need to know this. When working on the computers in the auto shop sometimes we need to look into the.
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.
CPU Internal memory I/O interface circuit System bus
Number Systems Ron Christensen CIS 121.
Number systems, Operations, and Codes
Number Base Conversions
Digital Electronics Octal & Hexadecimal Number Systems.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Code Converters, Multiplexers and Demultiplexers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Octal & Hexadecimal Number Systems
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Positive Integers Dale Roberts,
ENCODER, DECODER dan SEVEN SEGMEN YUSRON SUGIARTO.
CHAPTER 3: Number Systems
Code Converters, Multiplexers and Demultiplexers
Digital Electronics Principles & Applications Fifth Edition Chapter 2 Numbers We Use in Digital Electronics ©1999 Glencoe/McGraw-Hill Roger L. Tokheim.
Arithmetic Chapter 4 Subject: Digital System Year: 2009.
CSC 110 – Intro to Computing Lecture 3: Converting between bases & Arithmetic in other bases.
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.
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
CHAPTER 3 BINARY NUMBER SYSTEM. Computers are electronic machines which operate using binary logic. These devices use two different values to represent.
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
Decoder Chapter 12 Subject: Digital System Year: 2009.
Dr. Nermin Hamza 1. Materials Book: Digital Design 4 th M. Morris Mano and Michael D. Ciletti 2.
Programmable Logic Controller
Number Systems & Binary Arithmetic
Digital Design Chapter One Digital Systems and Binary Numbers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
CHAPTER 1 : INTRODUCTION
Using the Windows Calculator for quick decimal to binary conversions
Principles & Applications
Number System conversions
Principles & Applications Seven-Segment Displays
Principles & Applications
Binary Quiz UIN: ____________________
Number Systems and Binary Arithmetic
Binary, Octal and Hex Numbers Copyright Thaddeus Konar
Digital Electronics Ms. Deepa Mehta.
Digital Electronics and Microprocessors
There are 10 types of people of people in this world…
Chapter 1 Number System RGGP, Narwana.
Chapter 2 Number Systems.
Numeral systems (radix)
Chapter 2 Number Systems.
Chapter 2 Number Systems.
Remember the 10 types of people of people in this world…
Computer Science 1 Review and finish Number base conversion
Information Representation
Chapter 2 Number Systems.
Presentation transcript:

Principles & Applications Digital Electronics Principles & Applications Sixth Edition Roger L. Tokheim Chapter 2 Numbers We Use in Digital Electronics ©2003 Glencoe/McGraw-Hill

INTRODUCTION Counting in Decimal and Binary Place Value Binary to Decimal Conversion Decimal to Binary Conversion Electronic Translators Hexadecimal Numbers Octal Numbers

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 Divide-by-2 Process Stops When Quotient Reaches 0 3 ÷ 2 = 1 remainder 1 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.

REVIEW Counting in Decimal and Binary Place Value Binary to Decimal Conversion Decimal to Binary Conversion Electronic Translators Hexadecimal Numbers Octal Numbers