This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how many way for wack-up my chip nrf51?

i m using nrf51.... first i have call WFI(); and device goes to sleep mode...and when press any switch on gpio so, wack-up again...so, may i know that.. how many way for wack-up my chip.....like as.. switch press, interrupt call, and other.. i m not know other more.. just i m implement in RTC alarm system.. when set one time for alarm and match that time so chip wack-up and send message and sleep again... but now work on different wack-up cases..

  • In WFI sleep the CPU will wake up as a result of an interrupt request if the associated interrupt is enabled in the NVIC.

    If you are using the SoftDevice, you should instead use the power management functions provided by the SoftDevice. The equivalent to WFI is sd_app_evt_wait(), which will put the chip in System ON sleep mode until an event occurs. This function will wake up the CPU to process SoftDevice events, but it will not exit until an application event occurs, so to the application it looks like you are in sleep all the time. To wake up the chip from system ON sleep mode, any application event can be used.

Related