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

nRF51422 GPIOTE with pushbutton

Hi,

I am building a custom PCB using the nRF51422 chip. I need to include a pushbutton switch on the PCB to generate an interrupt when it is pressed(gpiote). I am connecting the pushbutton switch to an analogue pin. For the pushbutton, should I connect the other side of it to ground or the input voltage to the board to allow an interrupt to be generated on a button press? Also, would I need any external pull-up or pull-down resistors?

Regards, Ehsan

Parents
  • Hi,

    Pushbuttons are usually active low, meaning the input will be connected to ground when the button is activated (pushed). So you connect one side of the button to the nRF-pin you want to use, and the other side to ground. You don’t need any external pull-up/down resistor, just configure the nRF-pin as input with active internal pull-up.

    image description

Reply
  • Hi,

    Pushbuttons are usually active low, meaning the input will be connected to ground when the button is activated (pushed). So you connect one side of the button to the nRF-pin you want to use, and the other side to ground. You don’t need any external pull-up/down resistor, just configure the nRF-pin as input with active internal pull-up.

    image description

Children
Related