Forum Discussion
Altera_Forum
Honored Contributor
21 years agopower failure interrupt on NIOS 2
HI, I am busy with a design of an embedded system with Altera Cyclones with NIOS 2 and a LPC2106 ARM cpu. Have implemented RTC with battery backup, nonvolatile 32kB sram (simtek), a LT...
Altera_Forum
Honored Contributor
21 years agoRick,
Short answer: if you use the built-in interrupt support, then ues, irq0 is higher priority than irq5. Longer answer: The hardware no longer cares -- interrupt behavior is entirely under software control. I don't have the code in front of me, but I think the way the default Nios II ISR handler works is to loop through pending interrupts, lowest ISR number first. During this time, lower priority interrupts are disabled using a CPU register.... the upside to this is that you can change this code if you're adventurous to meet exact system needs.