Tool/software: TI-RTOS
I am developing a device which has following requirements using CC2640:
1.RTC should run always unless the battery is empty.
2.I want to put the device in standby mode when the button is pressed and wakeup from standby mode on detecting the pin interrupt from the same button.
3.The device should consume lowest power possible since battery should last longer.
I started with shutdown mode example and its working fine but RTC doesn't work in shutdown mode.but there is problem in putting the device in standby mode it doesn't wakeup from standby mode. i am using following api's Power_shutdown(NULL,0) which works fine but Power_sleep() doesn't work i searched for the example on standby mode but task_sleep function is used in that example instead of Power_sleep() function .from the technical reference manual i found that device consume low power in standby mode and RTC also works in standby mode.So I want to know whether this controller meets my requirement.If yes how can i achieve that is there any example for putting the device in standby mode and waking up on interrupt.I have removed POWER_SAVE from predefined symbol since i want my device to advertise continuously when my device is on.