Forum Discussion
Altera_Forum
Honored Contributor
13 years agoSorry, I suggested IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 1)
but actually you should use IOWR_ALTERA_AVALON_PIO_EDGE_CAP(LOAD_BASE, 0xf) since I see you are using all 4 PIO inputs and the previous one would reset only irq for first button. This must be changed both in irq handler and before alt_ic_isr_register calls. Let me know if this way it works