我已经配置了缓冲器操作的UART,缓冲器大小为128,运行在57.6kbPs。使用UARTHIPPARTRAIL,我发送多于几个字符的问题。
在5个字符中,它们都被正确发送,6个字符中断。看来这个问题与中断有关。只要UARTHI PUCHCHAR例程将字符直接放入PSoC UART发送数据寄存器,就发送字符。如果UARTHIPPUCHAR例程将字符放置到缓冲区中,则缓冲区继续填充,并且没有一个字符被发送。UARTHARTXBuffrError增量正确,UARTHARTX缓冲区读取保持在零。
TX-on上的FIFO空中断被打开,似乎中断只是不开机。
有什么想法吗?
以上来自于百度翻译
以下为原文
I have configured the UART for Buffered opera
tion with a buffer size of 128 running at 57.6Kbps. Using UART_PutArray I have issues sending more than a few characters.
At 5 characters, they are all sent correctly, and 6 breaks it. It looks as if the problem is related to interrupts. As long as the UART_PutChar routine puts the character directly into the PSOC UART send data register the character are sent. If the UART_PutChar routine places the character into the buffer then the buffer continues to fill and none of the characters are sent. The UART_TxBufferWrite increments correctly and the UART_TxBuffer Read stays at zero.
The TX - On FIFO Empty interrupt is turned on and it seems like the interrupt is just not firing.
Any Ideas?