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

GPIO Input Current Consumption very high when pressed

Dear all,

I have an application that requires me to keep advertising until the button is pressed.

I use a timer to read the status of the input pin and then if input is on then i advertise if not i go into deep sleep after few seconds.

This is how i setup my input:-

nrf_gpio_cfg_input(16,BUTTON_PULL);

nrf_gpio_cfg_sense_input(16, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_SENSE_LOW);

No matter what i do .. when the button is pressed I contantly am using 250 uA. I figured  by reading some forums i need to disconnect the buffer but I dont know how to do that. I use the same input pin to wakeup the device from deep sleep and as well as to detect if the button is pressed after it wakes up.

The setup of the input pin is 400 k pulup resistor.

thanks

Related