[SOLVED] External Interrupt is not working

Status
Not open for further replies.

kushal nandanwar

Full Member level 3
Joined
Jun 9, 2013
Messages
177
Helped
6
Reputation
12
Reaction score
6
Trophy points
18
Visit site
Activity points
1,258

Code dot - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void __attribute__((interrupt, no_auto_psv)) _INT1Interrupt(void)
{led=~led;
 
IFS1bits.INT1IF=0; //clear INT0 interrupt flag
}
 
void EXT_INT(void)
{
INTCON1=0x00;
INTCON2=0x00;
INTCON2bits.INT1EP=0;
IPC4bits.INT1IP=0;
IFS1bits.INT1IF=0;
IEC1bits.INT1IE=1;
 
}


my External Interrupt not working
 
Last edited by a moderator:

which processor are you using?
have your checked that your LED is working correctly, i.e. will switch ON/OFF?
could your interrupt input pin be defaulting to an analogue input and needs to be set up as a digital IO pin?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…