| ??? 02/05/05 09:28 Read: times |
#86613 - Not in the ISR Responding to: ???'s previous message |
Russell Bull said:
It is not a good idea to sit in a dead loop in an interrupt routine. You need to rethink your problem so that this is not required. Absolutely! You could have the Interrupt-0 handler set a flag, then your "main" code would use this as the condition to enter the loop. Within the loop, use a counter to provide your timeout - as described elsewhere |
| Topic | Author | Date |
| 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 |



