This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with int2 on lpc2378

Hi to all.
I'm trying to config int 2 , but I didn't have any success yet.
Here is my code :


#include <LPC23xx.h>
#include <delay.h>

void isr(void) __irq{

FIO3SET0=255;
delay_ms(100);
EXTINT=4;
VICVectAddr=0;
}


int main(){

SCS=1;
PINSEL6=0X0;
FIO3DIR0=255;
FIO3SET0=255;
delay_ms(100);
FIO3CLR0=255;

VICIntSelect=0X0;
VICIntEnable=0X10000;
VICVectAddr16=(unsigned long) isr;

PINSEL4=0X100000;
EXTINT=0X4;
EXTMODE=0X4;
EXTPOLAR=0;





while(1){

//FIO3CLR0=255;

}
}

thank you all.