Part Number: MSP430FR2311
Hi,
Using Launchpad MSP430FR2311 - I am evaluating current consumption in LPM3 mode using following short code:
********************************************************
WDTCTL = WDTPW + WDTHOLD;
// P1SEL0=0;
// P1SEL1=0;
P2SEL1=0xc0;
P2SEL0=0x00;
//P1DIR |= 0x81; // Set P1.0 and P1.7 (=IR output) to output direction
P1DIR = 0x00; // Set P1 as input
P1REN = 0xff; // Port 1 Pullup or pulldown enabled
P1OUT = 0x00; // Port 1 = pull down
P2DIR = 0x00; // Set P2 as input
P2REN = 0xff; // Port 2 Pullup or pulldown enabled
P2OUT = 0x00; // Port 2 = pull down
CSCTL5=0x1100; //SMCLK=off - needed to enter power mode LPM3.
CSCTL4=0x0000; //Ext 32 kHz crystal as ACLK source
LPM3;
// _BIS_SR(LPM3_bits + GIE); // Enter LPM3 w/interrupt
while (1);
********************************************************
I reach a current consumption of 17 uA using a multimeter to measure. My target according to datsheet is to reach approx 2-4 uA.
Please also note that I have mounted an external 32kHz xtal on the board.
Please assist if you can see what I do wrong.