3 Replies Latest reply on Dec 7, 2016 12:05 AM by davidfarid

    UART Rx status checking

    davidfarid

      Hello 

         

      i'm using cy8ckit4245-049 transmitting over uart 

         

      i can send using the api UART_WriteTxData also receive using UART_ReadRxData() it works good 

         

      but i can't use the read status when i check it never go into the loop

         

      i don't know why

         

      without the if condition it works good 

         

      char status,display; 

         

       for(;;)
          {
              status= UART_ReadRxStatus();
              if(status&=UART_RX_STS_FIFO_NOTEMPTY)

         

      // if( UART_RX_STS_FIFO_NOTEMPTY)
              {
                display=UART_ReadRxData();
                LCD_PutChar(display);
               }
          }