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

gpio disconnect and internal pull-up

hi 

I have leak current when GPIO disconnect.
When I tested it, the pull-up is a problem.
    /* Configure board. */
    nrf_gpio_cfg_input(11,NRF_GPIO_PIN_PULLUP);
    nrf_gpio_cfg_input(12,NRF_GPIO_PIN_PULLUP);
    nrf_gpio_cfg_input(24,NRF_GPIO_PIN_PULLUP);
    nrf_gpio_cfg_input(25,NRF_GPIO_PIN_PULLUP);
    
    nrf_gpio_cfg_input(12,NRF_GPIO_PIN_NOPULL);
    
    nrf_gpio_input_disconnect(24);

    nrf_gpio_cfg_input(25,NRF_GPIO_PIN_NOPULL);
     nrf_gpio_input_disconnect(25);
  
    while (true)
    {
                
       __SEV();
        __WFE();
        __WFE();
            
    }
Test the following current waveforms.
In the datasheet,

If disconnected, the internal pull-up should not be affected.
I tested with NRF52840, but nRF52832 also happens.
I wish someone would explain why.
thank you.
Parents Reply Children
No Data
Related