I intend to use an external interrupt by setting the INT0 pin (atmega64 - gcc AVR Studio - v.4.18, Build 700) and triggered at the falling edge, and the following code is working, but it's way too SENSITIVE. If i just slightly touch the side of the button (without pushing it) the ISR triggers. What should i do for INT0 to be triggered only at the push of the button? does this has something to do with 'debouncing'? Should i add some extra code or maybe it has sthing to do with the value of the resistor being used?
the INT0 pin is connected to a 4.7k resitor which is connected to 5V. When the push button is pressed, the INT0 pin is shorted to GND.
any advice / help would be great!
thank you guys,
edit: i removed the code since it is irrelevant at the moment and so that other readers don't waste time in it