Other Parts Discussed in Thread: MSP-EXP430FR6989
Hi,
I use the example code :ctpl_ex1_gpio_lpm45_msp-exp430fr6989 to pratice on FR6989. I found that the GIE did't set ,but the external gpio port intterrupt still wakeup from LPM4.5, how does it works? Down below is the code.
/****************************************************/
WDTCTL = WDTPW | WDTHOLD;
/* Initialize GPIO and clocks */
initGpio();
initClocks();
P9OUT &= ~BIT7;
ctpl_enterLpm45(CTPL_DISABLE_RESTORE_ON_RESET);
P9OUT |= BIT7;
while (1)
{
P9OUT ^= BIT4;
__delay_cycles(100000);
}
/****************************************************/
In the code ,I did't found a code line to enable the global interrupt.
Second question,I use IAR to download the code example then run. STOP it then run ,IAR mention that the cpu is off and intterrupts are disabled.I quit the bebug mode. I need to reset the tagart ,then the external gpio intterrupt can wakeup from LPM4.5,why need reset?
