3 Replies Latest reply on Dec 14, 2016 12:55 AM by JoMe_264151

    UART - Delay code to wait for User response

      I want to ask the user for several specifications, all just one char inputs; however, the program doesn't wait for the user input and goes along with outputting strings. 






      UART_PutSring("Please Enter either A or B");


      char1 = UART_GetChar();


      UART_PutString("Please Enter either Z or Y");


      char2 = UART_GetChar(); 




      These are polling for user input once, so it is outside the for(;;). I am using Tera Term and it is connected with a serial of 115200 with 8 data bits. How do I make the program wait till the user inputs data?