怎么配置和开启uart1的fifo?能不能具体到用哪个函数?我用UARTCharPutNonBloking函数发送64个字节,发现有错误的数据。是不是因为我TX fifo没有开启?怎么开启? 急急急急急急!!!!
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.
怎么配置和开启uart1的fifo?能不能具体到用哪个函数?我用UARTCharPutNonBloking函数发送64个字节,发现有错误的数据。是不是因为我TX fifo没有开启?怎么开启? 急急急急急急!!!!
我看到有那个UART_ENABLE_FIFO宏定义,定义了这个宏,就配置UartFIFOConfigure函数。我配置了UartFIFOConfigure函数得,而且一样得。用UARTCharNonBlocking函数发送得。但是发送的数据不对!
用UARTCharPutNonBlocking函数发送,一次发送64个字节,出现发送的数据不对,掉包而且顺序也不对。完全乱发。用UARTCharGetNonBlocking接收都对,而且是FIFO接收到得!
进入看了。This API attempt to write a byte into Transmitter Holding Register(THR). it checks only once if the transmitter is empty .
这是给的解释。