Binary Codes
Binary Codes
BINARY CODES
• Binary codes are the group of symbols which are used to encode the
4 8 5 7
8 4 2 1 8 4 2 1 8 4 2 1 8 4 2 1
23 22 21 20 23 22 21 20 23 22 21 20 23 22 21 20
0 1 0 0 1 0 0 0 0 1 0 1 0 1 1 1
Contd.,
• Weighted code for 25 is 0010 0101.
Non-weighted codes
• no weight is assigned to any of the bit positions.
• Bits will not have any fixed value based on their position.
• Excess-3 code and gray code are the examples of non-weighted code.
Excess-3 code
• Excess-3 code is derived by simply adding 3 to each BCD number. It is
a non-weighted code and it is a sequential code and reflective code.
+ 0011 (3) =
Gray code
• Known as unit-distance code.
Hollerith code
Error detecting and correcting codes
• Whenever a digital information is transmitted in a binary form from one
versa.
• There are codes which are used only to detect the error and are known as