Intailization of External interrupt 52235

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Intailization of External interrupt 52235

946 Views
Latha
Contributor I

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.

Labels (1)
0 Kudos
1 Reply

369 Views
paddy
Contributor I

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,

 

0 Kudos