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

System Off & GPIO pull-up / pull-down

If the nRF51 chip is in System Off state, do the GPIO pins retain the pull-ups or pull-downs? If so, what value do they have and how much current can they sink or source?

This post gets close to answering, but not exactly: devzone.nordicsemi.com/.../

Parents
  • Hi Jason

    All GPIO configuration is retained is System Off. Perhaps you could benefit from looking at the system-off-wakeup-on-gpio example which shows how pins are configured to wake up from System Off.

    The default sink/source current is 0.5mA. This can be configured however by writing to the PIN_CNF register for a specfic pin, bits D, see section 13.2.8 in nRF51 Series Reference Manual v2.1. To see specifically how this is done in code, look at the definition for the nrf_gpio_cfg_sense_input function in nrf_gpio.h in the above linked example. Standard drive is 0.5mA max, high drive is 5mA max. Max combined drive for all GPIO's is 15mA.

Reply
  • Hi Jason

    All GPIO configuration is retained is System Off. Perhaps you could benefit from looking at the system-off-wakeup-on-gpio example which shows how pins are configured to wake up from System Off.

    The default sink/source current is 0.5mA. This can be configured however by writing to the PIN_CNF register for a specfic pin, bits D, see section 13.2.8 in nRF51 Series Reference Manual v2.1. To see specifically how this is done in code, look at the definition for the nrf_gpio_cfg_sense_input function in nrf_gpio.h in the above linked example. Standard drive is 0.5mA max, high drive is 5mA max. Max combined drive for all GPIO's is 15mA.

Children
Related