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

ARM:GPIO interrupt issue on LPC2364 simulator

Hi,
I am trying to generate an interrupt on GPIO pin for LPC2364 uc over uVision3 simulator. Below is the code written to achieve the job. I am not able to generate interrupt by toggling the GPIO pin. Is there anything wrong/missing in the code? Or is there any known bug in the simulator for this uc?

GPIO pin I am trying is: P0.16 (port 0, pin 16).
Code:

void int_gpio (void) __irq {

cnt++;

IO0_INT_CLR |= (1<<16); /* clear the interrupt */

VICVectAddr = 0; /* ACK the VIC */

}

void task1 (void) __task {

/* On RESET, all GPIO pins are set as Input, PINSEL
set to GPIO pins by default */

IO0_INT_EN_F |= (1<<16); /* enable falling edge interrupt for P0:16 */

VICVectAddr17 = (U32) int_gpio; /* EINT-3 interrupt handler */

VICIntEnable |= (1<<17); /* Enable VIC index-17 (shared by EINT3 and GPIO) */

os_tsk_delete_self(); /* task no more needed, can be killed */

}

0