Re: When would I use an interrupt?
The difference is that vButtonPressed(); will only be called when the if statement is being executed. With interrupts it doesn't matter what part of the code is being executed for if the button is pressed it will automatically call vButtonPressed();
One basicaly gives faster feedback than the other
Last edited by m0rph3us : 11-01-2004 at 22:08.
|