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.

CC1312R: Sensor Controller : fwScheduleTask vs Events

Part Number: CC1312R

In my current application the Sensor Controller is used to get values from an I2C-device in regular intervals. My current approach is to use fwScheduleTask() to wait for the next tick of AON_RTC where the tick period is set by the application to the needs. Their is only 1 Task defined.

Is their any advantage to use Timer x Event Triggers to my current approach?

And in this context, i have another question: What is the state of the Sensor Controller while it waits for the next schedule? And does it have any effect if i change the power mode to low-power-mode before executing fwScheduleTask() and change it back to active-mode at the start of the execution?

  • Hi,

    if your sensor controller application is used to receive data from I2C at regular intervals, there is no advantage to using event triggers compared to RTC-based Execution scheduling. The advantage of Event trigger is present when your sensor controller application is dealing with asynchronous signal, and would allow you to wake up the sensor controller only when needed (the rest of the time the sensor controller will be in Power Down). 

    While waiting for the next schedule the sensor controller is in Power Down mode and will be woken up in either Active or Low-power mode depending on your configuration inside the "Power and Clock settings" panel in your Sensor Controller Studio project  (see picture below). 

    Switching between Active and Low-power mode can also be controlled at run-time by your application through the Dynamic Power Control API (for more information press F1 inside Sensor Controller studio -> Power management -> Dynamic power control).

    I suggest you look at the Power and clock configuration in sensor controller studio (press F1 -> Project Panel -> Power and clock settings panel) to have an idea on how to configure switching between different power-modes in your application. As well as the chapter 19.2 Power and clock management inside the TRM.

    Regards,

    Fausto