Forum Discussion
Altera_Forum
Honored Contributor
12 years agoInterrupt code problem
Hi, Actually I am a beginner in using niosII. Currently I am having some trouble in trying the interrupt code. This is a simple interrupt code. I am using SW0 and SW1 as the buttons. ...
Altera_Forum
Honored Contributor
12 years agoHi, maybe in you interrupt function, you should write
IOWR_ALTERA_AVALON_PIO_EDGE_CAP(PIO_1_BASE, 1); Avoid printf() in interrupts Here, you could post your code within [ code] balises (Instead of printf(), you could light up some LEDs)