Content originally posted in LPCWare by kitahei88 on Fri Sep 25 18:15:05 MST 2015
Thank you for your solution.
I have got same solution that update PORT_POL mask at every time.
LPC1549 have two GINT, so I set GINT0 to "Button On trigger" and GINT1 to "Button Off trigger" , like your code.
It works well.
But the thing I really want to do is to get precise timing of multi-buttons (like keyboard logger).
This solution is very nice but its overhead that trigger timer is too long time.
So I give it up to use GINT , I add CPLD that trigger SCT input when the button conditions have changed.
Anyway, Your solution is good for using GINT.
Thank you.