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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

625 Views
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

Labels (3)
Tags (1)
0 Kudos
2 Replies

466 Views
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 Kudos

616 Views
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 Kudos