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

PWR MGMT DEBUG PIN

Hi!
Reading the documentation on NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED, I'm left with a few questions.

1. Will this pin be set in all system sleep states? i.e System on and system off?

2. Can this pin be set to low, rather than high wen the system enters sleep mode?

3. Will my setup of GPIOs prior to entering sleep mode affect the output of this pin in sleep mode? I set them all to default (not connected, no pull etc).

4. If this pin is not connected to any peripheral, will it affect the power usage of my device in system off?

5. Are there other pins, other than GPIOs which can be used as the PWR_MGMT_DEBUG_PIN?

Thanks!

Parents
  • 1. Will this pin be set in all system sleep states? i.e System on and system off?

    It will only be set (high) in System ON idle. If you want it to be set in System OFF, you can add PWR_MGMT_DEBUG_PIN_SET(); before nrf_power_system_off() in nrf_prw_mgmt.c

     

    2. Can this pin be set to low, rather than high wen the system enters sleep mode?

    You will have to edit the nrf_pwr_mgmt.c file. On line 138 and 139 (SDK 17.0.2), the PWR_MGMT_DEBUG_PIN_SET/CLEAR() functions are defined. You can switch the nrf_gpio_pin_set/clear() functions.

     

    3. Will my setup of GPIOs prior to entering sleep mode affect the output of this pin in sleep mode? I set them all to default (not connected, no pull etc).

     I assume with "sleep mode" you mean "system OFF". If you set the pins to default (0x2) before entering system OFF, they will be high-z inputs and not be driven high or low.

     

    4. If this pin is not connected to any peripheral, will it affect the power usage of my device in system off?

    No

    5. Are there other pins, other than GPIOs which can be used as the PWR_MGMT_DEBUG_PIN?

    Only GPIOs can be used for this purpose. All the pins which do not have a specific purpose (like VDD, decoupling, DCDC, HF crystal, antenna etc..) are GPIOs.

Reply
  • 1. Will this pin be set in all system sleep states? i.e System on and system off?

    It will only be set (high) in System ON idle. If you want it to be set in System OFF, you can add PWR_MGMT_DEBUG_PIN_SET(); before nrf_power_system_off() in nrf_prw_mgmt.c

     

    2. Can this pin be set to low, rather than high wen the system enters sleep mode?

    You will have to edit the nrf_pwr_mgmt.c file. On line 138 and 139 (SDK 17.0.2), the PWR_MGMT_DEBUG_PIN_SET/CLEAR() functions are defined. You can switch the nrf_gpio_pin_set/clear() functions.

     

    3. Will my setup of GPIOs prior to entering sleep mode affect the output of this pin in sleep mode? I set them all to default (not connected, no pull etc).

     I assume with "sleep mode" you mean "system OFF". If you set the pins to default (0x2) before entering system OFF, they will be high-z inputs and not be driven high or low.

     

    4. If this pin is not connected to any peripheral, will it affect the power usage of my device in system off?

    No

    5. Are there other pins, other than GPIOs which can be used as the PWR_MGMT_DEBUG_PIN?

    Only GPIOs can be used for this purpose. All the pins which do not have a specific purpose (like VDD, decoupling, DCDC, HF crystal, antenna etc..) are GPIOs.

Children
No Data
Related