Content originally posted in LPCWare by 1234567890 on Thu Jul 17 09:02:06 MST 2014
Well, first of all: Your ISR is called after waking up; the device has already left sleep mode at this time. The ISR is the result of the interrupt.
There are 2 possibilities:
1.) After waking up you can monitor your pin and decide with software, if it is real or fake. Keyword 'debounce routine'. That's not so good, especially if you have a battery powered application (current consumption, the time in sleep mode can be much shorter).
2.) Debounce your pin with external hardware (e.g. R and C) to filter the noise.