baby_2
Advanced Member level 4
Hello
Here is my code
but it doesn't any action when I press my switch button that it is connected to P0.17
what is my problem?
Here is my code
Code:
#include <LPC17xx.H>
void delay()
{
int i,j;
for(i=0;i<2000;i++)
for(j=0;j<5000;j++);
}
void EINT3_IRQHandler()
{
LPC_GPIO0->FIOSET=(1<<23);
LPC_GPIOINT->IO0IntClr = (1<<17);
delay();
}
int main()
{
LPC_GPIO0->FIODIR=(1<<23);
LPC_GPIO0->FIODIR=(1<<21);
LPC_GPIOINT->IO0IntEnF = 1<<17;
NVIC_EnableIRQ(EINT3_IRQn);
LPC_GPIO0->FIOSET=(1<<21);
while(1){
}
}
but it doesn't any action when I press my switch button that it is connected to P0.17
what is my problem?