运行结果及报错内容,如何解决?

问题遇到的现象和发生背景
问题相关代码

#include<reg51.h>
#include<lcd1602.h>
#define uchar unsigned char
#define uint unsigned int
uchar int_time;
uchar second;
uchar minute;
uchar hour;
uchar code date[]=" H.I.T. CHINA ";
uchar code time[]=" TIME 23:59:55 ";
uchar second=55,minute=59,hour=23;
void clock_init()
{
uchar i,j;
for(i=0;i<16;i++)
{
write_data(date[i]);
}
write_com(0x80+0x40);
for(j=0;j<16;j++)
{
write_data(time[j]);
}
}
void clock_write( uint s, uint m, uint h)
{
write_sfm(0x47,h);
write_sfm(0x4a,m);
write_sfm(0x4d,s);
}
void main()
{
init1602();
clock_init();
TMOD=0x01;
EA=1;
ET0=1;
TH0=(65536-46483)/256;
TL0=(65536-46483)%256;
TR0=1;
int_time=0;
second=55;
minute=59;
hour=23;
while(1)
{
clock_write(second ,minute, hour);
}
}
void T0_interserve(void) interrupt 1 using 1
{ int_time++;
if(int_time==20)
{
int_time=0;
second++;
}
if(second==60)
{
second=0;
minute ++;
}
if(minute==60)
{
minute=0;
hour ++;
}
if(hour==24)
{
hour=0;
}
TH0=(65536-46083)/256;
TL0=(65536-46083)%256;
}

运行结果及报错内容

main.c(2): warning C318: can't open file 'lcd1602.h'
main.c(17): warning C206: 'write_data': missing function-prototype
main.c(17): error C267: 'write_data': requires ANSI-style prototype

'lcd1602.h'头文件找不到,要把这个文件放在在当前工程下

看看lcd1602.h文件在不在,不在当然就没办法了,要写一个,里面多半是一些底层操作函数的声明。
如果有,把#include<lcd1602.h>改为#include" lcd1602.h", 最好在编译器的include搜索路径里加上这个文件所在目录

头文件没有添加好