如UART_Send(Urat_data,1000);
void UART_Send(uchar *send_data,uchar len)
{
ES = 0; //Disable serial intertupt
while(len--)
{
SBUF = *(send_data ++); //Send this data
while(!TI); //Wait for the data is sent
TI = 0; //Clear TI flag
}
ES = 1; //Enable serial interrupt
}
上面是单片机程序 请参考