收到的数据应该是8位的,那么你说的是 xxxx 1111,还是 1111 xxxx;
或者其他如 0011 1100;
buf =SBUF;
if(buf&0x0f==0x0f); 或者 if(buf&0xf0==0xf0);
或者 if(buf&0x3c==0x3c);
等等