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

NRF52832 power leakage

We use NRF52832   in the remote control of the car。We measured the average current of power consumption at about 1uA.Every 300ms, the current curve bounces to the transient current of 100uA, which we suspect is caused by charging and discharging of the DEC4 decoupling capacitor.We used the power supply of CR2032 to make 2000 samples. 10% of the samples ran out of battery power one month after they appeared. Theoretically, the battery could survive two years without changing.We did not initialize the idle pins, including NFC pin.I don't know what caused our power consumption. The real-time current of the sample retest was normal 1UA.We used SPIS, if configured "nrf_spis_pins_set(NRF_SPIS1,SPI_CLK_PIN,SPI_MOSI_PIN,NULL,SPI_CS_PIN)" This is going to affect the control of idle IO and I don't know what's wrong with the configuration。We also used PPI, mapped timer interrupt events, and GPIO rolloff。"nrf_power_system_off "The PPI needs to be turned off before the function, otherwise the power cannot be reduced.

  •  “nrf_gpio_cfg(LED_RED,    NRF_GPIO_PIN_DIR_INPUT,NRF_GPIO_PIN_INPUT_DISCONNECT,NRF_GPIO_PIN_PULLUP,NRF_GPIO_PIN_S0S1,NRF_GPIO_PIN_NOSENSE);”I don't really understand what NRF_GPIO_PIN_INPUT_DISCONNECT means,When I set pullup and disconnect ,the LED is off. set pulldown and disconnect the light is on .
  • According to the block diagram, shouldn't the light be off as long as I set it off, no matter whether I pull it up or down?
  • Here are my measurement results, which prove the pullup/pull-down resistor is connected to the pin regardless of the input setting. nRF52832, 32MHz crystal, no 32kHz crystal, no Reset pin, SoftDevice loaded but not enabled, no peripherals enabled, idle. Power CR2032 coin cell, no ground other than PPK-2, no J-Link.

    This first table is default port settings after a reset, no changes:

    PPK-2  Meter  Conditions
    ====== ====== ==========
    1.66uA 2.971V with errata workarounds, no i/o
    1.51uA 2.985V   no errata workarounds, no i/o

    This Next table is port settings made after a reset, all 32 port pins identical, nothing connected to any of the 32 port pins, no errata applied:

    PPK-2  Meter   Direction    Input            Pullup         Drive Level      Sense Level    Output
    ====== ======  ==========   ==============   ============   ==============   ============== ===========

    1.49uA 2.989V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLNONE | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven Low
    1.49uA 2.999V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLDOWN | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven Low
    6.47mA 2.894V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLUP   | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven Low
    6.47mA 2.889V (PIN_OUTPUT | PIN_CONNECT    | PIN_PULLUP   | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven Low

    1.51uA 2.959V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLNONE | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven High
    6.42mA 2.877V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLDOWN | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven High
    1.53uA 2.938V (PIN_OUTPUT | PIN_DISCONNECT | PIN_PULLUP   | PIN_DRIVE_S0S1 | PIN_SENSE_OFF) Driven High

    This shows setting a port pin into active low output driven low is as good as leaving a pin floating when unused, with the added benefit that there is no possibility of port feedthrough if a floating pin drifts through the threshold.

    Looking at pull-up and pull down resistor values for the 32 pins:

    (2.877Volts / 6.42mA) / 32 ==> 14.34K Ohm

  • hmolesworth said:
    The nRF52832 data sheet is incorrect, and the drawing you show is also incorrect. The pull-up and pull down resistors are applied to the port pin regardless of whether the port is set as input or output or unconnected. This means that the internal pull-down supplies power to the LED even if set to Input and Disconnect. I spent some time proving this. The answer to disable the LED leakage is to turn off the pull-down by using PULLNONE.

    Yes, you're right. The drawing is incorrect (both the one posted here and the one in the product spec (which is the same drawing)). I will report this internally. Thanks for letting us know. 

Related