Interfacing of 7 Segment With PIC

by embeddedbymedhavi in Circuits > Microcontrollers

91 Views, 0 Favorites, 0 Comments

Interfacing of 7 Segment With PIC

7seggg.gif

SEVEN SEGMENT: Seven segment display (SSD), or seven-segment indicator, is a form of electronic display device for displaying decimal numerals that is an alternative to the more complex dot matrix displays.

seven segment display consists of seven LEDs (hence its name) arranged in a rectangular fashion as shown. Each of the seven LEDs is called a segment because when illuminated the segment forms part of a numerical digit (both Decimal and Hex) to be displayed. An additional 8th LED is sometimes used within the same package thus allowing the indication of a decimal point, (DP) when two or more 7-segment displays are connected together to display numbers greater than ten.

Each one of the seven LEDs in the display is given a positional segment with one of its connection pins being brought straight out of the rectangular plastic package. These individually LED pins are labelled from a through to g representing each individual LED. The other LED pins are connected together and wired to form common pin.
So by forward biasing the appropriate pins of the LED segments in a particular order, some segments will be light and others will be dark allowing the desired character pattern of the number to be generated on the display. This then allows us to display each of the ten decimal digits 0 through to 9 on the same 7-segment display. The displays common pin is generally used to identify which type of 7-segment display it is. As each LED has two connecting pins, one called the “Anode” and the other called the “Cathode”.

Types of Seven Segments

cathode.png
anode.png

There are two types of seven segments:

1) Common Cathode 2) Common Anode 1)

Common Cathode: In the common cathode display, all the cathode connections of the LED segments are joined together to logic 0 or ground. The individual segments are illuminated by application of a HIGH, or logic 1 signal via a current limiting resistor to forward bias the individual Anode terminals (a-g).

Circuit is given above.

2) Common Anode: In the common anode display, all the anode connections of the LED segments are joined together to logic “1”. The individual segments are illuminated by applying a ground, logic “0” or “LOW” signal via a suitable current limiting resistor to the Cathode of the particular segment (a-g).

Circuit is given above.

PIN Diagram of 7 Segment:

7segLed.gif

7 Segment Display Segments for All Numbers:

s4.png

Hexadecimal Encodings for 7 Segment

7segment code.png

Program for Display 0 to 9:

Downloads

Program for Display 0 to 99:

Downloads

Program for Display 0 to 999:

Downloads

Video of 7 Segment With PIC

Interfacing of 7segment with PIC Microcontroller:

Any Query related Embedded System , IOT and Raspberry PI go to My Blog:

embeddedbymedhavi