




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
interface display with led using 8051 microcontroller. explains about all the things related to lcd
Typology: Study Guides, Projects, Research
1 / 8
This page cannot be seen from the preview
Don't miss anything!





/ 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);