Preview

BCD Code 1 1

Satisfactory Essays
Open Document
Open Document
1022 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
BCD Code 1 1
9 July 2014
11 Ramadhan 1435

>> 4-BIT BCD CODES
>> 6-BIT BCD CODES
>> 8-BIT BCD CODES
>> ZONED-DECIMAL & PACKED DECIMAL
FORMATS

INTRODUCTION
HOW DOES A COMPUTER REPRESENT THE NUMERICAL DATA IN
BINARY FORMAT?
Base-2 digits [Straight Binary]
BCD [Binary-Coded Decimal] binary-coded decimal (BCD) - class of binary encodings of decimal numbers In byte-oriented systems (i.e. most modern computers), the term uncompressed BCD usually implies a full byte for each digit
(often including a sign), whereas packed BCD typically encodes two decimal digits within a single byte by taking advantage of the fact that four bits are enough to represent the range 0 to 9.

uncompressed BCD

Decimal
Binary

0000

9
1001

0000

1
0001

packed BCD

Decimal
Binary

9
1001

1
0001

In BCD, a digit is usually represented by 4 bits which, in general, represent the values/digits/characters 0–9.
Types of 4-bit BCD formatted codes
>>Weighted 8-4-2-1 BCD Codes
>>Weighted 4-2-2-1 BCD Codes*
>>Non-weighted XS-3 BCD Codes

Excess-3 was used on some older computers as well as in cash registers and hand held portable electronic calculators of the 1970's, among other uses. It is a way to represent values with a balanced number of positive and negative numbers using a pre-specified number N as a biasing value. It is a nonweighted code. In XS-3, numbers are represented as decimal digits, and each digit is represented by four bits as the digit value plus 3 (the "excess" amount):

DECIMAL DIGITS

4-BIT BCD CODES
8-4-2-1

XS-3

0

0000

0011

1

0001

0100

2

0010

0101

3

0011

0110

4

0100

0111

5

0101

1000

6

0110

1001

7

0111

1010

8

1000

1011

9

1001

1100

Table : the binary representation for 4-bit codes

Example 2
What is the non-weighted BCD representation for 46910 in a computer’s memory cells?
PRINCIPLE : Add 310 = 00112 for each decimal digit represented by the
8-4-2-1 BCD codes.
Decimal Digit
4
6
9
8-4-2-1 BCD Codes
0100
0110
1001
Add
310 = 00112
+ 0011
0011
0011

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Bc3030 Wk 2 Coding Test

    • 3739 Words
    • 15 Pages

    axis at the terminal portion of the curve. The spirometry does show only a 61%…

    • 3739 Words
    • 15 Pages
    Satisfactory Essays
  • Satisfactory Essays

    BSBCUS501C ACTIVITY1

    • 657 Words
    • 3 Pages

    In order to create a functional customer service plan, there are several key steps that both small and large businesses must address.…

    • 657 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    2640 U3 A1

    • 292 Words
    • 2 Pages

    Be sure to show your work, meaning your steps to convert binary to decimal, etc.…

    • 292 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    3) Between -7999 and +7999. This is because 16 bits provide four four-bit locations. The lowest (right most) and two middle 4 bits can each store any number from 0 to 9. In the highest (left most) 4 bits, one bit is used for the sign, leaving 3 bits for digits. These 3 bits can accommodate numbers between 0 and 7.…

    • 1112 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    A user has opened a calculator application, typed the numbers 123456789, and then done some math problem using this number. Which of the following determines, in part, what bits the computer stores in RAM to represent the number 123456789?…

    • 605 Words
    • 3 Pages
    Good 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

    bb321

    • 523 Words
    • 3 Pages

    Within this report I will be examining the positives and negative aspects of being a member of the Bra Boys. The Bra Boys is an Australian gang founded and based in Maroubra. Dating back to the 1990s, the gang has gained notoriety through violent clashes with members of the public and police. The gang achieved national and broad attention in with the release of a feature-length documentary entitled Bra Boys: Blood is Thicker than Water, written and directed by members of the gang.…

    • 523 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    BUS115MOD3

    • 675 Words
    • 2 Pages

    1. ABC Company has hired you as the Human Resource Manager. Though the company has experienced sales growth in each of the last four years a hiring freeze has been in place. That freeze has been lifted and it is clear that some departments are understaffed.…

    • 675 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Bcom230

    • 803 Words
    • 4 Pages

    Macy’s exists as an international brand of department stores known not only for its Thanksgiving Day Parade but also known for its diversity, charity, exquisite customer service, and top-quality merchandise. Macy’s espoused philosophy, vision, and mission statements seem to match with their enacted values.…

    • 803 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Bcom 230 Dq

    • 453 Words
    • 2 Pages

    Formal communication involves the mainline of operational communication within an organization. The communication within this channel is what keeps business flowing. The communication may move upward in the chain of command, downward in the chain of command, or laterally within departments. The communication may be in the form of a report, email, memorandum, intranet, newsletter, or bulletin boards. Informal communications are more personal and do not contribute so much to effective business progression. Managers are unable to control informal communications. Informal communication involves instant messaging, verbal communication, or text messaging. It may be best to use informal communication in training and development, informal meetings, or discussion among team members. In other words, if it does not need a manager’s insight or attention, make it an informal communication. Formal communications are best when addressing complex issues that call for a manager’s attention, changes affecting business practices, and sharing news involving the business in any way. I have personally seen informal and formal communication used incorrectly on both ends. It is important to know when it is appropriate to use each because both parties are affected. The sender can also be penalized for using the incorrect means of communication no matter what information is shared. Using the correct form of communication is important and is definitely a professional reflection. You can either deprive others of information or violate others because of how the information was shared.…

    • 453 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Test Bank Ch1

    • 2610 Words
    • 11 Pages

    10. What value is represented by the bit pattern 01011100 when interpreted using floating-point format in which the most significant bit is the sign bit, the next three bits represent the exponent field in excess notation, and the last four bits represent the mantissa?…

    • 2610 Words
    • 11 Pages
    Satisfactory Essays
  • Powerful Essays

    BSAD 295 Solution 1

    • 12350 Words
    • 60 Pages

    7. What is the single largest asset category, in terms of value, in the portfolio of the typical U.S. household?…

    • 12350 Words
    • 60 Pages
    Powerful 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
  • Good Essays

    Arduino Parking Lot

    • 340 Words
    • 3 Pages

    Here is the code: /*ParkingL02.pde Arduining.com 08 JUL 2012 Code used in the production of the Youtube material. */ #include < Servo.h> Servo myservo; // create servo object to control a servo #define ServoM 12 //Connected to the servo motor.…

    • 340 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    D01752026 1

    • 3458 Words
    • 16 Pages

    Professor & Head ,Dept. Library & Information Science, Periyar University, SALEM – Tamil Nadu, INDIA.…

    • 3458 Words
    • 16 Pages
    Satisfactory Essays

Related Topics