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

How to measure current with an external power supply on nRF52840?

Hi,

I have a nRF52840 DK that I want to measure sleep current on, but I find it a bit confusing with all the switches etc. After reading through the documentation I have the following setup:

SW10: ON
SW6: nRF ONLY
SW9: VDD
P21: Power analyzer

But what about SW8? And should a usb cable be connected to J2 to prevent leakage current from nRF to the debugger? Is it possible to use the LEDs in this configuration?

Thank you!

Parents
  • Hi, sorry for the confusion. I will try to clarify a bit.

    Note that: VDD domain is the power domain of the DK (not including the nRF chip). Powering LEDs, debugger chip, etc..

    If you use external supply, you can choose between powering the chip directly OR powering the whole DK from the external source. You choose this with the SW10 switch (VEXT->nRF).

    1. Powering the chip directly (SW10 in ON position) enables you to use the power analyzer as a voltage source, and read out the current directly (as opposed to power analyzer as ampere-meter on P22). However, if you power the chip directly, the VDD domain on the DK will be floating, so you need to power the rest of the DK from USB. So, you need the USB cable to be plugged in to J2.
    2. If you are not powering the chip directly (SW10 in OFF position), you do not need the USB cable to be plugged in.

    SW6 disconnects the GPIOs from the rest of the DK. LEDs, buttons, etc.. If all GPIOs are configured as input (default) you don't have to worry about leakage.

    SW9 is used for selecting the power source.

    • Li-Po: The nRF chip is powered by the Li-Po header on VDDH (high voltage regulator, REG0). The VDD domain on the DK has the same voltage as the output of REG0 (using a voltage follower, 1.8V as default)
    • USB: Same as above except that the chip is powered by the nRF USB connector.
    • VDD: Chip is powered from VDD domain, disabling the high voltage regulator. VDD domain is either USB, external supply or battery holder. When SW10 is ON, the chip is always powered from external supply.

    SW8 should always be on.

    So to answer your question specifically:

    • SW10: ON
    • SW6: nRF ONLY or DEFAULT
    • SW9: VDD
    • P21: Power analyzer (1.8V to 3.6V)
    • J2 USB plugged in
    • Yes, you can use the LEDs but you will have to set SW6 to DEFAULT. LEDs are powered through J2.
  • Hi Stian,

    Thank you for your clarification!

    Then SW10 does what I thought SW6 was doing. Do SW6 only open all the switches between nRF52840 and the debugger? 

    Is nRF52840 powered from P21.2 -> VSRC_NRF -> SW9 -> VDD_nRF/VDD_HV? 

  • The refresh spikes are included in the datasheet numbers and are part of the idle current.

    The BLE stack will function properly if you disable some (not all) RAM blocks. You can read more about the softdevice RAM requirement here, and how to adjust it. The "RAM size" variable must be adjusted to the size of the physical RAM (minus the size required by the softdevice, i.e. what is left over for the application).

    DCDC gives you the lowest power consumption.

    Please check out the Online Power Profiler to get an estimate on the power consumption while using the softdevice.

  • Hi Stian,

    Should I then get ION_RAMON_RTC = 3.16 uA between each advertisement or 2.0 uA, as the Online Power Profiler states? I'm not able to get below 6.5 uA between each advertisement. With 100 ms adv. interval I get approx. 205 uA on average which is a lot more than 86 uA as the Online Power Profiler states.

    By turning of all of the RAM, the datasheets states ION_RAMOFF_RTC = 1.5 uA, so I don't expect to get close to 2.0 uA by turning off only a few blocks. Is it something else I have missed? Do you have some SW examples I can use to get closer to the datasheet numbers?

    Also, how is the current consumption over temperature? Our main goal with these tests is to see how the performance is at higher temperature. 

    Thank you!

  • Sorry for the late reponse.. It's been christmas vacation time over here.

    You should get close to 3.16 as stated in the datasheet. 6.5 uA seems a bit too high.

    Can you put the chip to system OFF mode and measure the current? Whatever current you get over 3-400nA is most likely caused by measurement error.

    You can find current consumption over temperature in the plots at the bottom of this page: https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/_tmp/graviton/autodita/CURRENT/parameters-id_current_sleep

    Just a comment about the online power profiler: seems like you were looking at numbers for the nRF52832 not the nRF52840

    For a power optimized example in the SDK, please check out the ble_app_pwr_profiling example.

  • Thank you for the graph! Do you have a similar graph with ram retention on as this is required for my application?

Reply Children
Related