How can i enable dcdc regulator

Hi everybody,

I want to try dcdc module. I want to figure out How can i reduce current consumption.

I have a this 2 configuration in sdk_config.h

1) 

// <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver - legacy layer
//==========================================================
#ifndef POWER_ENABLE
#define POWER_ENABLED 0
#endif
// <o> POWER_CONFIG_IRQ_PRIORITY  - Interrupt priority
 

// <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7

#ifndef POWER_CONFIG_IRQ_PRIORITY
#define POWER_CONFIG_IRQ_PRIORITY 6
#endif

// <q> POWER_CONFIG_DEFAULT_DCDCEN  - The default configuration of main DCDC regulator
 

// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.

#ifndef POWER_CONFIG_DEFAULT_DCDCEN
#define POWER_CONFIG_DEFAULT_DCDCEN 1
#endif

// <q> POWER_CONFIG_DEFAULT_DCDCENHV  - The default configuration of High Voltage DCDC regulator
 

// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.

#ifndef POWER_CONFIG_DEFAULT_DCDCENHV
#define POWER_CONFIG_DEFAULT_DCDCENHV 0
#endif

// </e>


2)
// <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
//==========================================================
#ifndef NRFX_POWER_ENABLED
#define NRFX_POWER_ENABLED 0
#endif
// <o> NRFX_POWER_CONFIG_IRQ_PRIORITY  - Interrupt priority
 
// <0=> 0 (highest)
// <1=> 1
// <2=> 2
// <3=> 3
// <4=> 4
// <5=> 5
// <6=> 6
// <7=> 7

#ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
#define NRFX_POWER_CONFIG_IRQ_PRIORITY 6
#endif

// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN  - The default configuration of main DCDC regulator
 

// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.

#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
#define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 1
#endif

// <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV  - The default configuration of High Voltage DCDC regulator
 

// <i> This settings means only that components for DCDC regulator are installed and it can be enabled.

#ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
#define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
#endif

// </e>

What is the differences between these two configurations?

and is this enough for enable dcdc regülator.


Parents Reply
  • It is perfectly possible to have enabled DCDC and still use a lot more current. Did you actually measure the current using a PPK? If so, can you show me a screenshot of what it looks like?

    In addition, anything else you do in your application will affect the power consumption. The numbers from the online power profiler only includes what is needed for the BLE to work. 

Children
  • i am kust using UNI-T multimeter. i read the current from uart on usb port. thank you sir. it is wonderful to heard dcdc is working.

  • #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
    #define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
    #endif
     
    if this is stay as 0, the dcdc register is 1. is this reason this (above) just define default regulator option?
  • Oguzhann said:
    i read the current from uart on usb port.

    Not sure what that means. 

    But if you just measure the current going into the nRF using a normal multimeter, that may not be very accurate. They are not always good at reading these kind of current consumptions, where you will have close to 0A most of the time, but then you will have short spikes when the radio is being used. Not all multimeters are good at interpreting these. Some will not catch the spikes at all, while some will think that the spikes are much longer (in time). They will read out the maximum current for a given period, and assume that this was the current consumption for that sample length. Therefore, you must use something like the power profiler kit II to accurately measure the current.

    Oguzhann said:
    if this is stay as 0, the dcdc register is 1. is this reason this (above) just define default regulator option?

    If you call sd_dcdc_mode_set() nrf_power_init() with the correct parameters, it will enable the DCDC regardless of whether the NRFX_POWER_CONFIG_DEFAULT_DCDCEN is set to. That is just a definition, so it doesn't magically change anything, unless it is actively used. 

    BR,

    Edvin

Related