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

Parents
  • Hi,

    You set the pin with an internal pull-up resistance of 13kOhms and 3.3V it will give a current of ~250uA if the pin is hold pressed down.

    If you want to keep the button pressed down for long period of time I recommend you clear the pin after it's the pressed in the interrupt handler with nrf_gpio_cfg_default().

    Best regards,

    Marjeris

  • Exactly what I needed to know.. Ur idea worked like a charm

Reply Children
No Data