6 Replies Latest reply on Aug 24, 2016 12:42 PM by user_1377889

    UART SCB example project with RX interrupts

    asharma_1613651

      I was looking into UART communication and was able to send and receive data by connecting UART RX and TX pins with help of example code below:

         

       

         

      int main()
      {
          uint8 ch;

         

          /* Start SCB (UART mode) operation */
          UART_Start();
          UART_UartPutChar(48);
          for (;;)
          {
              ch = UART_UartGetChar();

         

              if (0 != ch)
              {
                  UART_UartPutChar(ch);
              }
          }
      }

         

       

         

      Is there any example code online where I can find how to use interrupt for RX or any documentation for APIs.