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

How to put nRF52833 to sleep mode? we are not using softdevice.

Hi Devzone:

I want to make nRF52833 chip enter sleep mode but not deep sleep(SYSTEM OFF) so that real time clock can still wake up the system. We don't use softdevice.

Digging around the forum, it seems to me that if I write my main as follows:

void main()
{
...
while(1)
    {
    _WFE()
    }
}

Then when the code sits at _WFE, it should count as a "sleep mode", is that right? Please confirm this concept for me.

Some other posts I saw use "sd_app_evt_wait()"instead in the while loop and treat that as sleep mode. Since we don't' have soft device, we can't use this function.

According to the spec the current drawn in "SYSTEM ON, sleep mode" is 2.6 uA.

My question is, in order to achieve the stated low current (2.6uA), is putting the code in _WFE() enough? Do I need to do some i/o config? Do I need to turn off all interrupts (except, of course, RTC so it can be waken)?

Thanks.

Related