GPIOTE consuming 17ua when enabled

Hi,

I am using nRF52832 as my SoC and LPN example in nrf sdk for mesh v5.0.0. When I enable the GPIOTE interrupt for GPIO pin 17, I am seeing an additional 17ua of current consumption. As per the specification, the typical current consumtpion for GPIOTE is only 0.1ua and a maximum of 0.5ua only. Can someone help me to reduce the current consumption to the specified amount in electrical specification when GPIOTE is enabled for GPIO pin 17. I am monitoring the state of a GPIO pin 17 which is connected to a button in pullup by default. 

I have attached the initialization code for reference below.

  ret_code_t err_code;

  NRF_LOG_INFO("Initializing GPIOTE");
  err_code = nrfx_gpiote_init();
  APP_ERROR_CHECK(err_code);
  if(err_code == NRFX_SUCCESS) NRF_LOG_INFO("Initialized GPIOTE");

  NRF_LOG_INFO("Configuring GPIOTE");
  nrf_drv_gpiote_in_config_t in_config = GPIOTE_CONFIG_IN_SENSE_HITOLO(true);
  in_config.pull = NRF_GPIO_PIN_PULLUP;
  NRF_LOG_INFO("Configured GPIOTE");

  NRF_LOG_INFO("Enabling interrupt!!!");
  err_code = nrfx_gpiote_in_init(GPIO_RESET, &in_config, wynwy_reset_handler);
  APP_ERROR_CHECK(err_code);
  if(err_code == NRFX_SUCCESS) NRF_LOG_INFO("Enabled interrupt!!!");

  NRF_LOG_INFO("Enabling event!!!");
  nrfx_gpiote_in_event_enable(GPIO_RESET, true);
  if(err_code == NRFX_SUCCESS) NRF_LOG_INFO("Enabled event!!!");

Parents Reply Children
Related