The following encoder encodes 28 6-bit message symbols into 40 6-bit codeword symbols. The decoder corrects up to 6 chip failures, or, if there are no chip failures, corrects many error patterns. The red chips hold the 12 redundant symbols.
The 6-bit to 8-bit and 8-bit to 6-bit converters can be eliminated by using 8-bit symbols.