Okay, in debug mode all works fine now, but, when I compile and load the program without the debugger, then it goes bananas. What I suspect now, is that there is a signal in PortB what is resonating when I press the button. This will cause many interrupts, making the microcontroller think that I press the stop button right away.
That will explain why it skips the interrupt routine without the debugger on...
Before I order any parts to solve this, I want to know if I'm close or not. So is this a problem that might occure while making something like this?
Bookmarks