0 Replies Latest reply on Nov 13, 2017 3:33 AM by ashlinsurey.a_2617601

    CLEAR UART FIFO IN FX3

    ashlinsurey.a_2617601

      Hi,

                I have been working with the FX3 UART interface for a while. I am trying to communicate between two boards through UART interface in BYTE MODE with a timeout of 1 second. I have been trying many work cases for this. One such case is that, the transmitter will transmit data(take as data1) after one second so that the receiver will return a TIMEOUT ERROR. But the next time when the receiver tries to receive data2 from the transmitter(using CyU3PUartReceiveBytes()), it takes the data1 which was send before. I think that the data1 gets stored in the FIFO of the UART interface. Is there a way to clear the UART FIFO or the UART ingress data register as I get previous state values whenever I call the CyU3PUartReceiveBytes() after a timeout error???

       

      Thanks in Advance,

      Regards,

      Ashlin Surey. A