}
void dis_control()//显示模式的选择
{
switch(disnum)
{
case 0:{shuxian[0]=time.s;shuxian[1]=time.m;shuxian[2]=time.h;};break;
case 1:{shuxian[0]=time.d;shuxian[1]=time.mouth;shuxian[2]=time.y;};break;
case 2:
{
if(key_num==1){shuxian[0]=0xaa;shuxian[1]=0xff;shuxian[2]=tobcd(a_num);};
if(key_num==2){shuxian[0]=0xbb;shuxian[1]=0xff;shuxian[2]=tobcd(b_num);};
if(key_num==3){shuxian[0]=0xcc;shuxian[1]=0xff;shuxian[2]=tobcd(c_num);};
if(key_num==4){shuxian[0]=0xab;shuxian[1]=0xff;shuxian[2]=tobcd(ab_num);};
if(key_num==5){shuxian[0]=0xbc;shuxian[1]=0xff;shuxian[2]=tobcd(bc_num);};
if(key_num==6){shuxian[0]=0xac;shuxian[1]=0xff;shuxian[2]=tobcd(ac_num);};
/*if(key_num>6)
{
if(key_num==36)key_num=1;
r_24c01(0x04+3*key_num,3,shuxian);};*/
};
break;
case 3:{shuxian[0]=0xff;shuxian[1]=time.m;shuxian[2]=0xff;};break;
case 4:{shuxian[0]=0xff;shuxian[1]=0xff;shuxian[2]=time.h;};break;
case 5:{shuxian[0]=time.d;shuxian[1]=0xff;shuxian[2]=0xff;};break;
case 6:{shuxian[0]=0xff;shuxian[1]=time.mouth;shuxian[2]=0xff;};break;
case 7:{shuxian[0]=0xff;shuxian[1]=0xff;shuxian[2]=time.y;};break;
case 8:;break;
}
}
void r_24c01(uchar address,uchar z,uchar *databuf)
{
uchar i;
Start();
writebyte(0xa0);