cancel
Showing results for 
Search instead for 
Did you mean: 

UART RX FIFO

arjan
Associate
Posted on February 17, 2010 at 12:59

UART RX FIFO

2 REPLIES 2
jomedfree2
Associate II
Posted on May 17, 2011 at 10:00

You can try to use the ReceiveTimeOut event, in this case you won't leave any character in the Rx Fifo:

void UART0_IRQHandler(void)

  {

   if(UART_GetITStatus(UART0,UART_IT_Receive|UART_IT_ReceiveTimeOut) == SET)

    { /* Read characters from the receive FIFO */

    do 

...you IT code on Rx event here...

arjan
Associate
Posted on May 17, 2011 at 10:00

Thanks man!!!

Hadn't tought about that one!!

greetz.