Part Number: MSP430F5528
Other Parts Discussed in Thread: MSP430WARE
Tool/software: Code Composer Studio
Hello,
I'm tweaking the current of a MSP430f5528 device.
It would be cool to have a benchmark code - simply switching all off, and go to LPM3. Watchdog Timer should be operational as periodic Timerinterrupt source.
Is the following code sufficient to run such a benchmark - or are there any other things I should take into account for minimizing the current according to the datasheet for achieving the specified 1.9 uA at 1.9V?
At the moment I'm far far away from this current unfortunatelly.
Thank You very much for Your assistance!
With best regards
Mathias
void main(){
WDTCTL = WDTPW | WDTHOLD;
/* UCSCTL6|=XT2OFF;
UCSCTL6|=XT1OFF;
UCSCTL6|=SMCLKOFF;
// This settings didn't turn out to have any effect to the low power performance in this benchmark.
*/
PADIR=0xffff; PAOUT=0x0000; // Ports 1 and 2
PBDIR=0xffff; PBOUT=0x0000; // Ports 3 and 4
PCDIR=0xffff; PCOUT=0x0000; // Ports 5 and 6
PJDIR=0xffff; PJOUT=0x0000; // Jtag Port
_low_power_mode_3();
}