Part Number: MSP430FR2311
Other Parts Discussed in Thread: ENERGYTRACE, , MSP430G2553
Dear,
just switched to msp430fr2311 so probably I am omitting something. Energytrace indicates a consumption of tens of uA when running the following code:
#include <msp430.h>
// conf GPIO for low-power consumption
void initGpio(void)
{
P1DIR = 0xFF; P2DIR = 0xFF;
P1REN = 0xFF; P2REN = 0xFF;
P1OUT = 0x00; P2OUT = 0x00;
// switch from GPIO default boot high-Z to the settings above
PM5CTL0 &= ~LOCKLPM5;
}
void main(void)
{
// stop watchdog
WDTCTL = WDTPW | WDTHOLD;
// conf GPIO for low-power
initGpio();
__bis_SR_register(LPM3_bits);
}
I am just being curious. I tried some of the samples for LPM3.5 and the consumption is ok.
So, what am I omitting in such simple code above? I have always used this for msp430g2553 with complete success :)
Oh, by the way, the jumpers for the light sensor circuit in the launchpad, as well as for the debugging interface, are removed.
Have a really nice day! Let me know your opinion!