Forum Discussion
Altera_Forum
Honored Contributor
13 years agoYou must write 1 to the edge capture bit in order to clear irq.
Then the correct command in irq handler should be: IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 1); Probably the problem is simply here: irq is not cleared, thus keeps on retriggering and your code gets stuck.