Part Number: TM4C1294NCPDT
I'm using a UART RX FIFO level to trigger an interrupt and sign me when I have some data available for processing. The received package have a variable number of bytes and I'm using the trigger level at 2/8 to ensure that the receive interrupt will be generated for all packages and a receive time out to identify the end of package ( I use data integrity check to distinguish between a real time out or end of package).
my question is about (HWREG(UART_PORT_BASE + UART_O_FR) & UART_FR_RXFE). I'm reading the bytes from RX FIFO until I have a true condition.
The problem is the UART_FR_RXFE flag, it is turning high after 2/8 RX FIFO reading cycles and I can't read the remain bytes in the FIFO. Same behavior for all RX FIFO threshold level settings.
Is it the correct behavior for the RX FIFO EMPTY flag?
What am I doing wrong? Is it an incorrectly approach?
Thanks,
Richard