void send_UART(unsigned char i)
{
ES=0;
TI=0;
SBUF=i;
while(TI==0);
TI=0;
ES=1;
}
void UART_one_Interrupt_Receive(void) interrupt 4
{
if(RI==1)
{
for(i=0;i<3;i++)
{
RXDBUFF1[i] = SBUF;
send_UART(RXDBUFF1[i]);
}
RI = 0;
flag=1;
}
else
{
TI = 0;
}
}
不知道那里错了, 发送01 02 03 返回为00 00 00 |