| ??? 02/04/05 13:13 Read: times |
#86530 - How to escape from an endless loop ? |
Hi for all,
Suppose we arrived at a statement: JNB P1.0,$ And we would like to escape from that situation after a number of time if there is no any trigger. or in C sbit trigger = P1^0; void test (void) { trigger = 1; while (trigger) { P2 = P1 } } Please, if there is any idea to overcome the problem, thank you very much. Kurnia Brahmana |
| 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 |



