Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIRQ not working
Hello i have a DE2-115, i am trying to generate an IRQ from a button press. I've mapped the button in the pin planner, connected to the system template instance generated by QSys and my software h...
Altera_Forum
Honored Contributor
15 years agoYou only want to clear the bits that you've read as being the cause(s) of the current interrupt. Clearing all the sources will lead to you losing interrupts.
(Consider what happens if a second button is pressed while the ISR is running just before the register is cleared.)