Other Parts Discussed in Thread: ENERGYTRACE
RUN“”Flashing the LED" example, The default frequency 2M,current should be 240uA according datasheet,but actual 1.1mA,although I config all IO to output ,and out=0;
And then set clock to VLO(10k,SELMS 011),current 0.9mA。
How can config to avtive mode,about 1M,and hope the current about 120uA?
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
PMMCTL0 = PMMPW; // Open PMM Module
PM5CTL0 &= ~LOCKLPM5; // Clear locked IO Pins
P1DIR = 0xff; // Set P1.1 to output direction
P2DIR = 0xff; // Set P1.1 to output direction
P1OUT = 0x00;
P2OUT = 0x00;
for (;;)
{
volatile unsigned int i; // volatile to prevent optimization
P1OUT ^= 0x02; // Toggle P1.1 using exclusive-OR
i = 10000; // SW Delay
do i--;
while (i != 0);
}