sbit SERr= P2^3;
sbit SERg= P2^5;
uchar line=0;
void rxd_data(); // 串口发送移动数据
uchar time_count=0;
bit reg=1;
/*****不影响其他端口的扫描*************************/
void scan(unsigned char Value)
{switch(Value)
{case 15: scan0;break;
case 0: scan1;break;
case 1: scan2;break;
case 2: scan3;break;
case 3: scan4;break;
case 4: scan5;break;
case 5: scan6;break;
case 6: scan7;break;
case 7: scan8;break;
case 8: scan9;break;
case 9:scan10;break;
case 10:scan11;break;
case 11:scan12;break;
case 12:scan13;break;
case 13:scan14;break;
case 14:scan15;break;
default:break;
}
}
/**************************************/
void Timer0Interrupt(void) interrupt 1 //定时器中断
{
TH0 = 0x0D8;//定时10MS
TL0 = 0x0F0;