This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2530 DEEP SLEEP

Other Parts Discussed in Thread: CC2530, CC2530EM

Hi Everyone,

I'm using ZStack-CC2530-2.3.0-1.4.0 with the evaluation kit.

I'm just trying to program my end device to enter in DEEP sleep mode following the whole instructions in “Power Management for the CC2530” documentation but I still can't enter PM3. (The EM current consuption that I measure on the SmartFR05BB is about 0.32 mA)

In debug mode I noticed that the power mode register (MODE in SLEEPCMD) is set to PM3 but I can’t see the correct consumption.

Have you got a suggestion?

Thank you in advance for any help.

Regards,

Sara

  • Hi Sara

    Did you have a look at the Application notes AN053, AN057, AN073, ...?

    They are all using the same measurement setup.

    As described in AN053 it is important to make sure that the HAL does not periodically poll for key presses.

    AN053: http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=swra144

    I also copied some other posts in below that I found while searching for one of the earlier AN053 related posts:

    http://e2e.ti.com/support/low_power_rf/f/158/p/50975/180343.aspx#180343

    http://e2e.ti.com/support/low_power_rf/f/160/t/18301.aspx

    http://e2e.ti.com/support/low_power_rf/f/160/t/18245.aspx

    Good luck!

    -LL-

  • Hi LL,

    thank you for your suggestions. I followed all the instructions in the Application Notes but the the current consumption is always about 0.3 mA. This value corresponds to PM1 consuption and I don't understand because the device doesn't enter a deep sleep mode.

    I measured the current consuption on the smart RF05 Battery board on the P7 pins. Is it correct?

     

    Thank you!

     

    Regards,

    Sara

     

  • To be honest I never tried it on the Battery Board.

    I tried it on the SmartRF05 EB board but always got some kind of "leakage" from some of the components on that EB board.

    When using only the CC2530EM as described in the AN053 it worked for me.

    Good luck!

    -LL-

  •  

    I've tried to measure only the EM consumption as shown in the AN053 but the consuption is about 8 mA!!!!!

    What's wrong?

    I followed exactly the document "Power Management for the CC2530". Are there other changes that I have to insert?

    Thank you for the support

    Sara 

  • Hi Sara,

    Could it be that the chip is in debug mode when you are measuring power consumption? When the device is in debug mode, it does not actually enter PM2/3 even if the registers say that it is in PM2/3. It just emulates PM2/3 by using something similar to PM1 in order to stay debuggable. Putting a simple program in Flash to enter PM2/3 will do the trick. Otherwise, you could

    The ususal culprit are the I/Os. If they are configured with pullup and connected to ground, or if P1_0 or P1_1 (LED driver pads) are left floating there can be a current draw.

    Peder

  • Hi Peder,

    the device in not in debug mode when we measure the current consuption.

    About I/Os, we included in HAL_BOARD_INIT () in hal_board_cfg.h  the following instructions to have not floating pins:

    P0SEL &= ~0xFF;                                                 
    P1SEL &= ~0xFF;                                                 
    P2SEL &= ~0xFF;                                                  
                                                                     
                                                                    
    P0DIR |= 0xFF;                                                  
    P1DIR |= 0xFF;                                                  
    P2DIR |= 0xFF;                                                   
                                                                     
                                                                    
    P0 &= ~0xFF;                                                    
    P1 &= ~0xFF;                                                    
    P2 &= ~0xFF;

    Is it correct?

    Thank you for the support,

    Regard

    Sara

  • Hi Sara,

    Yes, that should drive all outputs low. Then you just have to make sure the outside is floating or connected to ground.

    Peder

  • Hi Peder,

    The outside is floating but i think that the instructions I included do not have effect or, perhaps, they are overwritten .

    In fact when the EM is on the SmartRF05 BB the current consuption is about 0,3 mA while the current consuption of the only EM module is 8 mA.

    Where can I insert the code to obtain the correct changes?

    Thank you.

    Sara

  • Hi Sara

    Just remembered that I had to make sure to use the correct compile options to make it work; i.e. look at your compile options.

    Open IAR Project --> Go to Project options (ALT+F7) --> Go to C/C++ Compiler Category --> choose Preprocessor tab

    You should remove LCD_SUPPORTED=DEBUG as it might set some I/O settings that affect your measurement.

    Just a thought.

    Good luck!

    -LL-

  • Thank you LL but I haven't this compile option.

    My compile options are: 


    HAL_UART=TRUE
    SERIAL_APP_PORT=0
    POWER_SAVING

    What's yours?

    Thank you for your help!

    Sara

  • You cannot use the battery board to get a true measurement of the CC2530EM current. You have to detach the CC2530EM from any board and stick little metal leads into its Vcc and ground pins to power it - pretty inconvenient to say the least. I'll try to get more details.