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.

  • Thank you so much for your suggestion could you please tell me what configuration do i need to make the button work in the software because in the NRF51DK button is connected to GND and pin 17 but in my custom board i have connected my button to vcc and pin 6 of the NRF51SOC i have tested my custom board it is making the pwm signal enable after press the button for 3 seconds and and if i did the smae configuration for my custom board it is enabling the PWM signal if i keep on the pressing the button once i released the button the pwm signal goes off immediately could you please check my source code

Reply
  • Thank you so much for your suggestion could you please tell me what configuration do i need to make the button work in the software because in the NRF51DK button is connected to GND and pin 17 but in my custom board i have connected my button to vcc and pin 6 of the NRF51SOC i have tested my custom board it is making the pwm signal enable after press the button for 3 seconds and and if i did the smae configuration for my custom board it is enabling the PWM signal if i keep on the pressing the button once i released the button the pwm signal goes off immediately could you please check my source code

Children
No Data
Related