8051 Interface – 7 Segment Display

7-Segment Display

Image Source : ArunEworld

A Seven segment display is the most basic electronic display. It consists of eight LED’s which are associated in a sequence manner so as to display digits from 0 to 9 when proper combinations of LED’s are switched on. A 7-segment display uses seven LED’s to display digits from 0 to 9 and the 8th LED is used for dot. A typical seven segment looks likes as shown in figure below. The 7-segment displays are used in a number of systems to display the numeric information. They can display one digit at a time. Thus the number of segments used depends on the number of digits to display. Here the digits 0 to 9 are displayed continuously at a predefined time delay.

Image Source

The 7-segment displays are available in two configurations which are common anode (V+) and common cathode (GND). Here common anode configuration is used because output current of the micro-controller is not sufficient enough to drive the LED’s. The 7-segment display works on negative logic, we have to provide logic 0 to the corresponding pin to make on LED glow. This tutorial you can learn 8051 interface 7 segment display with 8051 controller. I chooses AT89S51 micro controller(You can select any other keil support micro controller) and demonstrated, this is very simple and follow this below.

Image Source

 

Image Source

The following table shows the hex values used to display the different digits.

Image Source


Required software


Required components and Programmer

  • 1x AT89S51 Controller
  • 1x 4Mhz Crystal
  • 2x 22pf capacitor
  • ISP AVR USB programmer
  • 7 Seg Display

Circuit Diagram


C code

 



Assembly Code (ASM)

 


Reference

 



 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

if you have any queries call us +918300026060 or WhatsApp Dismiss

0

Your Cart

%d bloggers like this: