Preview

Number Conversion

Satisfactory Essays
Open Document
Open Document
3476 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Number Conversion
Digital Electronics, 2003

BINARY CODED DECIMAL: B.C.D.
• ANOTHER METHOD TO REPRESENT DECIMAL NUMBERS • USEFUL BECAUSE MANY DIGITAL DEVICES PROCESS + DISPLAY NUMBERS IN TENS

IN BCD EACH NUMBER IS DEFINED BY A BINARY CODE OF 4 BITS. *** 8 – 4 – 2 – 1 MOST COMMON CODE 8 – 4 – 2 – 1 CODE INDICATES THE WEIGHT OF EACH BIT 23 – 22 – 21 – 20 E.G. 934 = 1001 0011 0100 9 3 4 FOR EACH DIGIT A BINARY [NORMAL] CODE IS ALLOCATED. OHER REPRESENTATION FORMS ARE 2-4-2-1 AND EXCESS-3

Ovidiu Ghita

Page 77

Digital Electronics, 2003

BINARY 8-4-2-1 2-4-2-1 EXCESS-3 NOT USED 0000 0 0 NOT USED 0001 1 1 NOT USED 0010 2 2 0011 3 3 0 0100 4 4 1 NOT USED 0101 2 5 NOT USED 0110 3 6 NOT USED 0111 4 7 NOT USED 1000 5 8 NOT USED 1001 6 9 NOT USED NOT USED 1010 7 NOT USED 1011 5 8 NOT USED 1100 6 9 NOT USED NOT USED 1101 7 NOT USED NOT USED 1110 8 NOT USED NOT USED 1111 9
• WE WILL USE 8-4-2-1 BCD • DECIMAL NUMBERS > 9 MAY BE OBTAINED WHEN ADDING TWO DECIMAL DIGITS (RANGE: 0-18) I.E. 0 + 0 ÷ 9 + 9. ONLY 0o9 HAVE THE CORRECT BCD CODE.
• WE NEED TO CORRECT THE OTHERS
Ovidiu Ghita Page 78

Digital Electronics, 2003

DECIMAL UNCORECTED CORRECTED BCD SUM BCD SUM C’3 S’3 S’2 S’1 S’0 CN S3 S2 S1 S0 0 0 0 0 0 0 0 0 0 9 10 11 12 13 14 15 16 17 18 19 1 1 1 1 1 1 1 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 1 0 1 0 1 0 1 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 0 1

1 1 1 1

1 1 1 1 1 1 1 1 1 1

• 0o9 ONLY LEGAL CODES
E.G. 19 = 1 9 = 0001 1001 = 11001 THUS, FOR SUMS BETWEEN 10 o 18 MUST SUBTRACT 10 AND PRODUCE A CARRY SUBTRACT 10 = 10102 COMPLEMENT = 0110 >> ADD 2’s

Ovidiu Ghita

Page 79

Digital Electronics, 2003

4-BIT BCD ADDER
TO ADD TWO DIGITS FOR SUMS >9 WE NEED TO ADD 2’s COMPLEMENT of 1010 TO THE UNCORRECTED RESULT (S’3 S’2 S’1 S’0) CORRECTION IS ALSO NEEDED WHEN A CARRY OUT (C’3) IS GENERATED [NUMBERS 16 o 18] >>>> A DECODER IS REQUIRED TO DETECT WHEN CARRY OUT (CN) TO THE NEXT STAGE IS NEEDED

You May Also Find These Documents Helpful

  • Good Essays

    Pt1420 Unit 5 Study Guide

    • 2789 Words
    • 12 Pages

    Number system:-writing system for expressing numbers i.e. it is a notation for representing numbers of a given set ,using digits or other symbols in a consistent manner. It will…

    • 2789 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    PT1420 Unit 8 Lab 8

    • 365 Words
    • 2 Pages

    Incrementing by Values Other than 1, page 190): Display numbers starting at 0 through 10 by increments of 2. 0,2,4,6,8,10…

    • 365 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    2.Write a program to (a) display a “?” (b) read two decimal digits whose sum less than 10 (c) display them and their sum on the next line. Page: 80…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Obviously, presenting data in this form would invite error. For this reason we use the hexadecimal (base 16) and, to a lesser extent, the octal (base 8) number systems.…

    • 412 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Digits 13 2 (16 * 3) + ( 1 * 2) = 208 + 2 =210(decimal)…

    • 287 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Number Conversions

    • 180 Words
    • 2 Pages

    2.Convert your binary result back into decimal to prove your answer is correct. This is also…

    • 180 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The range of values represented by an 8-bit binary number is _____. 4. The binary equivalent of 228 is _________. 5. The result of 7 – 2 using 1’s complement notation is 6.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Using a system of 1's and 0's ______________ is the most common way of encoding data.…

    • 932 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    NT1110

    • 315 Words
    • 2 Pages

    Thirty plus years ago, the first personal computer terms such as bits, bytes, decimal, binary, and hexadecimal have come part of the common language, but these terms are not always used correctly. There are three numbering systems that computers use for the math and measurements. One of these systems is called decimal systems. Decimal numbers are normally numbered from 0-10. Decimal numbering is sometimes referred to as base 10.…

    • 315 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ect114

    • 1514 Words
    • 7 Pages

    Encoding is used to generate a coded output (such as BCD or binary) from a singular active numeric input line.…

    • 1514 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Whole Numbers Assignment

    • 570 Words
    • 3 Pages

    I. Introduction: Whole Number is very important in the career of Medical Billing and Coding. It is the building blocks of mathematics. Working with whole numbers help you when are adding and subtracting hundreds and thousands of dollars. Then you might have to round up numbers when you are counting money. Multiplying whole numbers are very important, it is a repeating of addition. You have to budget Money. Dividing whole number comes when you are multiplying whole numbers…

    • 570 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    John Steinbeck was born and raised in Salinas California. The story Of Mice and Men takes place in Soledad California, a few miles south of Salinas. This influenced Steinbeck writing. He knows all about this part of California and how the people were treated. There were farms everywhere. According to John Steinbeck's biography that part of the country was considered “the Salad Bowl of the Nation.” Being his home town it influenced him so much that he even wrote a novel about Salinas called East of Eden. The story Of Mice and Men emphasizes on how lonely ranchers are. He must have seen this during his early life in Soledad, and proceeded to write about it. In his biography It said that in 1933 he wrote to a friend “I think I would like to write…

    • 153 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Start with 1 2 4 8 16 32 64 128 (all for networking, or continues) 256 512 1024…

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Preface

    • 12742 Words
    • 51 Pages

    1 2 3 4 5 7 8 9 0 VNH/VNH 9 0 9 8 7 6 5 4 3 2 1 0 9…

    • 12742 Words
    • 51 Pages
    Powerful Essays
  • Satisfactory Essays

    Answer all the question below that will serve as your quiz number 1 and 2. Print the questionnaire and your “answers should be written”. There would be notes above that will help you in this quiz. Take note that your answer should be written. I will not accept answer in print out or photocopy form. Only the questionnaire will be print.…

    • 749 Words
    • 3 Pages
    Satisfactory Essays