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

GPIO pin configuration parameters

Hi,

 

I am using nRF52840 S140 V7.0.1. I have few queries on GPIO configurations.

 

Below are my PULLUP/PULLDOWN macros.

#define BUTTON_PULLUP        NRF_GPIO_PIN_PULLUP
#define BUTTON_PULLDOWN      NRF_GPIO_PIN_PULLDOWN
#define BUTTON_NOPULLUP      NRF_GPIO_PIN_NOPULL
 

As per my understanding

 

1) In below settings, pin is configured as PULLDOWN. So by default pin will be in low state. If there is change in pin from Low to High then only wake-up.

    {FMD_WAKEUP_PIN, APP_BUTTON_ACTIVE_HIGH, BUTTON_PULLDOWN, button_event_handler}, // Pull-Down, Active High

 

2) In below settings, pin is configured as PULLDOWN. So by default pin will be in low state. If there is change in pin from High to Low then only wake-up.

    {FMD_WAKEUP_PIN, APP_BUTTON_ACTIVE_LOW, BUTTON_PULLDOWN, button_event_handler}, // Pull-Down, Active Low

 

I could not find much explanation about Active High/Low in app_button_cfg_t structure. Correct me if I am wrong in my understanding.

 

Thanks & Regards

Vishnu Beema

Parents Reply Children
No Data
Related