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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

696 次查看
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 回复数

537 次查看
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 项奖励

687 次查看
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 项奖励