Altera_Forum
Honored Contributor
20 years agoa weird issue
Hi all,
I encountered a weird issue that I enabled one PIO interrupt by using: alt_irq_register(STROBE_PIO_IRQ, edge_capture_ptr, command_receive_interrupt); STROBE_PIO_IRQ equals to 3 after calling alt_irq_register, the ienable register doesn't change its value to enable STROBE_PIO_IRQ. So, I tried to find what was the problem, then I step into alt_irq_register routine, and found the problem, see the following assembly code: wrctl ienable, r2 before excuting this instruction, I can see that the value stored in r2 register is 0x1f and ienable = 0x17, but after excuting this instruction the ienable remained the original value of 0x17. It's a very weird problem, anyone help? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif best regards, David