#include<reg52.h>
#define uint unsigned int
#define uchar unsigned char
sbit rs=P2^6;
sbit rw=P2^5;
sbit en=P2^7;
uchar code table1[]={"0321-12-31 PM"};
uchar code table2[]={"23:59:50"};
uchar code yue1[]={31,28,31,30,31,30,31,31,30,31,30,31};
uchar code yue2[]={31,29,31,30,31,30,31,31,30,31,30,31};
uchar i,num,miao,fen,shi,num0,aa,bb,cc,dd,nian,yue,ri,ff,
gg,hh,jj,number,shifen,AM,PM;
void write_com(uchar com); //¶áλÖÃ
void write_dat(uchar dat); //¶áêy¾Y
void delay(uint); //Ñóê±3ìDò
void init(); //3õê¼»ˉ
void write_suf(uchar add,uchar dat); //ê±·ÖÃë
void write_sub(uchar add,uchar num); //ÔÂèÕ
//void write_sug(uchar add,uchar num); //Äê
void display();
void key();
void myget();
void main()
{
|