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

VERIFY BUTTON CONNECTION

mains.c

Hello Everyone,

I have deveLoped the Custom PCB whixh has the push button which is connected to VCC so i would like verify my software logic for button configuration this is the button configuration for the NRF51DK where button in the NRF51DK is connected pin 17 and GND static app_button_cfg_t p_button[] = { {BP, APP_BUTTON_ACTIVE_LOW,NRF_GPIO_PIN_PULLUP , button_handler}};

CUSTOM PCB button configuration: static app_button_cfg_t p_button[] = { {BP, APP_BUTTON_ACTIVE_HIGH,NRF_GPIO_PIN_PULLDOWN , button_handler}}; in custom PCB button is connected to VCC nad other pin connected to Resistor 10k and followed by PIN 6 of the NRF51chip so anyone could please verify my button configuration because my button is functioning as expected

any help would be greatly appreciated

Thank you prabhu

Thank you prabhu

Parents
  • If I understood you correct this is the configuration:

    P0.06 -- 10k resistor -- button -- VCC

    With internal pull down on the input pin you will have a voltage divider which will lower the voltage to about half the voltage (internal pull down is about 13k). If this is the case you will never detect any change on the pin because the required voltage have to be 0.7 VDD to be valid high level. You should remove the 10k resistor in that case.

  • yes that is my configuration but is there is any possibility to remove the internal pull down instead of removing the external 10k resistor if it is possible please sugggest me some ideas can i do like that will it work instead of NRF_GPIO_PIN_PULLDOWN can i change that to NULL will it remove the internal pull down resistor or i shoud remove only the 10k resistor

    static app_button_cfg_t p_button[] = { {BP, APP_BUTTON_ACTIVE_HIGH,NULL , button_handler}};

Reply
  • yes that is my configuration but is there is any possibility to remove the internal pull down instead of removing the external 10k resistor if it is possible please sugggest me some ideas can i do like that will it work instead of NRF_GPIO_PIN_PULLDOWN can i change that to NULL will it remove the internal pull down resistor or i shoud remove only the 10k resistor

    static app_button_cfg_t p_button[] = { {BP, APP_BUTTON_ACTIVE_HIGH,NULL , button_handler}};

Children
No Data
Related