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 agoAs dsl said, you must write 1 to the irq bits to reset them.
Writing 0 won't reset anything. You can use IOWR_ALTERA_AVALON_PIO_EDGE_CAP(INPUT_IRQ_BASE, 0xf); if you don't mind to reset all bits and not only the one which caused the interrupt to be serviced.