GPIO pin interrupt in LPC 1837 is not working

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

GPIO pin interrupt in LPC 1837 is not working

973件の閲覧回数
ponalagappan
Contributor III

Hi,

I am trying to use GPIO PIN interrupt in  lpc1837. i need active low interrupt. initially i set the GPIO port and pin in PINTSEL0 register and verified its value.

then doing with configuration registers ISEL,IENR and IENF  as follows 

/* enable level interrupt */

LPC_GPIO_PIN_INT->ISEL = (GPIO_PIN_INT_ISEL_PMODE0_Msk |
GPIO_PIN_INT_ISEL_PMODE1_Msk);

/* enable level interrupt */

LPC_GPIO_PIN_INT->IENR = (GPIO_PIN_INT_IENR_ENRL0_Msk |
GPIO_PIN_INT_IENR_ENRL1_Msk );


LPC_GPIO_PIN_INT->SIENR = ( GPIO_PIN_INT_SIENR_SETENRL0_Msk |
GPIO_PIN_INT_SIENR_SETENRL1_Msk );


/* enable active LOW interrupt */


LPC_GPIO_PIN_INT->IENF = 0x00UL;

LPC_GPIO_PIN_INT->CIENF = (GPIO_PIN_INT_CIENF_CENAF0_Msk |
GPIO_PIN_INT_CIENF_CENAF1_Msk );

0 件の賞賛
返信
1 返信

801件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi,

I'll close the thread, just keep this thread (Could anyone tell me the sequence of operation to be followed in GPIO PIN interrupt in LPC1837 ).
Have a great day,
Ping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信