This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to create a precise timer on OSAL?

Generally, We can use osal_start_timerEx to create a periodic event.

When multiple devices start at the same time. After a while, they won't be synchronized.

So, is there any other mothed to create a precise timer on OSAL based CC254X? Thanks!

  • OSAL timer is not a precise one. Don't under standard your question well so can you elaborate what you intend to achieve?
  • YiKai,

    This is my need,
    a. On CC254X device, switch different colors(different duty cycle of PWM) every 10s
    b. A phone App connect 4 CC254X devices, and send the same start command at the same time
    c. The colors of 4 CC254x devices should be the same in every moment

    Hansome
  • Sounds lots of uncertainty in your application. osal timer event is one and how to send the same start command to all of your 4 device is another one. If it is possible to send the same start command at the same time, I would suggest you to send it every 10 seconds from your phone App to avoid the imprecision of osal timer.