This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ISR System timer

Hello,

I've installed a system timer (AT91RM9200 controller) - which runs without problems... I use this timer for several things.

Now I have critical code areas (only two lines of code) where no interrupt (of the st timer) is allowed to occur.

So (of course) I could disable the interrupts and after the critical code area I could enable the interrupts - but the problem is, that the interupt occurs only every one minute - so if I disable interrupts when the interrupt would occured in approximately 2 secs - and I need 4 sec until I could enable the interrupts again -> then I have to waite nearly one minute again that the next interupt occured... -> that's too long

Is there a possibility to know after the critical code area, if there was a interrupt (st timer)? so that the ISR is called (immediately) after the critical code area?

best regards
Johannes

0