kosaaa
Newbie

Hi everyone,I'm trying to write code for the FIQ interrupt, but when I trigger the interrupt through the GPIO, it doesn't seem to take the FIQ address. The interrupt action is also not occurring. If anyone knows why this is happening, please let me know.
Code:
#include<lpc21xx.h>
#define led1 1;
void fiq_inter_isr(void) __irq
{
EXTINT = 0x01;
IOSET0 = led1;
IOCLR0 = led1;
//VICVectAddr =0;
}
int main()
{
unsigned count =0;
PINSEL1 = 0X1;
IODIR0 = led1;
VICIntSelect = 0x1;
VICIntEnable = (1<<14);
EXTMODE = 0X00;
EXTPOLAR = 0X00;
while(1)
{
count++;
}
}
Last edited by a moderator: