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

P89LPC932 External Interrupt

Hi, I need to use the external interrupts of the LPC932. The micro will be in sleeping mode and will be woke up only by these two events. It works fine the first time, but then it does not work any more for external interrupt 0. Why? Could it be my Port configuration on port 1, which is where these two interrupts are entered. These two pins have to be input only.


IT0 = 1; //pulses will be edge triggered
EX0 = 1;
IT1 = 1; //pulses will be edge triggered
EX1 = 1;
EA = 1;
//EBO = 1; //Brown Out interrupt (IEN0.5)
PCONA = 0xEF; // turn off all peripherals that can be turned off
PCON |= 0x12; // switch to Power Down mode
while(1);

Thank you!

Parents
  • Erik I went back to read the user's manual and this is what I found.

    "In power down mode the power supply voltage may be reduced to the RAM keep-alive voltage VRAM. This retains the RAM contents at the point where PDM was entered. SFR contents are not guaranteed to after VDD has been lowered to VRAM."
    I think maybe since the contents of some registers are lost after entering PDM, the "pulse counter" is never counting because it is always losing its contents...don't you think? So the micro wakes up, but never accumulates the pulses, therefore not working properly.
    I may be wrong though.

Reply
  • Erik I went back to read the user's manual and this is what I found.

    "In power down mode the power supply voltage may be reduced to the RAM keep-alive voltage VRAM. This retains the RAM contents at the point where PDM was entered. SFR contents are not guaranteed to after VDD has been lowered to VRAM."
    I think maybe since the contents of some registers are lost after entering PDM, the "pulse counter" is never counting because it is always losing its contents...don't you think? So the micro wakes up, but never accumulates the pulses, therefore not working properly.
    I may be wrong though.

Children