unsigned char num=1;
void Uart_Run(void)
{
if(con0!=con1)
{
UART3_SendData8(TXDATA1[con0]);
con0++;con1++;
}
if(con1>TxDataMax0)
{
con0=0;con1=1;
}
else
{
RxCon1++;
}
}
while(1)
{
if(num!=RxCon1)
{
num=RxCon1;
Uart_Run();
}
}
RxCon1是中断发生接到8为数据之后自加,求大神指导
|