你好
你用FIFO_1_4的话,串口受到4个字节之后会发一个中断 :
11.4.9 Interrupt FIFO Level Select Register (UART_IFLS)
RXIFLSEL: Receive Interrupt FIFO Level Select The trigger points for the receive interrupt are as follows: 000 = Receive FIFO becomes >= 1/8 full 001 = Receive FIFO becomes >= 1/4 full 010 = Receive FIFO becomes >= 1/2 full 011 = Receive FIFO becomes >= 3/4 full 100 = Receive FIFO becomes >= 7/8 full 101:111 = reserved.
所以串口受到了数据但是还没有中断。现在芯片运行正常的。
你也可以用Receive Timeout的中断直接读最后受到的一些字节在串口Data Register里面。
Best Regards, Stephane
|