#define uchar unsigned char #define uint unsigned int sbit led=P1^0; sbit sw=P1^1; bit flag1,flag2; uchar count,cnt; void main() { sw=1;//置1作为输入口 TMOD=0x01; TL0=0x00; TH0=0x4C; //11.0592M,定时50ms TR0=1; EA=1; ET0=1; flag1=0;//方式一标志位 flag2=0;//方...