A seven-segment display is a form of electronic display device for displaying decimal numbers and few characters that is an alternative to the more complex dot matrix displays. Here in this tutorial we have explained interfacing it with 8051 microcontroller and created a 0 to 9 counter. Check here the tutorial: http://circuitdigest.com/microcontroller-projects/7-segment-display-interfacing-with-8051