Binary-coded decimal (BCD) stores each decimal digit 0 to 9 in four bits, 0000 to 1001. Four bits have 16 patterns, so six of them, 1010 to 1111, are never used.
When a circuit's input is a BCD digit, those six inputs simply never arrive. The output for them doesn't matter, so they become don't-cares, written d(10, 11, 12, 13, 14, 15) or d(10–15).
On a four variable k map the unused codes sit in a tidy block:
- the whole AB = 11 row:
m12,m13,m15,m14 - the right half of the AB = 10 row:
m11andm10
Because they are next to so many cells, these X's often let small groups double or quadruple in size. A function that needs several 3- or 4-literal terms without them may shrink to one or two short terms.
This is why BCD circuits, such as the decoder for a 7-segment display or the logic in a bcd counter, are classic K-map exercises.
| AB\CD | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 00 | 0m0 | 0m1 | 0m3 | 0m2 |
| 01 | 0m4 | 0m5 | 0m7 | 0m6 |
| 11 | Xm12 | Xm13 | Xm15 | Xm14 |
| 10 | 1m8 | 1m9 | Xm11 | Xm10 |