My code of lpm4.5:
........
PMMCTL0_H = PMMPW_H; // Open PMM Registers for write
PMMCTL0_L &= ~(SVSHE); // Disable high-side SVS
PMMCTL0_L |= PMMREGOFF; // and set PMMREGOFF
PMMCTL0_H = 0; // Lock PMM Registers
__bis_SR_register(LPM4_bits | GIE);
and the port ISR code:
#pragma vector=PORT1_VECTOR
__interrupt void Port_1_ISR(void)
{
_bic_SR_register_on_exit(LPM4_bits);
P1IFG &= ~(SATIR_1 | SATIR_2 | SATIR_3 | SATIR_4 | SATIR_5);
}
Is LPM4 command valid for this mcu? Because it doesn't wake up and execute the codes from below lines...
if (SYSRSTIV == SYSRSTIV_LPM5WU)
{
}
When I write the code for LPM3, microcontroller wake up and no problem.
thanks...