Power saving mode.

Discussion about wireless devices

Power saving mode.

Postby Alarus » Mon Jul 07, 2014 1:31 pm

Wrote a small program to transfer NRF24LE1 save mode memory to activate the timer. Measured the current consumption, he was at the level of 150 uA. That's a lot for the chip (Datasheet 3.2 uA).

Code: Select all
#include "acomp.h"
#include "delay.h"
#include "gpio.h"
#include "rf.h"
#include "pwr_clk_mgmt.h"

uint8_t Data_TX = 0x55;

void main()
{

    acomp_configure(ACOMP_CONFIG_OPTION_ENABLE | ACOMP_CONFIG_OPTION_REF_VDD | ACOMP_CONFIG_OPTION_REF_SCALE_50_PCT | ACOMP_CONFIG_OPTION_POL_INV, ADC_CHANNEL_AIN1);
    pwr_clk_mgmt_close_retention_latches();

    pwr_clk_mgmt_clklf_configure(PWR_CLK_MGMT_CLKLF_CONFIG_OPTION_CLK_SRC_RCOSC32K);
    pwr_clk_mgmt_wait_until_clklf_is_ready();

    rf_configure_debug_lite(false, 1);
    delay_us(130);

    //Transmit received char over RF.
    rf_write_tx_payload(&Data_TX, 1, true);

    //Wait until the packet has been sent or the maximum number of retries has been reached.
    while(!(rf_irq_pin_active() && rf_irq_tx_ds_active()));

    //Clear all interrupts in the 24L01.
    rf_irq_clear_all();
    rf_power_down();

    pwr_clk_mgmt_enter_pwr_mode_memory_ret_tmr_on();

    while (1);
}

Alarus
 
Posts: 4
Joined: Mon Jul 07, 2014 11:11 am

Re: Power saving mode.

Postby brennen » Mon Jul 07, 2014 2:43 pm

One thing to note is that you should be running off the main crystal at 16 MHz whenever you're using the radio. Otherwise, you're not going to be at 2.4 GHz.

As far as power consumption, are you sure you're not measuring any current other than what the microcontroller is using? If there are any other components (LEDs, ICs, etc.) in your current path then that could throw your reading off.
brennen
Site Admin
 
Posts: 395
Joined: Sun Aug 17, 2008 2:15 pm

Re: Power saving mode.

Postby Alarus » Mon Jul 07, 2014 3:14 pm

Thanks for the answer.

I use the module for the wireless sensor. This sensor has no active components (even using the internal comparator). The sensor itself without module consumes 1.5 uA. The sensor operates on battery CR2032.
Alarus
 
Posts: 4
Joined: Mon Jul 07, 2014 11:11 am

Re: Power saving mode.

Postby brennen » Mon Jul 07, 2014 9:01 pm

How are you measuring current? Directly or the voltage across a resistor?
brennen
Site Admin
 
Posts: 395
Joined: Sun Aug 17, 2008 2:15 pm

Re: Power saving mode.

Postby Alarus » Tue Jul 08, 2014 3:23 am

Amperemeter is serially connected between the battery and the module.
Alarus
 
Posts: 4
Joined: Mon Jul 07, 2014 11:11 am

Re: Power saving mode.

Postby brennen » Tue Jul 08, 2014 1:18 pm

If you try removing everything in your code before the call to pwr_clk_mgmt_enter_pwr_mode_memory_ret_tmr_on(), does the current decrease at all? That would give you the baseline current for your sleep mode.
brennen
Site Admin
 
Posts: 395
Joined: Sun Aug 17, 2008 2:15 pm

Re: Power saving mode.

Postby Alarus » Wed Jul 09, 2014 3:52 am

If you disable all but the last command, the consumption is 29 uA. When the activation string "pwr_clk_mgmt_close_retention_latches ();" consumption increases to 150 uA, although the sensor uses only the comparator.
Alarus
 
Posts: 4
Joined: Mon Jul 07, 2014 11:11 am


Return to Wireless

Who is online

Users browsing this forum: No registered users and 2 guests

cron