lpcware

Interrupt both edges on 13xx

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by mozmck on Tue Aug 27 17:23:47 MST 2013
I'm moving a project from an LPC1114 to a LPC1347 chip, and I'm not sure how to set up a pin interrupt to interrupt on both edges - rising and falling edges.  Can I set it up so both rising and falling edge interrupts go to the same pin interrupt handler?  In the LPC1114 this was easy and straight-forward, but in the 13xx chips it is not clear and the sample code does not show any way to do it at all.

It looks like I should be able to just set the correct bit in both the IENF and IENR registers to enable both edges - will this work?

Thanks.

Outcomes