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.

control sensor controller task

Hi,

 I merged sensor controller task which is based on "analog light sensor" example on sensor controller studio.

 I want to make that task run only while CPU goes to standby mode. 

 Is there any way to control to run/stop sensor controller task?

 I tried to do this through enable/disable interrupt. But it fails.

Thanks,

  Chongchun Moon

  • Hello Chongchun Moon,

    What do you mean, when the CM3 goes to idle or when the entire chip goes into standby? Why do you want to do this?

    The sensor controller task can run in parallel independently from the main application processor. In section "3.3.3 Use Power_registerNotify() to register for appropriate power event notifications" in Power Management for CC26xx SimpleLink Wireless MCUs it is explained how to register callback functions for power transition events. In theory it could be possible to start the task in such a callback. But notification callback functions should be minimal functions, in which the driver performs just the necessary steps for a particular power transition, and then returns as quickly as possible. It might be risky to call other functions such as scifStartTasksNbl within this callback in time critical applications. If you explain what you are trying to achieve maybe we can help you reach your goal somehow.

    You can stop and start the sensor controller tasks:

    scifStopTasksNbl //Stop task

    scifWaitOnNbl // Wait for the task to stop. (in certain cases you need to add additional delay)

    scifResetTaskStructs // Reset all the task structures

    scifStartTasksNbl // Start task

  • Hi Eirik V,

     Thank you for supporting and sorry for lack of explanation.

      What i tried to do with sensor controller task is measuring voltage level on VDDS pin.

      Battery is connected on VDDS. 

      However, there is some voltage drop while TX/RX timing. Because 25mAh coin cell battery is used.

      Therefore, I like to measure voltage level without any interference as far as possible.

      My approach is execution sensor controller task to measure voltage level when CPU goes to standby mode.

      Do you think it is reasonable? 

      Is there any better idea for do that?

      I checked the way what you suggested briefly.(I just sync with button to run/stop that task) So far, it looks OK.

    Thanks,

      Chongchun Moon

  • Hello,
    That is quite a small battery :). It might work, but there is also some recharge pulses during standby (info in this app note: www.ti.com/.../swra478 ).

    There is also also a lower resolution battery monitor (BATMON) that can be accessed from the application processor:
    e2e.ti.com/.../447390