BCD to Seven Segment Decoder
The Binary Coded Decimal (BCD) encoding method uses binary patterns to encode each decimal value (from 0 to 9), generally of 4-bits.
In contrast, a seven-segment display is an electrical device that displays Hexadecimal digits using seven Light Emitting Diodes (LEDs) arranged in a specific pattern (common cathode or common anode type) (in this case, decimal numbers, as input, are BCD, i.e., 0-9).
7-Segment LED displays are of two types:
The separate LED segments of a seven-segment display are not directly powered. However, for it to function, we first convert our decimal number to its BCD equivalent signal, and then a BCD to seven-segment decoder converts that signal into the form supplied to the seven-segment display.
The seven-segment decoder, which has four input lines and seven output lines (a, b, c, d, e, f, and g), receives this BCD (A, B, C, and D) input. The output is provided to a seven-segment LED display that shows the decimal number depending on the inputs.
The truth table of Common Cathode Type BCD to the seven-segment decoder is given below:
Let us now understand the few inputs:
For Decimal Number = 0
The input lines for Zero are A = 0, B = 0, C = 0, and D = 0 and in the output lines, a to f are 1 and only g = 0. So, the g LED display will not glow, and the rest of the LEDs will glow, and we get zero on display.
For Decimal Number = 2
The input lines for two are A = 0, B = 0, C = 1, and D = 0; in the output lines, a, b, d, e, and g are 1 and c and f are zero. So, only a, b, d, e, and g will glow, and we get two on display.