Intailization of External interrupt 52235

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Intailization of External interrupt 52235

800件の閲覧回数
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.

ラベル(1)
0 件の賞賛
1 返信

223件の閲覧回数
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 件の賞賛