Altera_Forum
Honored Contributor
13 years agohaving trouble with interrupt
Hello everyone ,
I'm try for a very long time to do a simple interrupt with nios ii. this is my problem: i have button in sratix ii dev kit and all i want to do in nios is just to turn on led (with interrupt) when the button is pressed. i defined rising_edge and all the others in sopc and i checked that the button is connected to the sopc module in quartus. everything passed the compile but when i run the debug the program ignore my clicks on the button and do nothing. this is my program: the program ignore my clicks and doesn't get to here :\ void led_interrupt() { //turn on led// //Delay// } void main() { alt_irq_registerr(button_IRQ, led_interrupt ); //turn off led// while(1); // waiting for interrupt; } I hope somebody can help me. sorry for my bad english:) thanks you(: