Forum Discussion
Altera_Forum
Honored Contributor
20 years agoabout IRQ problem...help!
I want to use the switch of one bit to touch off the signal of IRQ, this foot location is named cs, foot location connect at sw0 of board of 2c35, but button does not work....what is the problem? How...
Altera_Forum
Honored Contributor
20 years agoWithin main() don't you want to wrap the case statement with a loop? Otherwise this program will run to completion.
Also be sure that the PIO supports the type of interrupt you want. To check this go into the PIO component and verify the settings (such as the edge detection for example). What you are trying to do is documented here in case you haven't seen it: http://www.altera.com/literature/hb/nios2/n2sw_nii52006.pdf (http://www.altera.com/literature/hb/nios2/n2sw_nii52006.pdf)