Sum code

from Wikipedia, the free encyclopedia
Example of a sum code
Decimal
digit
Sum
coded
Binary
coded
0 000000000 0 0 0 0
1 000000001 0 0 0 1
2 000000011 0 0 1 0
3 000000111 0 0 1 1
4th 000001111 0 1 0 0
5 000011111 0 1 0 1
6th 000111111 0 1 1 0
7th 001111111 0 1 1 1
8th 011111111 1 0 0 0
9 111111111 1 0 0 1

The sum code is a binary code in which the value is expressed by the number of 1 values. The sum of the 1 values ​​therefore gives the value of the number described. The sum code is only used very rarely; the related 1-out-of-n code is more common . One application example is the use to control the lighting of an electronic VU meter , for example for a light organ .

See also