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 agoIt works with pooling i've tried it; The hardware register is a 32bits guy.. it's a simple button connected to a PIO.
When i did IOWR_ALTERA_AVALON_PIO_EDGE_CAP(INPUT_IRQ_BASE, 0x0);
The program wouldnt even printf my "hello" that is in my main When i changed to IOWR_ALTERA_AVALON_PIO_EDGE_CAP(INPUT_IRQ_BASE, 0xf);
It printed "hello" but the IRQ is still not working. I connected the IRQ on Qsys bus with priority of 2, my timer is 0(sys_clk_timer on BSP) and my jtag is 1. Am i missing something