led display interface with 8051 micro controller, Study Guides, Projects, Research of Microprocessors

interface display with led using 8051 microcontroller. explains about all the things related to lcd

Typology: Study Guides, Projects, Research

2017/2018

Uploaded on 11/15/2018

kinnera
kinnera 🇮🇳

2 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
7 Segment display
7 segments imply there
are 7 LED segments as
shown in fig.
A seven-segment
display is commonly
used in electronic
display device for
decimal numbers from
0 to 9 and in some
cases, basic characters.
pf3
pf4
pf5
pf8

Partial preview of the text

Download led display interface with 8051 micro controller and more Study Guides, Projects, Research Microprocessors in PDF only on Docsity!

7 Segment display

7 segments imply there

are 7 LED segments as

shown in fig.

A seven-segment

display is commonly

used in electronic

display device for

decimal numbers from

0 to 9 and in some

cases, basic characters.

Types of 7 segment

There are two types of LED 7-segment display

called: Common Cathode (CC) and Common

Anode (CA).

The common cathode has all the cathodes of

the 7-segments connected directly together

and the common anode has all the anodes of

the 7-segments connected together and is

illuminated as follows.

The Common Anode (CA)

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).

Common anode

  • Interfacing 7 segment to

Code

/ Code for 7 Segment Display Interfacing with 8051 Microcontroller

#include<reg51.h>

void msdelay(unsigned int time) // Function for creating delay in milliseconds.

unsigned i,j ;

for(i=0;i<time;i++)

for(j=0;j<1275;j++);

void main()

unsigned char no_code[]={0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90}; //Array for hex

values (0-9) for common anode 7 segment

int k;

while(1)

for(k=0;k<10;k++)

P2=no_code[k];

msdelay(100);