I have switches at the far end of a relatively long (3m) cable in a very noisy environment. There are motors and such; I measure up to + / - 3V peak noise at the other end of the cable, when the switch is closed(!). I need to reliably trigger an interrupt when the switch activates. I have no control on the microprocessor software or hardware. I have a connector that goes directly to the uC pins, and there are pull-ups on the uC board. I can have whatever I want between the switch and the connector. Direct connection triggers all the time, but so far, hasn't killed the micro (but it sure looks nasty on the scope).
What would you do?