BCD and DPD encoder/decoder.