Different Types of Code Lecture-08
Different Types of Code Lecture-08
Lecture#08
Codes in Digital Electronics
What is Code?
Solution:
Decimal Number is 8 7 4
Sequential codes:
A code can said to be sequential when each succeeding code is one
binary number greater than its preceding code. This greatly helps
mathematical manipulation of data. While the 8421 and Excess-3
codes are sequential, the 2421 and 5421 codes are not.
Non-weighted codes:
Non-weighted codes are codes that are not positionally weighted. This means
that each position within a binary number is not assigned a fixed value. Excess-
3 codes and Gray codes are examples of non-weighted codes.
Excess-3 code:
As the name indicates, the excess-3 represents a decimal number, in binary
form, as a number greater than 3. An excess-3 code is obtained by adding 3 to a
decimal number. For example, to encode the decimal number 6 into an excess-
3 code, we must first add 3 in order to obtain 9.The 9 is then encoded in its
equivalent 4-bit binary code 1001.The excess-3 code is a self-complementing
code, and this helps in performing subtraction operations in digital computers,
especially in the earlier models. The excess-3 code is also a reflective code.
Convert into its Excess-3 code.
Solution :
Decimal number 6 4 3
Add 3 to each bit +3 +3 +3
Sum 9 7 6
Sum 9 7 6