This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wake up from Power Down Mode

Hi, when the 89LPC932 enters power down mode I want it to wake up only from an external interrupt. Unfortunaltely, this is not happennig. can you help me? maybe I am missing something here in the code.

void Min_Power(void)
{
EX0 = 0;
PCONA = 0xEF; // turn off all peripherals
//that can be turned off
PCON |= 0x12; // switch to Power Down mode
IT1 = 1; //ext. inter. 1 edge triggr.
EX1 = 1;
while(1);
}

0