14 Replies Latest reply on Dec 18, 2016 12:50 PM by mario.pro2_1603066

    How to write period in Timer from keyboard

    mario.pro2_1603066

      Hi all, 

         

      I would like to be able to write new period to my timer, while the program is running. But when I'm trying to do that:

         

                      uint32 period;
                      UART_UartPutString("New Timer period");
                      UART_UartPutString("\r\n>");
                      period = UART_UartGetChar();
                      Timer_WritePeriod(period);

         

      I'm not able to set it right. For example when I type 10000 the period is only 10 and I'm not sure what I'm doing wrong. I've uploaded my whole project. Thanks for any help.