如下即可:#include void main(){ SCON = 0x50; TMOD = 0x20; TH1 = 0xFD; TL1 = 0xFD; TR1 = 1; while(1) { SBUF = P1; //采样并发送 while(!TI); TI = 0; }}