Hi
--- Quote Start ---
So it is same whether you use IRQ id or base address of the component.
--- Quote End ---
Though, I would definitley use IRQ. But that's just my taste of doing it......
--- Quote Start ---
But now my problem is when i issue write or read API back to Back or say in for loop(say 10 times) it just suspended in RUN mode in NIOS II.but it's work very well in Debug mode.
so what i make change in above code to solve above problem.................
--- Quote End ---
What do you mean with suspended?
--- Quote Start ---
but putting some delay say 1 sec in write/read API.but it's not proper solution because
it reduce the read/write
performance.so pls give me other solution........................
--- Quote End ---
Agree, not a soultion at all!
Just to be sure
, your variable
intrstat is
volatile, right?
And do you set back your IRQ in your ISR? I can't see it right now, and it normally should be cleared at the beginning of your ISR. I just recognize that your are clearing the IRQ in read/write, but maybe I oversee something.
The only problem I know where you have to put a delay in your ISR is when you have a really small/short ISR which is executed extremly fast. This can lead to a second call of your ISR, because the clearing of the IRQ isn't done before you leave the ISR.
Regards,
Philipp