This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need timer.h and lcd.h which suits the program given below

hello everyone,
im doin my engineering project on AUTOMATIC SPEED CONTROL OF AUTOMOBILES.i am using AT89C52 and 16x2 lcd display.
i have the C program for it,but i need Timer.h & Lcd.h for it to work....
plz help me find it or create one header fle for the program below.....

/* RF id transmitter for vehicle SCHOOL ZONE & HOSPITAL ZONE */
#include <stdio.h>
#include <lcd.h>
#include <timer.h>
PORT: TX_PORT = P2;
PORT: LCD_PORT = P0;
PIN: ID_SET_KEY = P1.3;
PIN: IN_A0 = P3.3;
PIN: IN_A1 = P3.4;
unsigned char send_id;
select_id_sw()
{
if( (IN_A0 == 0) && (IN_A1 == 0 ) )
{
uputs(16,0,16,"0:NO ZONE LIMIT ");
send_id = 0;
}
if( (IN_A0 == 1) && (IN_A1 == 0 ) )
{
uputs(16,0,16,"1 SCHOOL ZONE ");
send_id = 1;
}
if( (IN_A0 == 0) && (IN_A1 == 1 ) )
{
uputs(16,0,16,"2: HOSPITAL ZONE");
send_id = 2;
}
if( (IN_A0 == 1) && (IN_A1 == 1 ) )
{
uputs(16,0,16,"3:NO ZONE LIMIT ");
send_id = 3;
}

}

main()

{
unsigned int d;
uputs(0,0,16, " VECHILE SPEED ");
uputs(16,0,16," ZONE LIMIT TX ");
for(d=0; d < 60000; d++);
for(d=0; d < 60000; d++);
uputs(0,0,16, " WELCOME TO ECE ");
uputs(16,0,16," DEPARTMENT ");
for(d=0; d < 60000; d++);
for(d=0; d < 60000; d++);
uputs(0,0,16, "THANKS TO H.O.D ");
uputs(16,0,16," GUIDE & ALL ");
for(d=0; d < 60000; d++);
for(d=0; d < 60000; d++);
uputs(0,0,16, " NAME ");
uputs(16,0,16," NAME ");
for(d=0; d < 60000; d++);
for(d=0; d < 60000; d++);
uputs(0,0,16, " NAME ");
uputs(16,0,16," NAME ");
for(d=0; d < 60000; d++);
for(d=0; d < 60000; d++);
uputs(0,0,16, "your in setmode ");
uputs(16,0,16," pls select id ");
while(1)
{
if( ID_SET_KEY == 0)
{
uputs(0,0,16, " u r in setmode ");
do
{
select_id_sw();
} while(ID_SET_KEY == 0);
uputs(0,0,16, "VEHICLE ZONE ID ");
TX_PORT = send_id;
}
}

}

0