Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top