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.

Vectored interrupt(viq) not getting triggered with lpc 2129 test board

Status
Not open for further replies.

bala murugan

Newbie level 1
Joined
Apr 25, 2011
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
1,280
Good day to every one,
I do have a problem with external interrupt triggering (EINT1). Iam connecting EINT1 as a Vectored Interrupt source to slot 0. Once executing in the test board of LPC 2129 ARM7 controller, it is not getting triggered when EINT1 switch is pressed.

Iam attaching the code: please help me with debugging the code:?:

******************************************************************

#include <LPC21xx.H>
void EXTINTVectoredIRQ(void) __irq;

void main()
{
IODIR1=0X00FF0000; // make port1 LED pins as o/p
PINSEL0=0X000000c0; //Change GPIO as INT1

VICIntEnable=0X00008000; // Enable INT1
VICVectCntl0=0x0000002F; // connecting the INT1 interrupt channel to slot 0, and enabling the interrupt
VICVectAddr0=(unsigned)EXTINTVectoredIRQ;

IOCLR1=0X00FF0000; // Clear LED's

while(1);
}

void EXTINTVectoredIRQ(void) __irq
{
IOSET1=0X00FF0000; // set leds
EXTINT=0X00000002; // disable EINT 1
VICVectAddr0=0x00000000; // dummy write
}
*****************************************************************
Many thanks in advance !
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top