Dear Nordic Semiconductor-Team and everyone else,
thank you for helping the thousands of people in this forum an answering their questions thoroughly.
I have a question/problem regarding the pullup resistors using my nRF52840DK.
I am trying to use the Pins P0.09 and P0.10 as input pins with the internal pullups enabled.
I am using the GPIO HAL layer as follows:
As a first step I am configuring the mentioned pins as input pins with the input buffer connected and the pullup resistors enabled.
nrf_gpio_cfg(NRF_GPIO_PIN_MAP(0, 9), NRF_GPIO_PIN_DIR_INPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_NOSENSE);
nrf_gpio_cfg(NRF_GPIO_PIN_MAP(0,10), NRF_GPIO_PIN_DIR_INPUT, NRF_GPIO_PIN_INPUT_CONNECT, NRF_GPIO_PIN_PULLUP, NRF_GPIO_PIN_S0S1, NRF_GPIO_PIN_NOSENSE);
To see if the registers are set correctly I call the functions nrf_gpio_pin_dir_get() and nrf_gpio_pin_pull_get() which both return the correct values (0 for NRF_GPIO_PIN_DIR_INPUT and 3 for NRF_GPIO_PIN_PULLUP )
My understanding is, that if I read the input value of those pins now with nrf_gpio_pin_read() and without anything connected to the pins, I should read a 1 (HIGH) value, but in my case I am reading a 0 (LOW) value.
Adittionaly when I try to measure the pullup pin with my voltmeter, I am reading 0 Volts on that pin. In my understanding that would mean, the pullup resistor actually is not connected.
Can you tell me what I am missing, or why my understanding of how all of that works is wrong?
Thank you in advance!