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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/05/05 08:44
Read: times


 
#86612 - Answer t o additional explanation
Responding to: ???'s previous message
Weel, first i have to agree, with the next reply, a dead loop in an interrupt routine is probably not a good ideae, but maybe you don't have much choice, and the problem is complicated to change the whole programm.

So maybe you can do something like this make your loop like this:

...
counter = 0
counter: add 1 to counter
check status of RI bit
check counter is equal to FF (or something)
if its equal go t oexit else goto counter
exit : reti

greetz Nico

List of 15 messages in thread
TopicAuthorDate
How to escape from an endless loop ?            01/01/70 00:00      
   what is the problem?            01/01/70 00:00      
   Counter            01/01/70 00:00      
      How about another BIT flag            01/01/70 00:00      
         how would you do that            01/01/70 00:00      
         Problem Solved with a combination.            01/01/70 00:00      
   External interrupt            01/01/70 00:00      
      Additional explanation about the problem            01/01/70 00:00      
         loops            01/01/70 00:00      
            Not in the ISR            01/01/70 00:00      
         Answer t o additional explanation            01/01/70 00:00      
   Messing with stack inside interrupt...            01/01/70 00:00      
      Setup stack inside interrupt            01/01/70 00:00      
   I am sure it is good way for you!            01/01/70 00:00      
      Your idea is good.            01/01/70 00:00      

Back to Subject List