Keil Logo Arm Logo

Discussion Forum

lpc2138 interrupt problem code

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
chinaveeraiah J
Posted
12-Jan-2010 05:45 GMT
Toolset
ARM
New! lpc2138 interrupt problem code

hai
This is my code external interrupt is generates only one time next it is in not genetated.help me.

#include<lpc213x.h>
#include <stdio.h>
extern void init_serial(void);
unsigned char temp;
void EXTINTVectoredIRQ (void)__irq;
unsigned int x=0;
void EXTINTVectoredIRQ (void)__irq
{

x++;
x=x<<16;
IO1SET=x;
EXTINT=2;
VICVectAddr |=0; //(unsigned int)INTVectoredIRQ;

}
int main()
{ IODIR1=0X00FF0000;
IODIR0=0X00000000;
PINSEL1=0X00000000;
PINSEL0=0X200000C5; //interrupt pin p0.14
EXTMODE = 0; // LEVEL sensitive mode on EINT1
EXTPOLAR = 0;
//VICDefVectAddr = 0x0000002f;
VICIntSelect |=0x00000000;
VICVectAddr15 |=(unsigned int)EXTINTVectoredIRQ;
VICVectCntl15 |= 0x0000002f;
VICIntEnable |=0x00008000;
while(1)
{

IO1CLR =0X000000ff;
IOSET1 =0x000000ff;
} }

Read-Only
Author
Darren Simons
Posted
12-Jan-2010 09:06 GMT
Toolset
ARM
New! RE: lpc2138 interrupt problem code

Please stop starting new threads, for the same issue.

http://www.keil.com/forum/docs/thread16187.asp
http://www.keil.com/forum/docs/thread16189.asp

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.