time++;
Bit++;
if(Bit>7)
{ Bit=0;}
switch(Bit)
{
case 0:P0=0xff;P2=Duan[Data_Buffer[0]]; P0=0X7F;break;
case 1:P0=0xff;P2=Duan[Data_Buffer[1]]; P0=0XBF;break;
case 2:P0=0xff;P2=Duan[Data_Buffer[2]]; P0=0XDF;break;
case 3:P0=0xff;P2=Duan[Data_Buffer[3]]; P0=0XEF;break;
case 4:P0=0xff;P2=Duan[Data_Buffer[4]]; P0=0XF7;break;
case 5:P0=0xff;P2=Duan[Data_Buffer[5]]; P0=0XFB;break;
case 6:P0=0xff;P2=Duan[Data_Buffer[6]]; P0=0XFD;break;
case 7:P0=0xff;P2=Duan[Data_Buffer[7]]; P0=0XFE;break;
}
if(time==250)
{
num=Inpluse*2;
PID();
Inpluse=0;
time=0;
}
}