Skip to main content
Visitor II
February 17, 2010
Question

UART RX FIFO

  • February 17, 2010
  • 2 replies
  • 797 views
Posted on February 17, 2010 at 12:59

UART RX FIFO

    This topic has been closed for replies.

    2 replies

    Visitor II
    May 17, 2011
    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...

    arjanAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 10:00

    Thanks man!!!

    Hadn't tought about that one!!

    greetz.