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.

CCS/MSP430FR2433: trouble entering low power mode

Part Number: MSP430FR2433

Tool/software: Code Composer Studio

Hello, I am trying to use the msp430fr2433 in lpm3 mode. I currently am having issues with not being able to include the VLO Library in my program. The end goal is to see if I can replicate the current specs from the data sheet on my launchpad. I do not think that I am entering lpm3 with the code that I have shown below. Any advice on how to enter lpm3 and how to wake up from lpm3 would be greatly appreciated. I have attached the code that has been created below.

#include <driverlib.h>
#include <VLO_Library.h>

void main(void)
{
WDT_A_hold(WDT_A_BASE);

GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0);
GPIO_setOutputLowOnPin(GPIO_PORT_P1, GPIO_PIN0);

PMM_unlockLPM5();
P1DIR |= 0x11; // set pins as output
BCSCTL3 |= LFXT1S_2;

P1IE |= BIT3; // enable P1.3 interrupt
while (1){
__enable_interrupt();
_BIS_SR(LPM3_bits + GIE); // Enter LPM3 w/interrupt
// P1OUT ^= 0x01; // turn LED on
GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0);

// GPIO_toggleOutputOnPin()
}

}

#pragma vector=PORT1_VECTOR
__interrupt void Port_1(void)
{
//wdtCounter = 0; // reset watchdog timer counter

P1IFG = 0x0;
_BIC_SR(LPM3_EXIT); // wake up from low power mode

}

Any help is greatly appreciated! Thank you for your time.

  • I am following this diagram from the user manual to try an achieve this. I am unsure how to turn off all of the items that need to be turned off.

  • Hello Donald,

    Have a look at the c code examples for this device. There are 2 LPM3 code examples.

    www.ti.com/.../slac700

    msp430fr243x_LPM3_01.c Enters LPM3 with ACLK = XT1CLK = 32768Hz.
    msp430fr243x_LPM3_02.c Configure MCLK and SMCLK up and down to adapt LPM3.
  • Hello Eddie,

    While this examples did provide of some use I still am having trouble reaching my sub 1 micro amp goal. For lpm3 the diagram above shows that the DCO clock has to be turned off while in the example code it is set to 16MHz. ACLK is the only one that is suppose to be turned on. When measuring the current across the 3.3V pins I am seeing a large number compared to sub 1 micro amp.

    In the first example code it becomes stuck in the do loop on line 92 and never enters lpm3.

    In the second example code it does enter the lpm3 mode but I am confused on why there are other items turned on besides the ACLK?

    Any help is greatly appreciated!

    Sincerely,

    Donald

  • Hi

    I think you are missing several things here, such as:
    - setting the pins in low power configuration
    - maybe you mean BIC_SR_ON_EXIT instead of BIC_SR_. Just press Ctrl + Space on Code Composer Studio after typing a few letters and will give you alternatives.

    Have a nice day.

**Attention** This is a public forum