We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
We are working on the STR91x Evaluation Board and we are using Timer0 Interrupt (for Output Compare).
Interrupt is expected to come continuously whenever output compare occurs. But that is occurring only for the first time. In the interrupt handler we are reading the status register and explicitly clearing the flag(output compare).
Please suggest a solution to get the interrupt continuously whenever output compare occurs.
It never hurts to post the source for your ISR.
So long as you take care to follow the instructions for posting source code...
Hello Deepak Sehjpal,
at the end of your STR91x ISR you must acknowldge the interrupt at the VIC. Please add following lines at the end of your ISR:
VIC0->VAR = 0; /* Acknowledge Interrupt */ VIC1->VAR = 0;
Best Regards, Martin Guenther
Thanks for your sugestion, but the problem is that the when ISR is compleated, the compiler goes to unrequired functions and then going for a reset interrupt and then main function is called again. This is happening continously.