How to avoid the noise in the External interrupt pin (arduino mega2560)

Hi,

I had two arduino mega2560 controller.
First arduino mega2560 output is connected through second arduino mega2560 External input directly through 1 metre cable. Whenever i PowerON these two boards, external interrupt is triggered. Is there any circuitry needed to connect one microcontroller(atmega2560) to another microcontroller (atmega2560) External interrupt pin through 1 metre cable. Kindly let us know.

Hi sir, Thanks for the reply. I didnt clear any interrupt flag before attach the interrupt. I am using the External interrupt digital pin 2 in the atmega2560. Kindly let us know what is the interrupt flag to be cleared.

Hi sir. Thanks for the reply. I will study and come back to you. Thanks.

Good grief! If the problem is always the first interrupt, just add code in your interrupt function to ignore the first interrupt and process all others.