Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/10/05 17:23
Read: times


 
#84683 - Software bug?
Responding to: ???'s previous message
I guess there's somewhere a software bug, which now becames visible, because your 10msec ISR lasts longer than originally intended...

Looks to me, as if you forbid all further interrupts within 10msec ISR and enable them in the normal program just after finishing 10msec ISR. This would allow all 10msec ISR, and if the 10msec ISR last less than 5msec even the 5msec ISR. But all 5msec ISR being started within 10msec would be inhibited.

Other causes of strange ISR performance:

-Use of RET instruction to terminate ISR instead of RETI.
-Confusing level-activated external interrupts with transition-activated ones.

Sometimes inserting of NOPs arround interrupt related instructions can help.

Kai


List of 10 messages in thread
TopicAuthorDate
Can't set interrupt priority            01/01/70 00:00      
   need more            01/01/70 00:00      
      re Erik's questions            01/01/70 00:00      
         possibles            01/01/70 00:00      
            re: possibilities            01/01/70 00:00      
               Can we solve like this?            01/01/70 00:00      
                  but why?            01/01/70 00:00      
                  re: can we solve like this?            01/01/70 00:00      
                     re but why when it makes no difference            01/01/70 00:00      
   Software bug?            01/01/70 00:00      

Back to Subject List