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接收数据的问题



dat=Read_IIR(1);
 if((dat==0xc4)||(dat==0xcc))
 {
  LED=0;
  while(Read_LSR(1)&0X01)
  {
   dat1=Read_RBR(1);
   Write_THR(1,dat1);
  }
 }
现在数据可以发出来了,但是接收不到。
我用查询方式接收,程序如上所示。
请高手指教,哪里有错?谢谢!