TH0=vT0HVal; TL0=vT0LVal; TR0=1; TF0=0;
if(!(--cT01ms)){ cT01ms=vT01ms; if(!(--cT10ms)){ cT10ms=vT10ms; if(!(--cT01s)){ cT01s=vT01S; OutFlag=1; } } } }
void ComInINT(void) interrupt 4 { if (RI){ //判断是不收完字符 switch(SBUF){
case 0x61: CS = 1; break; //根据SBUF设置CS 接收'abcde'调试方便 case 0x62: CS = 2; break; case 0x63: CS = 3; break; case 0x64: CS = 4; break; case 0x65: CS = 0; break; }
P1 = 255; //P1口全为高电平,4-7通过反相为低不选任何音源,0-3为高用于读取按键 RI = 0; //RI清零
} }