binary coded decimal is a way to encode numbers. the number is first split into digits, and each digit is then encoded in binary. this will result in a code from 0 0 0 0 (for "0") to "1 0 0 1" (for 9). the other codes (1010 to 1 1 1 1, representing the numbers 10 to 15) are not valid.