The seven segments are arranged as a rectangle, with two vertical segments on each side and one horizontal segment each at the top, middle, and bottom. Often the rectangle is
oblique (slanted), which may aid readability. In most applications, the segments are of nearly uniform shape and size (usually elongated
hexagons, though
trapezoids and
rectangles can also be used); though in the case of
adding machines, the vertical segments are longer and more oddly shaped at the ends, to try to make them more easily readable. The seven elements of the display can be lit in different combinations to represent each of the
Arabic numerals. The individual segments are referred to by the letters "a" to "g", and an optional
decimal point (an "eighth segment", referred to as DP) is sometimes used for the display of non-integer numbers. A single byte can encode the full state of a seven-segment display, including the decimal point. The most popular bit encodings are
gfedcba and
abcdefg. In the
gfedcba representation, a byte value of 0x06 would turn on segments "c" and "b", which would display a "1" (). block, to replicate early computer fonts that included seven-segment versions of the digits. The official reference shows the less-common four-segment "7" ().
Hexadecimal The
binary-coded decimal (BCD) 0 to 9 digit values require four binary bits to hold their values. Since four bits (24) can hold 16 values, this means
hexadecimal (hex) digits can be represented by four bits too. Due to the limited number of segments in seven-segment displays, the hexadecimal digits B and D are displayed as lowercase letters to avoid confusion with 8 () and 0 () respectively. The digit "6" must also be displayed with the topmost segment as to avoid ambiguity with the letter "b" (). : Early decoder ICs often produced unintuitive patterns or duplicates of digits for 10-15, as they were designed to use as few gates as possible and only required to produce 0-9.
Letters Many letters of the
Latin alphabet can be reasonably implemented on a seven-segment display. Though not every letter is available, it is possible to create many useful words. By careful choice of words, one can sometimes work around unavailable letters. Uppercase letters "B", "I", "S", "Z", and "D" & "O" conflict with the common seven-segment representation of digits "8", "1", "5", "2", and "0" (, , , , ) respectively, and the lowercase letter "g" with digit "9" (). Upper case () could be put on the left (as lower-case L is shown here) but this is not often done. Lowercase 'b' and 'q' are identical to the alternate numerical digits '6' and '9' (, ). : The following are some English word examples seen on actual electronic equipment (first line appeared on some
CD players): :, , , , , :, , , , , , :, , , , , , ==See also==