Altera_Forum
Honored Contributor
16 years agoUART problem - RRDY never set
I have a simple polled UART application which is not working as I expect:
rs232_rx_control = IORD_ALTERA_AVALON_UART_STATUS(UART_BASE); if (rs232_rx_control & ALTERA_AVALON_UART_STATUS_RRDY_MSK) { *pBuffer = IORD_ALTERA_AVALON_UART_RXDATA(UART_BASE); return 1; } The baud rate is 57600 and I am generating the characters manually, so speed isn't the problem. The problem is that RRDY is never being set. The characters are being received into RXDATA. They overwrite the previous received character. I don't see any receiver overruns, framing errors or detected breaks. Transmitting characters is no problem for me.