Search Header Logo
Binary Codes Presentation

Binary Codes Presentation

Assessment

Presentation

Science, Computers

University

Medium

Created by

Radhika Saju

Used 3+ times

FREE Resource

15 Slides • 5 Questions

1

Binary codes

by Radhika Saju

2

Course Outcome

  • To state the need for binary codes

  • To describe BCD codes, excess-3 code, Gray code

  • To describe alpha numeric codes such as ASCII code and EBCDIC

3

State the need for binary codes

  • Following is the list of advantages that binary code offers.

    • Binary codes are suitable for the computer applications.

    • Binary codes are suitable for the digital communications.

    • Binary codes make the analysis and designing of digital circuits if we use the binary codes.

    • Since only 0 & 1 are being used, implementation becomes easy.

4

media

5

​Weighted codes: In weighted codes, each digit is assigned a specific weight according to its position. For example, in 8421BCD code, 1001 the weights of 1, 0, 0, 1 (from left to right) are 8, 4, 2 and 1 respectively.

8421BCD, 2421BCD are all weighted code

​Non-weighted codes: The non-weighted codes are not positionally weighted. In other words, each digit position within the number is not assigned a fixed value ( or weight ).

Excess-3 and gray code are non-weighted codes.

6

Multiple Choice

Which is an example of Weighted code

1

Gray code

2

XS3 code

3

Alphaneumeric codwe

4

8421 BCD code

7

Sequential codes: In sequential codes, each succeeding ‘code is one binary number greater than its preceding code. This property helps in manipulation of data.

             8421 BCD and Excess-3 are sequential codes.

8

​Binary Coded Decimal (BCD) code

  • In this code each decimal digit is represented by a 4-bit binary number.

  • BCD is a way to express each of the decimal digits with a binary code.

  • In the Binary, with four bits we can represent sixteen numbers (0000 to 1111). But in BCD code only first ten of these are used (0000 to 1001). The remaining six code combinations i.e. 1010 to 1111 are invalid in BCD.

9

media

10

Advantages

  • It is very similar to decimal system.

  • We need to remember binary equivalent of decimal numbers 0 to 9 only.

Disadvantaged

  • The addition and subtraction of BCD have different rules.

  • The BCD arithmetic is little more complicated.

  • BCD needs more number of bits than binary to represent the decimal number. So BCD is less efficient than binary.

11

Fill in the Blanks

Type answer...

12

Multiple Choice

Which is an invalid 8421 BCD number

1

1001

2

1000

3

1011

4

0111

13

Excess-3 code

The Excess-3 code is also called as XS-3 code. It is non-weighted code used to express decimal numbers. The Excess-3 code words are derived from the 8421 BCD code words adding (0011)2 or (3)10 to each code word in 8421.

14

media

15

Fill in the Blanks

Type answer...

16

Gray Code

It is the non-weighted code and it is not arithmetic codes. That means there are no specific weights assigned to the bit position. It has a very special feature that, only one bit will change each time the decimal number is incremented as shown in fig. As only one bit changes at a time, the gray code is called as a unit distance code. The gray code is a cyclic code. Gray code cannot be used for arithmetic operation.

17

media

18

media

19

media

20

Fill in the Blanks

Type answer...

Binary codes

by Radhika Saju

Show answer

Auto Play

Slide 1 / 20

SLIDE