Hi i'm a newbie in nordic chip. Can someone please explain to me that how to enable and disable sleep in nrf51822 and what kind of setup need to be done? Example in Arduino : set_sleep_mode(SLEEP_MODE_PWR_SAVE); sleep_enable(); sleep_mode(); sleep_disable();
There are two sleep modes on nRF51822, System ON sleep mode and System OFF sleep mode. In System ON sleep mode the CPU will wake up on any event. In System OFF sleep mode the CPU can only wake up on gpio…
I went into the code for sd_app_evt_wait() and the only command in it was a single __WFE(); Can you explain how it is doing the same thing as the __SEV(); __WFE(); __WFE(); without the SEV() or second…
__WFE();
__SEV(); __WFE(); __WFE();