I am using a 100 ohm ground resistor and measuring ground current. I would like to reduce my ground current to get closer to the spec. Currently I am sitting around 20uA. My application is very simple. I configure, go into LPM3, wait for a push button, enable a PWM and RTC. After RTC expires I use OUTMOD5 to reset the output pin to 0 (ground). Questions:
1. Shutting down SVSHE does not affect RTC, Timer or PWM, correct?
2. My unused GPIO is all set as output. Can someone tell me something to look at within MSP that may be causing my ground current to be so high? Even if I place my LMP3 right after configACLK I still am seeing ~20uA. I am using a picoscope with a 100 ohm resistor in the ground lead to measure ~ 1.980 mV average or 19.8uA.
Main code:
int main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer //small macro to flash LED to show a reset has occured. configGPIO(); PM5CTL0 &= ~LOCKLPM5; __delay_cycles(80000); P1OUT &= ~BIT4; configACLK(); RTCCTL &= ~RTCIE; P1IFG = 0; PMMCTL0_H = PMMPW_H; PMMCTL0_L &= ~SVSHE; P1IE |= BIT1; __bis_SR_register(LPM3_bits + GIE); }