Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/02/07 16:36
Read: times


 
#136419 - LPC936 INT1 False Triggering
Hi Erik, I need some help on this. After a power on reset I initialize the micro and after that I set my two Exnternal Interrupts INT0 and INT1. The problem I have is that INT1 is triggered (ISR is called falsely) as soon as EX1 = 1; and IT1 = 1; get executed. I need to avoid this. It also happens when an external RESET pin is executed. I am trying to get this ignored by checking if ((RSTSRC &= 0x10) || (RSTSRC &= 0x01)). if true then those bits (power on and external reset flag get clear and return to main. But it is not working. What is a good way to avoid this power on or external reset pin false triggering of INT1?

Here is some code I have.
Main
{
:// initialization
:
EA = 1;
IT0 = 0;// level triggered
EX0 = 1;
EX1 = 1;// Enable INT1
IT1 = 1; // edge triggered
while (1)
{
}
}

void Interrupt(void) interrupt 2
{
   if((RSTSRC &= 0x10) || (RSTSRC &= 0x01)){
   RSTSRC &= ~0x11; return;// prevent false triggering 
   }
:// Not false trigger then execute ISR
:
}


List of 3 messages in thread
TopicAuthorDate
LPC936 INT1 False Triggering            01/01/70 00:00      
   this should do            01/01/70 00:00      
   It really did            01/01/70 00:00      

Back to Subject List