Forum Discussion
Altera_Forum
Honored Contributor
21 years agoHow to set ISR in NiosII?
Hi all, Now I want to receive info from a custom UART in NiosII IDE by Interruption. I notice the code for receiving interruption in NiosI goes like this: ----------- in...
Altera_Forum
Honored Contributor
21 years agoIf you wish to use an ISR you only need to call alt_irq_register as you do in your example 1.
It sounds to me like you either have a problem with your hardware or how you're controlling it, you need to look with the debugger to see if you're ever getting into your ISR and if not is the bit corresponding to your UART's IRQ getting set in the ipending register? Also I notice you're using printf inside your ISR you can't rely on this working.