Hi guys,
I've got the following problem:
I want that the MCU sleeps all the time in LPM3 until an interrupt pin is set thorugh a low-high signal. I have implemented the following code:
while(1)
{
__bis_SR_register(LPM3_bits + GIE); // Enter Low Power Mode 3 (LPM3) w/interrupt
}
Can I then jump to the interrupt routine?
#pragma vector=PORT2_VECTOR
__interrupt void Port_2(void)
{
readADC12(); // begin ADC operation
P2IFG &= ~0x040; // P2.4 IFG cleared
}
thanks a lot!