What Is a 7 Segment Display?

From Flowcode Help
Revision as of 11:05, 15 July 2013 by ReeceL (talk | contribs)
Jump to navigationJump to search

<sidebar>Sidebar: What Is a Component?</sidebar> A seven-segment display (SSD) is an electronic display device for displaying decimal numerals (numbers) that is an alternative to the more complex dot matrix and OLED displays.

Seven-segment displays are widely used in digital clocks, electronic meters and other electronic devices for displaying numerical information.


The seven-segment display is split into 8 elements, each element is a section of the digit, and the eighth section is the decimal point, these elements/sections are commonly labelled A-G going clockwise around each section of the digit, ending with the 'G' section in the middle, and the decimal point labelled as 'DP' to the side, this labeling pattern is also convert-able into decimal numbers, 1-8.


Seven-segment displays may use liquid crystal display (LCD), a light-emitting diode (LED) for each segment or other light generating or controlling techniques. The 7 Segment Single and 7 Segment Quad Flowcode components use LED displays by default.

The LED colour may be changed in Flowcode using the 'LED Color' property, you may also change the 'Bezel Color' property to change the colour of the base/background of the component, these properties may be changed during simulation if you wish to do so.


In Flowcode the each element/section on the 7 Segment Display needs to be connected in order to function properly, the default connections for the component are as follows:

Pin Property Connection
pin0 $PORTB.0
pin1 $PORTB.1
pin2 $PORTB.2
pin3 $PORTB.3
pin4 $PORTB.4
pin5 $PORTB.5
pin6 $PORTB.6
pin7 $PORTB.7
common $PORTA.0

pin 0-7 is connected to Port B 0-7 and the common pin is connected to Port A 0.