Altera_Forum
Honored Contributor
17 years agoA UART question related to character READ
Hello,
I'm new to to this forum and here's a UART related question. Im using a polling loop like this one to read a byte from the UART register: 1. status = IORD_ALTERA_AVALON_UART_STATUS(UART_DEBUG_BASE); if (status == 0x60) then goto step# 2 else go back to step# 1 2. ch = (char)IORD_ALTERA_AVALON_UART_RXDATA(UART_DEBUG_BASE); 3. What do I do here to reset something in the UART before going back to step# 1 so as NOT to get the last character that I just read in step# 2?