2.3 Binary Codes for Decimal Numbers ReturnNext Code: A set of n-bit strings in which different bit strings represent different numbers or other things.

Slides:



Advertisements
Similar presentations
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)
Advertisements

5.5 Encoders A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
KFUPM COE 202: Digital Logic Design Number Systems Part 3 Courtesy of Dr. Ahmad Almulhem.
DAT2343 Summary of Standard Data Encoding © Alan T. Pinck / Algonquin College; 2003.
Appendix 1 Number Systems Objectives: Review of number systems and radix conversion methods Review of binary, octal, hexadecimal and BCD unsigned codes.
ECE 331 – Digital System Design
2.2 General Positional-Number-System Conversion
RIPPLE COUNTERS A register that goes through a prescribed sequence of states upon the application of input pulses is called a counter. The input pulses.
Wakerly Section 2.4 and further Addition and Subtraction of Nondecimal Numbers.
Number Systems Decimal (Base 10) Binary (Base 2) Hexadecimal (Base 16)
Overview Digital Systems and Computer Systems Number Systems [binary, octal and hexadecimal] Arithmetic Operations Base Conversion Decimal Codes [BCD (binary.
2.1 Positional Number Systems ReturnNext Why do we discuss the number systems?  Digital systems only have two states. So digital circuits process binary.
VIT UNIVERSITY1 ECE 103 DIGITAL LOGIC DESIGN CHAPTER I NUMBER SYSTEMS AND CODES Reference: M. Morris Mano & Michael D. Ciletti, "Digital Design", Fourth.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Overflow Signed binary is in fixed range -2 n-1  2 n-1 If the answer for addition/subtraction more than the.
Number System and Codes
Faculty of Computer Science © 2006 CMPUT 229 Special-Purpose Codes Binary, BCD, Hamming, Gray, EDC, ECC.
Number Systems and Codes
1.6 Signed Binary Numbers.
Digital Logic Chapter 2 Number Conversions Digital Systems by Tocci.
Digital Design: Principles and Practices Chapter 2 Number Systems and Codes.
Digital Systems and Logic Design
Binary Arithmetic & Data representation
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Number Systems Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Binary Codes. Binary Code A binary code is just an assignment of information to bit patterns.
Morgan Kaufmann Publishers
BINARY CODE – Digital Circuit 1 Choopan Rattanapoka.
UNIVERSAL COLLEGE OF ENGINEERING AND TECHNOLOGY PREPARED BY:- Chirag Parmar ( ) Kashish Soni ( ) Maitrey Bhatt( )
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Number Systems ELEC 311 Digital Logic and Circuits Dr. Ron Hayne Images Courtesy of Cengage Learning.
ECE 3110: Introduction to Digital Systems BCD, Gray, Character, Action/Event, Serial Data.
Number Systems and Codes. CS2100 Number Systems and Codes 2 NUMBER SYSTEMS & CODES Information Representations Number Systems Base Conversion Negative.
ECE 301 – Digital Electronics Unsigned and Signed Numbers, Binary Arithmetic of Signed Numbers, and Binary Codes (Lecture #2)
Summer 2012ETE Digital Electronics1 Binary Arithmetic of Signed Binary Numbers.
ECE 2110: Introduction to Digital Systems BCD, Gray, Character, Action/Event, Serial Data.
Coding of Information Assign a unique string of binary digits to each piece of information There are many standard coding groups –Decimal Codes (BCD –
ECE 3110: Introduction to Digital Systems unsigned Multiplication/Division codes.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
1. Number Systems Chapt. 2 Location in course textbook.
ECE 331 – Digital System Design Representation and Binary Arithmetic of Negative Numbers and Binary Codes (Lecture #10) The slides included herein were.
ECE 301 – Digital Electronics Representation of Negative Numbers, Binary Arithmetic of Negative Numbers, and Binary Codes (Lecture #11) The slides included.
CEC 220 Digital Circuit Design Binary Codes
Signed Binary Numbers Arithmetic Subtraction – In 2’s-complement form: Example: 1.Take the 2’s complement of the subtrahend (including the sign bit) and.
DIGITAL SYSTEMS Number systems & Arithmetic Rudolf Tracht and A.J. Han Vinck.
Floating Point Numbers
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
1 COMS 161 Introduction to Computing Title: Computing Basics Date: September 8, 2004 Lecture Number: 7.
Module –I Codes: Weighted and non-weighted codes
CEC 220 Digital Circuit Design Binary Codes Mon, Aug 31 CEC 220 Digital Circuit Design Slide 1 of 14.
Section 5 Digital Electronic Circuits. Chapter 32 Binary Number System.
ECE DIGITAL LOGIC LECTURE 4: BINARY CODES Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 01/26/2016.
ECE DIGITAL LOGIC LECTURE 11: STANDARD CIRCUITS Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2015, 09/24/2015.
2.4 Gray Code ReturnNext In a Gray code only one bit changes between each pair of successive code words. Gray code is a reflected code. It can be defined.
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.
11001 / 101, / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the result.
Number Systems Decimal (Base 10) –10 digits (0,1,2,3,4,5,6,7,8,9) Binary (Base 2) –2 digits (0,1) Digits are often called bits (binary digits) Hexadecimal.
Binary Codes.
ECE 2110: Introduction to Digital Systems
11001 / 101 , / ) Perform subtraction on the given unsigned binary numbers using the 2's complement of the subtrahend. Where the.
Number systems and codes
COUNTING IN BINARY Binary weightings 0 x x x x 8
Wakerly Section 2.4 and further
BCD = Binary Coded Decimal
Digital Systems Design
Binary Lesson 3 Hexadecimal
شبکه آموزشی پژوهشی ایران - مادسیج
Binary Lesson 3 Hexadecimal
COUNTING IN BINARY Binary weightings 0 x x x x 8
ECE 331 – Digital System Design
Chapter 1 (Part c) Digital Systems and Binary Numbers
Presentation transcript:

2.3 Binary Codes for Decimal Numbers ReturnNext Code: A set of n-bit strings in which different bit strings represent different numbers or other things is called a code. Code Word: A particular combination of n bit-values is called a code word. BCD: Binary-coded decimal (BCD) which encodes the digits 0 through 9 by their 4- bit unsigned binary representations

NextBackReturn DD Ex-3Biquinary1-out-of Binary Codes for Decimal Numbers

NextBackReturn Unused code words (Pseudo Code) …… 2.3 Binary Codes for Decimal Numbers

NextBackReturn Examples: 1. (1001) 8421BCD =( ? ) 10 (1001) 8421BCD =1  8+0  4+0  2+1  1=(9) (1011) 2421BCD =( ? ) 10 (1011) 2421BCD =1  2+0  4+1  2+1  1=(5) 10 Weighted Code: 8421 code and 2421 code are weighted codes. The weights for the BCD bits are 8,4,2,1 and 2,4,2, Binary Codes for Decimal Numbers

(1011) 242 complement = (0100), it ’ s a 2421 code word for decimal digit 4. NextBackReturn Self-Complementing Code: The 2421 code and the excess-3 have the advantage that they are self-complementing. But excess-3 code is not weighted. Example: What is the 9s ’ complement code of (1011) 2421 ? Is the complement code a 2421 code word? 2.3 Binary Codes for Decimal Numbers

NextBackReturn The biquinary code and 1-out-of-10 code use more than the minimum number of bits in a code. The potential advantage is an error-detecting property. Example: Any errors can be detected in the following codes? ( ) biquinary, ( ) biquinary, ( ) 1-out-of Binary Codes for Decimal Numbers

BackReturn Packed- BCD Representation: Each decimal digit is represented four bits. So one 8-bit byte may represent the value from 0~99; 12 bits may represent the value from 0~999; and so on. Example: ( ) 8421 =( ? ) 10 ( ) 8421 =(94) Binary Codes for Decimal Numbers