void xsdata(uchar aa,uchar bb,uchar cc,uchar dd)//顯示函數
{
/*******
aa=shu/1000;
bb=shu%1000/100;
********/
aa=num%100/10;
bb=num%10;
cc=shu%100/10;
dd=shu%10;
we1=0;
P0=table[aa];
delay_50ms(10);
P0=0xff;
we1=1;
we2=0;
P0=table[bb];
delay_50ms(10);
P0=0xff;
we2=1;
we3=0;
P0=table[cc];
delay_50ms(10);
P0=0xff;
we3=1;
we4=0;
P0=table[dd];
delay_50ms(10);
P0=0xff;
we4=1;
}
|