1 Reply Latest reply on Apr 6, 2018 5:14 AM by abhinavg_21

    fx3 thread sleep



      in the fx3 slavefifo firmware,it says that thread sleep is 100millisecond when  CyU3PThreadSleep (100);

      if i call CyU3PThreadSleep (1) ,it will be one ms.how it will be in miliseconds?


      CyU3PThreadSleep (

              uint32_t timerTicks             /**< Number of timer ticks to sleep. */



      how to calculate timerticks?


      let me know,thank you.

        • 1. Re: fx3 thread sleep



          Timer ticks are defined in the firmware library. By default it is set to 1 ms (which gives optimal and accurate results with +/- 4 % accuracy). If you want to change the timer ticks you can use CyU3POsTimerInit(). Note that if you increase the timer ticks value your OS will become slow by the same factor.

          Please refer to API Guide for further info.


          Thanks & Regards


          1 of 1 people found this helpful