LPC1343 interrupt not disabling

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

LPC1343 interrupt not disabling

1,277件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by caiomarcos on Mon Jul 15 20:44:24 MST 2013
I'm using pin 2.9 as an edge, low, interrupt input.
In one function I have to disable it, but that doesn't seem to be working. Even after using GPIOIntDisable( 2, 9); my code still calls the handler when the pin goes low.

The relevant parts:

void PIOINT2_IRQHandler (void)
{
RF_interrupt_handler( );
GPIOIntClear( 2, 9 );//clear interrupt
}

int main(void)
{
GPIOInit( );
GPIOSetDir( 2, 9, 0 );
GPIOSetInterrupt( 2, 9, 0, 0, 0 ); 
GPIOIntEnable( 2, 9 );

...


Then somewhere else I call a function and in the beggining of it goes GPIOIntDisable( 2, 9); and in the end GPIOIntEnable( 2, 9);
Putting a break point in the RF_handler line stops the debugger when the interrupt is supposedly disabled. What am I missing?
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,242件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by caiomarcos on Wed Jul 17 11:44:17 MST 2013
Just tried that, and no success.
0 件の賞賛
返信

1,242件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by serge on Tue Jul 16 03:49:00 MST 2013
Ever tried clearing the int just before disabling it?

HTH
0 件の賞賛
返信