This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <htc.h> | |
#define _XTAL_FREQ 20000000 | |
void delay(unsigned int time) //Time delay function | |
{ | |
unsigned int i,j; | |
for(i=0;i< time;i++) | |
for(j=0;j<5;j++); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
sbit rs=P3^5; | |
sbit rw=P3^6; | |
sbit en=P3^7; | |
void delay() | |
{ | |
unsigned int i,j; | |
for(i=0;i<700;i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg51.h> | |
sbit rs=P3^0; //GLCD control pins | |
sbit rw=P3^1; | |
sbit en=P3^2; | |
sbit cs1=P3^3; | |
sbit cs2=P3^4; | |
sbit re=P3^5; | |
void delay(unsigned int d){ //random delay generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
void display(); | |
sbit rs=P3^5; //Register select (RS) | |
sbit en=P3^6; //Enable (EN) pin | |
void delay(unsigned int time) //Time delay function | |
{ | |
unsigned int i,j; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg51.h> | |
sbit led=P1^0; | |
void delay() | |
{ | |
int count=0,sec; | |
for(sec=0;sec<60;sec++){ | |
count=0; | |
while(count!=500) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg51.h> | |
sbit led=P1^0; //Led connected to port-1 pin#0 | |
void delay() | |
{ | |
int count=0; | |
while(count!=500) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
void delay() | |
{ | |
unsigned int i,j; | |
for(i=0;i< 500;i++) | |
for(j=0;j< 1000;j++); | |
} | |
void main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
void delay() | |
{ | |
unsigned int i,j; | |
for(i=0;i< 500;i++) | |
for(j=0;j< 1000;j++); | |
} | |
void main() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
void delay() | |
{ | |
unsigned int i,j; | |
for(i=0;i< 500;i++) | |
for(j=0;j< 1000;j++); | |
} | |
void main() |
NewerOlder