Hello
I am working with MCf52235 and using IR7 as an external interrupt .I want to configure it as to generate an interrupt on the falling edge.
As per the Refernce manaual I intialzed it . But I am not able to see the interrupt .
Can some body help with the intailization code.
Hi Latha,
Try by below settings
MCF_GPIO_PNQPAR = 0
| MCF_GPIO_PNQPAR_IRQ7_IRQ7;
MCF_GPIO_DDRNQ = 0;
MCF_EPORT0_EPPAR = 0
| MCF_EPORT_EPPAR_EPPA7_FALLING;
MCF_EPORT1_EPFR = MCF_EPORT_EPPAR_EPPA7_FALLING;
MCF_EPORT0_EPIER = 0
| | MCF_EPORT_EPIER_EPIE7;
MCF_INTC0_IMRL &= ~(0
| MCF_INTC_IMRL_INT_MASK7
| MCF_INTC_IMRL_MASKALL);
map the interrupt in vector.s file
Regards,