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.

MSP430 LPM3.5

Other Parts Discussed in Thread: MSP430FR5739

Hello guys,

I am trying to go into LPM3.5 on my msp430FR5739 exp board. I program the following code, and then dissconnect the programming jumpers. I am still getting 1.9mA. If I program some other code on there and then this code back on, it will sometimes go down to 1.5uA. Can anyone see any holes in my LPM code?

WDTCTL = WDTPW + WDTHOLD; // Stop WDT

P1DIR = 0;
P1OUT = 0;
P1REN = 0xFF;

P2DIR = 0;
P2OUT = 0;
P2REN = 0xFF;

P3DIR = 0;
P3OUT = 0;
P3REN = 0xFF;

P4DIR = 0;
P4OUT = 0;
P4REN = 0xFF;

PJDIR = 0;
PJOUT = 0;
PJREN = 0xFF;

UCA1CTL1 &= ~UCSWRST;
UCA0CTL1 &= ~UCSWRST;

CSCTL0_H = 0xA5;
CSCTL1 |= DCOFSEL0 + DCOFSEL1; // Set max. DCO setting
CSCTL2 = SELA_1 + SELS_3 + SELM_3; // set ACLK = VLO; MCLK = DCO
CSCTL3 = DIVA_0 + DIVS_1 + DIVM_1; // set all dividers

CSCTL4 = XT1OFF + XT2OFF;
CSCTL5 &= ~(XT1OFFG + XT2OFFG);

REFCTL0 |= REFTCOFF;
REFCTL0 &= ~REFON;

PMMCTL0_H = PMMPW_H;
PMMCTL0_L |= PMMREGOFF;
__bis_SR_register(GIE+CPUOFF+OSCOFF+SCG1+SCG0); // Enter LPM3
__no_operation();

while(1)
{}

Thanks!

-Omri

**Attention** This is a public forum