LPC802 | how to enable GPIO interrupt on rise and fall state

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

LPC802 | how to enable GPIO interrupt on rise and fall state

713件の閲覧回数
shai_b
Senior Contributor II

Dear Team,

My customer working on the LPC802 chipset and he looking to add an interrupt on the rising and fall state of GPIO0_17 (Pin17).

Could you please advise how to enable the interrupt on the GPIO port0 pin 17? 

Waiting for your kind feedback, Thanks in advance 

Regards,

Shai

ラベル(3)
タグ(1)
0 件の賞賛
2 返答(返信)

554件の閲覧回数
sanders7284
Contributor III

The register is set up with entries for SIENF and SIENR so you can call the functions available in the SDK like this,  

Chip_PININT_SetPinModeEdge(LPC_PININT, PININTCH0); //Configure channel 0 interrupt as edge sensitive
Chip_PININT_EnableIntLow(LPC_PININT, PININTCH0); //Configure channel 0 interrupt falling edge interrupt

Chip_PININT_EnableIntHigh(LPC_PININT, PININTCH0); //Configure channel 0 interrupt rising edge interrupt

Chip_SYSCTL_SetPinInterrupt(0, 17); // Configure interrupt channel 0 for the GPIO pin 17 in SysCon block

 

Regards 

Sanders7284

0 件の賞賛

704件の閲覧回数
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello,

I suggest downloading the MCUXpresso and the SDK for the LPCXpresso802 and reviewing the examples, your customer can use the Config tool to modify an input with interrupt. If you need more information please let me know.

Best regards,
Pavel

0 件の賞賛