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

nRF 51822 Low power mode

Hi All,

I'm new to nrf51822. I'm developing a battery powered device using the Nordic ble_app_uart_s110_pca10028 peripheral example program. I'm glad to inform you my core program is working successfully. But now i'm facing a problem, I want to implement low power mode enable/disable using a switch which is connected to a gpio. if anybody free right now , could you please share an sample code to me?

thank you.

Parents
  • Hi,

    When the SoftDevice is enabled, you can use the sd_power_system_off() function to go to sleep(System OFF mode).

    When in System OFF mode, the device can be woken up through one of the following signals:

    1. The DETECT signal, optionally generated by the GPIO peripheral
    2. The ANADETECT signal, optionally generated by the LPCOMP module
    3. The SENSE signal, optionally generated by the NFC module to “wake-on-field”
    4. A reset

    A solution could then be to configure the pin that the switch uses as sense input(wake-up source):

    nrf_gpio_cfg_sense_input(PIN NUMBER, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
    

    Note that when the system wakes up from System OFF mode, it gets reset

    You can aslo find examples on how to wakeup from system on and system off mode on this GitHub page.

Reply
  • Hi,

    When the SoftDevice is enabled, you can use the sd_power_system_off() function to go to sleep(System OFF mode).

    When in System OFF mode, the device can be woken up through one of the following signals:

    1. The DETECT signal, optionally generated by the GPIO peripheral
    2. The ANADETECT signal, optionally generated by the LPCOMP module
    3. The SENSE signal, optionally generated by the NFC module to “wake-on-field”
    4. A reset

    A solution could then be to configure the pin that the switch uses as sense input(wake-up source):

    nrf_gpio_cfg_sense_input(PIN NUMBER, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);
    

    Note that when the system wakes up from System OFF mode, it gets reset

    You can aslo find examples on how to wakeup from system on and system off mode on this GitHub page.

Children
Related