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

can i put my nrf51822 in sleep mode..?

hai

in my application i am using nrf51822 . i have connected some sensors with the mcu. and i am collecting values from the sensors and this values are updated to the service data in every seconds. so can i put my nrf51822 into sleep between each updating without interrupting the radio and ADC functionality...? if so how can i wake up from sleep to update data in every second....?

  • Hi,

    There are two sleep modes in the nRF51822; System OFF and System ON mode. System OFF mode is the deepest sleep mode, requiring a reset, GPIO signal or LPCOMP signal to wakeup. You can put the device into this mode by setting NRF_POWER->SYSTEMOFF = 1; if not using a softdevice, or by calling sd_power_system_off() if a softdevice is used.

    System ON mode will wake up on any event from periherals, like RTC, timer, radio etc. You can enter system ON mode by calling __WFE() if not using softdevice, or sd_app_evt_wait() if softdevice is used.

    If you look in the examples in the SDK, most of them have a endless loop in main calling __WFE() or sd_app_evt_wait() to put the chip in sleep mode as soon as other tasks are done.

    Best regards,

    Jørgen

Related