In digital electronics, codes are used to communicate the information between computers. These codes represent the information symbolically as a string of bits 0 and 1 and rules defined by the code decide the arrangement of these bits.
Codes can be broadly categorized into three categories 1) Weighted Codes 2) Unweighted Codes 3) Sequential Codes
These codes are positionally weighted and each position with in the binary equivalent of the number is assigned a fixed value. Thus, they obey positional weighting principal.
Binary Coded Decimal(BCD) is an example of weighted codes. In this code, the binary equivalent of a number will always remain same.
To understand how to compute bcd equivalent of a number, you may refer below link:
These codes are not positionally weighted i.e. each position with in the binary equivalent of the number is not assigned a fixed value. Thus, unweighted codes do not obey positional weighting principal.
Grey code is an example of unweighted codes.In grey code, computation not only depends on the bit under consideration but also on the neighboring bits. Due to which, unlike weighted codes, the binary equivalent of a number may return different values on each computation Excess-3 code is also an example of unweighted code.
To understand how to compute grey code or excess-3 equivalent of a number, you may refer below link:
Thus, this post summarizes various codes used in digital electronics to communication information.
Feel free to leave your footprints in the comments section below for any queries, suggestions or feedback.