A 7-segment display is a form of electronic display device that consists of seven LEDs arranged in a rectangular fashion. Each LED is called a segment that maps to one of the terminals A through G. By giving the proper binary-digit inputs to segments A through G, you can control the illumination of the segments, which allows you to display decimal numbers from 0 to 9 and letters from A to F.
The hexadecimal 7-segment display decodes 4 binary-digit inputs into a hexadecimal number which is displayed using the LED segments.
You can choose from the following 7-segment displays:
The following figure illustrates the mapping of the terminals (A through H) to the LED segments.
The following table shows which segments to illuminate when you want to produce decimal digits from 0 through 9 and letters from A to F.
|Digit to display||A||B||C||D||E||F||G|
Common Anode (CA) and Common Cathode (CC) models
Each LED has two connecting pins: the anode and the cathode. In 7-segment displays, a common pin combines the anodes or cathodes of all LED segments and the remaining pins map to terminals A through G to represent each segment. You can configure the common pin to combine all the anodes or cathodes by selecting the Model in the Item tab of the configuration pane.
In the CA model, the COM terminal combines all the anode connections of the segments. To produce a display, wire the COM terminal to logic 1 or a high signal and wire the individual segments to logic 0 or ground. The following is an example of displaying 1 using the CA model.
In the CC model, the COM terminal combines all the cathode connections of the segments. To produce a display, wire the COM terminal to logic 0 or ground and wire the segments to logic 1 or a high signal. The following is an example of displaying 1 using the CC model.