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