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

Disabling an App_button pin (app_button_disable)

I have a setting where I want to disable a GPIO assigned to app_button. I can use the app_button_disable() function which works well for all the underlying sensing on the pin. However I cannot seem to disable the Pull-up on this pin. As a result even though the button is functionally disabled, it still drawings 0.230mA of current when pushed. Ideally I would like to disable the pull-up while the button is supposed to be disabled. Thus reducing this pushed-current.

I have tried reconfiguring the pin as an input with No Pull-up, Pull-down and even tried setting it to an output in a low state. However it seems like none of these configurations actually affect the the GPIO as is remains an input with an internal pull-up. Please advise if there is a way around this. Thanks

Parents
  • Have you tried to set as input and disconnect the input buffer as suggested in the ref man, page 56 quoted bellow ?

    "The input buffer of a GPIO pin can be disconnected from the pin to enable power savings when the pin is not used as an input, see Figure 15: GPIO Port and the GPIO pin details on page 56. Inputs must be connected in order to get a valid input value in the IN register and for the sense mechanism to get access to the pin."

Reply
  • Have you tried to set as input and disconnect the input buffer as suggested in the ref man, page 56 quoted bellow ?

    "The input buffer of a GPIO pin can be disconnected from the pin to enable power savings when the pin is not used as an input, see Figure 15: GPIO Port and the GPIO pin details on page 56. Inputs must be connected in order to get a valid input value in the IN register and for the sense mechanism to get access to the pin."

Children
Related