This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5994 中断和LPM35问题

Expert 2115 points
Other Parts Discussed in Thread: MSP430FR5994, MSP-EXP430FR5994

void enterLPM35()
{
// Configure button S2 (P5.5) interrupt
GPIO_selectInterruptEdge(GPIO_PORT_P5, GPIO_PIN5, GPIO_HIGH_TO_LOW_TRANSITION);//Boutton2
GPIO_setAsInputPinWithPullUpResistor(GPIO_PORT_P5, GPIO_PIN5);
GPIO_clearInterrupt(GPIO_PORT_P5, GPIO_PIN5);
GPIO_enableInterrupt(GPIO_PORT_P5, GPIO_PIN5);
// Request the disabling of the core voltage regulator when device enters
// LPM3 (or LPM4) so that we can effectively enter LPM3.5 (or LPM4.5).
PMM_turnOffRegulator();
//Enter LPM3 mode with interrupts enabled
__bis_SR_register(LPM4_bits + GIE);
__no_operation();
}

上面是MSP430FR5994 部分示例程序,有两个疑惑:

1. P5不是没有中断吗,为什么能配置55.5的中断,中断寄存器只有P1IV-P4IV啊?

2. 对LPM(low-power modes)不是很理解,调用这个程序后是不是休眠模式了?