完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
为什么我串口给单片机发送字符串连接不起来,只能接收一个字符?file:///C:UsersAdministratorDocumentsTencent Files1120021691ImageGroupImage347FCMS`4XV3{(MFN9324N{K.pngfile:///C:UsersAdministratorDocumentsTencent Files1120021691ImageGroupImage347FCMS`4XV3{(MFN9324N{K.pngfile:///C:UsersAdministratorDocumentsTencent Files1120021691ImageGroupImage347FCMS`4XV3{(MFN9324N{K.pngfile:///C:UsersAdministratorDocumentsTencent Files1120021691ImageGroupImage347FCMS`4XV3{(MFN9324N{K.png void SerialPort0_ISR(void) interrupt 4 { char RX_DATA; if (RI==1) { RX_DATA = SBUF; Receive(RX_DATA); clr_RI; //SBUF = RX_DATA; //while(!ti); //TI = 0; } } void Receive( char rxdata) { UART_BUFFER[u16CNT] = rxdata; u16CNT++; if(u16CNT==9) { //UART_BUFFER[u16CNT] = ' |