We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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); }
PCON |=0x12; EX1=1; Do you notice something about the order of events? Stefan
Don't know about this variant specifically, but some have various "low-power" modes - "sleep", "idle", "power-down" and the available wakeup stimuli are not all the same.
Stefan you were right! I was shutting down everything first and then turning something on. I swithed the order of the events and it worked. Thank you