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, 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!
extract from your program the very least amount of code in assembler (20 or so lines should do) to show the problem. Load that and nothing else and if the problem still exist, post the code. Erik
If you have the Keil LPC900 kit, it includes an example uVision Project for low-power modes. Why don't you give that a try?
Andy, that is where I got the intial sample program from. Then I modified it. Thanks
Erik. I will try what you suggest and let you know
Erik how can I get the assembly code of my program. It is written in C. The external interrupt and Power Down mode work fine when I use the simulator but not in my application.
"how can I get the assembly code of my program. It is written in C" Look on the 'Listings' tab in your Project Options.
Andrew I went to Lintings in project options... and selected assembly code. Now how do I see it on my screen.