我搞TL16C554,用查询方式接收。
现在可以接收到数据,可是只能接收两三个数据,就会卡住。
程序如下:
do
{
dat=Read_LSR(1);
_nop_();
}while(!(dat&0x01));
LED1=~LED1;
dat1=Read_RBR(1);
_nop_();
Write_THR(1,dat1);
_nop_();
请高手支招,谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我搞TL16C554,用查询方式接收。
现在可以接收到数据,可是只能接收两三个数据,就会卡住。
程序如下:
do
{
dat=Read_LSR(1);
_nop_();
}while(!(dat&0x01));
LED1=~LED1;
dat1=Read_RBR(1);
_nop_();
Write_THR(1,dat1);
_nop_();
请高手支招,谢谢!